[PATCH] D137644: [include-cleaner] pass through recorded macro refs in walkUsed
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 8 08:10:34 PST 2022
kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.
thanks, lgtm!
================
Comment at: clang-tools-extra/include-cleaner/include/clang-include-cleaner/Analysis.h:47
/// (e.g. IWYU pragmas).
-void walkUsed(llvm::ArrayRef<Decl *> ASTRoots, UsedSymbolCB CB);
+void walkUsed(const SourceManager &, llvm::ArrayRef<Decl *> ASTRoots,
+ llvm::ArrayRef<SymbolReference> MacroRefs, UsedSymbolCB CB);
----------------
nit: you mind moving sourcemanager to be after roots and macrorefs?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137644/new/
https://reviews.llvm.org/D137644
More information about the cfe-commits
mailing list