This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by plotfi on Nov 8 2019, 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.Nov 8 2019, 1:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 8 2019, 1:54 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
compnerd accepted this revision.Nov 8 2019, 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.Nov 8 2019, 9:22 AM
This revision was automatically updated to reflect the committed changes.