llvm-project
cebaf0ce - [clang] Make the `AnalyzerOptions` reference count non-intrusive (#137680)

Commit
271 days ago
[clang] Make the `AnalyzerOptions` reference count non-intrusive (#137680) This PR makes `CompilerInvocation` the sole owner of the `AnalyzerOptions` instance. Clients can no longer become co-owners by doing something like this: ```c++ void shareOwnership(CompilerInvocation &CI) { IntrusiveRefCntPtr Shared = &CI.getAnalyzerOpts(); } ``` The motivation for this is given here: https://github.com/llvm/llvm-project/pull/133467#issuecomment-2762065443
Author
Parents
Loading