[clang] [Clang][NFC] Use const ASTContext reference in Decl Create methods (PR #185401)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 10 07:52:33 PDT 2026
cor3ntin wrote:
> @AaronBallman should take a look at this. I don't have a problem with it, but I'm suspicious of it, as using the ASTContext for allocation SEEMS like it shouldn't be a 'const' thing to do .
Right. This is mutating the AST. I'm actually curious why `ASTAllocator::BumpAlloc` is mutable. Maybe it should not be.
https://github.com/llvm/llvm-project/pull/185401
More information about the cfe-commits
mailing list