Manual-sync mirror of chromium.googlesource.com/external/github.com/llvm/llvm-project (bare monorepo, no subtree suffix)
Find a file
Michael Buch 54c9ddddd1
[libcxxabi][ItaniumDemangle] Separate GtIsGt counter into more states (#166578)
Currently `OutputBuffer::GtIsGt` is used to tell us if we're inside
template arguments and have printed a '(' without a closing ')'. If so,
we don't need to quote '<' when printing it as part of a binary
expression inside a template argument. Otherwise we need to. E.g.,
```
foo<a<(b < c)>> // Quotes around binary expression needed.
```

LLDB's `TrackingOutputBuffer` has heuristics that rely on checking
whether we are inside template arguments, regardless of the current
parentheses depth. We've been using `isGtInsideTemplateArgs` for this,
but that isn't correct. Resulting in us incorrectly tracking the
basename of function like:
```
void func<(foo::Enum)1>()
```
Here `GtIsGt > 0` despite us being inside template arguments (because we
incremented it when seeing '(').

This patch adds a `isInsideTemplateArgs` API which LLDB will use to more
accurately track parts of the demangled name.

To make sure this API doesn't go untested in the actual libcxxabi
test-suite, I changed the existing `GtIsGt` logic to use it. Also
renamed the various variables/APIs involved to make it (in my opinion)
more straightforward to understand what's going on. But happy to rename
it back if people disagree.

Also adjusted LLDB to use the newly introduced API (and added a
unit-test that would previously fail).
2025-11-07 07:52:03 +00:00
.ci [CI] Remove Disabled Warning Set on Windows (#166838) 2025-11-06 21:09:30 +00:00
.github [Github] Use zstd to compress CI container images (#166879) 2025-11-06 19:39:23 -08:00
bolt [BOLT][AArch64] Skip as many zeros as possible in padding validation (#166467) 2025-11-06 09:38:25 -08:00
clang [LifetimeSafety] Optimize fact storage with IDs and vector-based lookup (#165963) 2025-11-06 23:27:33 -05:00
clang-tools-extra [clang-tidy] Fix readability-use-concise-preprocessor-directives check (#166000) 2025-11-06 18:49:24 -08:00
cmake [CMake][gRPC] Update FindGRPC.cmake to support newer gRPC versions (#162935) 2025-10-15 13:14:14 -07:00
compiler-rt [sanitizer-common] [Darwin] Fix overlapping dyld segment addresses (#166005) 2025-11-06 12:18:16 -08:00
cross-project-tests Wasm fmuladd relaxed (#163177) 2025-10-13 16:50:53 +01:00
flang [flang][acc] Add missing FIRAnalysis dependency (#166853) 2025-11-06 13:54:30 -08:00
flang-rt [flang][rt] Add install target for header files (#165610) 2025-10-29 11:52:06 -10:00
libc [libc] Add localtime_r to baremetal entrypoints (#166677) 2025-11-06 21:18:26 -08:00
libclc [NFC][libclc] Rename clc_cbrt.inc to clc_cbrt.h (#166330) 2025-11-05 08:20:29 +08:00
libcxx [libc++] Simplify most of the segmented iterator optimizations (#164797) 2025-11-07 08:27:55 +01:00
libcxxabi [libcxxabi][ItaniumDemangle] Separate GtIsGt counter into more states (#166578) 2025-11-07 07:52:03 +00:00
libsycl [SYCL] Add libsycl, a SYCL RT library implementation project (#144372) 2025-07-31 11:28:39 -07:00
libunwind [libunwind][PAuthLR] Remove PC offset when using FEAT_PAuthLR (#164224) 2025-10-29 08:20:11 +00:00
lld [lld] Remove redundant declarations (NFC) (#166712) 2025-11-06 06:51:49 -08:00
lldb [libcxxabi][ItaniumDemangle] Separate GtIsGt counter into more states (#166578) 2025-11-07 07:52:03 +00:00
llvm [libcxxabi][ItaniumDemangle] Separate GtIsGt counter into more states (#166578) 2025-11-07 07:52:03 +00:00
llvm-libgcc
mlir [mlir][linalg] Remove redundant implicit terminator trait(NFC) (#166298) 2025-11-07 10:18:25 +08:00
offload [OpenMP] Fix tests relying on the heap size variable 2025-11-06 13:00:26 -06:00
openmp [Offload] Remove handling for device memory pool (#163629) 2025-11-06 10:15:18 -06:00
orc-rt [orc-rt] Add endian_read/write operations. (#166892) 2025-11-07 18:25:04 +11:00
polly [polly] Fix unused variable warnings 2025-11-05 08:23:22 -08:00
runtimes [libc] Fix Linux kernel headers being included on all OS's 2025-11-03 08:24:41 -06:00
third-party [C2y] Support WG14 N3457, the __COUNTER__ macro (#162662) 2025-11-03 07:50:25 -05:00
utils/bazel [bazel] Add missing deps for AlignmentAttrInterface.h (#166899) 2025-11-06 22:31:43 -08:00
.clang-format Enforce Unix line endings for Clang/LLVM/MLIR projects (#161460) 2025-10-02 06:09:12 -07:00
.clang-format-ignore Add empty top level .clang-format-ignore (#136022) 2025-04-16 15:48:30 -07:00
.clang-tidy Format root clang-tidy config (NFC) (#147902) 2025-07-11 07:18:29 +03:00
.git-blame-ignore-revs Revert "Update .git-blame-ignore-revs for Pack/Unpack move (#152469)" (#152661) 2025-08-10 17:02:35 +01:00
.gitattributes
.gitignore [llvm] Ignore coding assistant artifacts (#153853) 2025-08-15 12:27:54 -07:00
.mailmap [mailmap] Update my name 2025-04-14 16:54:14 +08:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md [www][docs] Remove last mentions of IRC (#139076) 2025-05-08 09:40:33 -04:00
LICENSE.TXT
pyproject.toml
README.md
SECURITY.md

The LLVM Compiler Infrastructure

OpenSSF Scorecard OpenSSF Best Practices libc++

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.

Getting the Source Code and Building LLVM

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.

Getting in touch

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.