| commit | eaca60d1a9a54ae0aa8626719decef4b11eb939d | [log] [tgz] |
|---|---|---|
| author | Jan Svoboda <jan_svoboda@apple.com> | Tue Mar 11 10:29:39 2025 -0700 |
| committer | GitHub <noreply@github.com> | Tue Mar 11 10:29:39 2025 -0700 |
| tree | 899ba1e2afdca41ecac4dc11c5af8f19c739d8f1 | |
| parent | 65016475084f6435dbf252997d53853c2bfdf9be [diff] |
[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.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.