[clang] Fix the behavior of __COUNT__ macros when PCH is enabled (PR #105591)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 13 01:46:29 PDT 2024
================
@@ -1243,12 +1247,19 @@ bool ASTUnit::Parse(std::shared_ptr<PCHContainerOperations> PCHContainerOps,
}
std::unique_ptr<TopLevelDeclTrackerAction> Act(
- new TopLevelDeclTrackerAction(*this));
+ new TopLevelDeclTrackerAction(*this, true));
----------------
cor3ntin wrote:
Moreover, can you explain the "reuse preprocessor" logic, which seems orthogonal to the goal of preserving `__COUNT__`? (ie, i would expect count to be preserved, not the whole preprocessor).
Unless I am missing something, I think this would simplify the patch a bit.
https://github.com/llvm/llvm-project/pull/105591
More information about the cfe-commits
mailing list