Page MenuHomePhabricator

[clang][IFS] Adding support for processing more decl types in clang interface stubs.
ClosedPublic

Authored by plotfi on Fri, Nov 8, 1:54 AM.

Details

Summary

This patch adds support for more decl types that need to be processable, as part of clang-ifs hardening.

Diff Detail

Event Timeline

plotfi created this revision.Fri, Nov 8, 1:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptFri, Nov 8, 1:54 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
compnerd accepted this revision.Fri, Nov 8, 9:22 AM
compnerd added inline comments.
clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
202

Not sure if I prefer this or:

if (!ND->getIdentifier())
  return true;
const auto *VD = cast<VarDecl>(ND);
if (VD->isTemplated() || VD->getType()->isDependent())
  return true;
This revision is now accepted and ready to land.Fri, Nov 8, 9:22 AM
This revision was automatically updated to reflect the committed changes.