[clang-tools-extra] [clangd] Replay macro definitions from preamble for clang-tidy checks (PR #202495)
Aleksandr Platonov via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 11 00:38:14 PDT 2026
================
@@ -250,6 +272,7 @@ class ReplayPreamble : private PPCallbacks {
}
const std::vector<Inclusion> Includes;
+ const MainFileMacros &Macros;
----------------
ArcsinX wrote:
Could this be a dangling reference? That is, can `ReplayPreamble` outlive `PreamblePatch`? E.g. for includes we keep a copy, not a reference
https://github.com/llvm/llvm-project/pull/202495
More information about the cfe-commits
mailing list