diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2025-03-11 10:29:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-11 10:29:39 -0700 |
commit | eaca60d1a9a54ae0aa8626719decef4b11eb939d (patch) | |
tree | 899ba1e2afdca41ecac4dc11c5af8f19c739d8f1 /llvm/lib/Support/LockFileManager.cpp | |
parent | 65016475084f6435dbf252997d53853c2bfdf9be (diff) | |
download | llvm-eaca60d1a9a54ae0aa8626719decef4b11eb939d.zip llvm-eaca60d1a9a54ae0aa8626719decef4b11eb939d.tar.gz llvm-eaca60d1a9a54ae0aa8626719decef4b11eb939d.tar.bz2 |
[clang] Hide the `DiagnosticOptions` pointer from `CompilerInvocation` (#106274)
This PR hides the reference-counter pointer that holds
`DiagnosticOptions` from the public API of `CompilerInvocation`. This
gives `CompilerInvocation` an exclusive control over the lifetime of
this member, which will eventually be leveraged to implement a
copy-on-write behavior.
The only client that currently accesses that pointer is
`clangd::buildPreamble()` which takes care to reset it so that it's not
reset concurrently. This code is made redundant by making the reference
count of `DiagnosticOptions` atomic.
Diffstat (limited to 'llvm/lib/Support/LockFileManager.cpp')
0 files changed, 0 insertions, 0 deletions