[clang] Change `ASTUnit::getASTContext() const` to return a non-const `ASTContext` (PR #130096)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 6 05:58:09 PST 2025


mizvekov wrote:

To put it another way, what do we want to prevent the user from accomplishing if he obtains a non-const reference to ASTContext from a const ASTUnit?

https://github.com/llvm/llvm-project/pull/130096


More information about the cfe-commits mailing list