================
@@ -56,28 +56,33 @@ void walkUsed(llvm::ArrayRef<Decl *> ASTRoots,
const auto &SM = PP.getSourceManager();
// This is duplicated in writeHTMLReport, changes should be mirrored there.
tooling::stdlib::Recognizer Recognizer;
+ ObjCSelectorMap SelectorDecls;
+ if (!ASTRoots.empty()) {
+ SelectorDecls = buildObjCSelectorMap(ASTRoots.front()->getASTContext());
----------------
dmaclach wrote:
OK. Revamped with a post traversal and only if selectors are actually seen.
Actually simplified overall implementation substantially.
https://github.com/llvm/llvm-project/pull/212564
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits