================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits