aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/LockFileManager.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2025-03-11 10:29:39 -0700
committerGitHub <noreply@github.com>2025-03-11 10:29:39 -0700
commiteaca60d1a9a54ae0aa8626719decef4b11eb939d (patch)
tree899ba1e2afdca41ecac4dc11c5af8f19c739d8f1 /llvm/lib/Support/LockFileManager.cpp
parent65016475084f6435dbf252997d53853c2bfdf9be (diff)
downloadllvm-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