| commit | d144eb1d8cd3abdaec23c902aa3e5a129c9827ef | [log] [tgz] |
|---|---|---|
| author | Younan Zhang <zyn7109@gmail.com> | Thu Jun 26 17:02:13 2025 +0800 |
| committer | GitHub <noreply@github.com> | Thu Jun 26 17:02:13 2025 +0800 |
| tree | a702542f0baf4c1fd635a131bda3ba9af7601e98 | |
| parent | 741e1ca3b33146538a3a33c26d3e992ac65dac08 [diff] |
[Clang] Back out the source location workaround for CXXConstructExpr (#145260) This removes the workaround introduced in 3e1a9cf3b8 and 1ba7dc38d. The workaround overwrote the right parenthesis location of the sub expression, which could be wrong when a CXXTemporaryObjectExpr occurs within a nested expression, e.g. `A(A(1, 2))`. To completely take it down, we now propagate the left parenthesis source location throughout SemaCast, such that the ParenOrBraceRange can be properly set at the point of its creation. Fixes https://github.com/llvm/llvm-project/issues/143711
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.