[PATCH] D92432: [analyzer] Add a thin abstraction layer between libCrossTU and libAnalysis.
Balázs Benics via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 11 11:49:47 PST 2020
steakhal added inline comments.
================
Comment at: clang/lib/Analysis/PlistPathDiagnosticConsumer.cpp:993
MacroLoc = LocAndUnit->first;
PPToUse = &LocAndUnit->second->getPreprocessor();
}
----------------
NoQ wrote:
> We were reverted because there's still a dependency on `ASTUnit` which lives in `libFrontend`. I guess i'll simplify the virtual method to return `(MacroLoc, PPToUse)` directly (?) (the old method will still remain on `CrossTranslationUnitContext`).
I don't see much uses of this function in the codebase. Why do you think it worth keeping it?
As a side-note, I'm planning to upstream some serious changes in macro expansion handling. Which will change the highlighted parts, probably resolving this circular dependency too.
Let me polish my work, and expect the patch on monday or tuesday.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92432/new/
https://reviews.llvm.org/D92432
More information about the cfe-commits
mailing list