Manual-sync mirror of chromium.googlesource.com/external/github.com/llvm/llvm-project (bare monorepo, no subtree suffix)
Find a file
Michael Buch d49c6707d0
[libcxxabi][demangle] Fix the cp-to-llvm.sh sync script to copy all headers (#166572)
In https://github.com/llvm/llvm-project/pull/137947 I refactored the
script and added a `copy_files` function, which takes the header files
to copy as an argument.

But because the list of headers is a space separated string, we need to
quote the string. Otherwise we would just copy the first header in the
list.

This patch also adds an `echo` statement in the `copy_files` loop to
print the source/destination. Confirming that the files are copied as
expected.
```
$ libcxxabi/src/demangle/cp-to-llvm.sh
This will overwrite the copies of ItaniumDemangle.h ItaniumNodes.def StringViewExtras.h Utility.h in ../../../llvm/include/llvm/Demangle and DemangleTestCases.inc in ../../../llvm/include/llvm/Demangle/../Testing/Demangle; are you sure? [y/N]y
Copying ./ItaniumDemangle.h to ../../../llvm/include/llvm/Demangle/ItaniumDemangle.h
Copying ./ItaniumNodes.def to ../../../llvm/include/llvm/Demangle/ItaniumNodes.def
Copying ./StringViewExtras.h to ../../../llvm/include/llvm/Demangle/StringViewExtras.h
Copying ./Utility.h to ../../../llvm/include/llvm/Demangle/Utility.h
Copying ../../test/DemangleTestCases.inc to ../../../llvm/include/llvm/Demangle/../Testing/Demangle/DemangleTestCases.inc
```

Luckily there weren't any out-of-sync changes introduced in the
meantime.
2025-11-05 17:48:47 +00:00
.ci [CI][NFC] Reformat Python Files in .ci directory 2025-11-05 08:40:55 -08:00
.github [Github] Use truncated body in llvm-bugs.yml 2025-11-03 20:10:15 +00:00
bolt [BOLT][NFC] Rename funtions with _negative suffix to _unknown when th… (#166536) 2025-11-05 15:28:31 +00:00
clang [clang] [doc] Document that the ms_abi attribute works on aarch64 too (#166373) 2025-11-05 18:45:33 +02:00
clang-tools-extra [clang-tidy][NFC] Fix broken link in bugprone-default-operator-new-on-overaligned-type (#166546) 2025-11-05 15:51:22 +03: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] Add arm64e module type (#166018) 2025-11-04 14:32:06 -08:00
cross-project-tests Wasm fmuladd relaxed (#163177) 2025-10-13 16:50:53 +01:00
flang [flang] Adding NOTIFY specifier in image selector and add notify type checks (#148810) 2025-11-05 16:35:25 +01:00
flang-rt [flang][rt] Add install target for header files (#165610) 2025-10-29 11:52:06 -10:00
libc [libc][math] Refactor the math_errhandling macro definition (#166350) 2025-11-05 16:59:55 +00:00
libclc [NFC][libclc] Rename clc_cbrt.inc to clc_cbrt.h (#166330) 2025-11-05 08:20:29 +08:00
libcxx [libc++][NFC] Make __type_info_implementations a namespace (#166339) 2025-11-05 10:00:47 +01:00
libcxxabi [libcxxabi][demangle] Fix the cp-to-llvm.sh sync script to copy all headers (#166572) 2025-11-05 17:48:47 +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][WebAssembly] Allow --no-stack-first in addition to --stack-first (#166384) 2025-11-04 18:40:46 +00:00
lldb [lldb] Support a Stable ABI LLDB_PYTHON_EXT_SUFFIX (#166269) 2025-11-05 09:20:10 -08:00
llvm [profcheck] Add unknown branch weights to expanded cmpxchg loop. (#165841) 2025-11-05 09:33:09 -08:00
llvm-libgcc
mlir [MLIR][NVVM] Fix the lowering of mbarrier.test.wait (#166555) 2025-11-05 20:57:26 +05:30
offload [Offload] Add device UID (#164391) 2025-11-04 20:15:47 +01:00
openmp [OpenMP][AIX] Not to create symbolic links to libomp.so on AIX (#165890) 2025-11-03 22:58:56 -05:00
orc-rt [orc-rt] Add ExecutorAddrRange::contains overload for ranges. (#163458) 2025-10-15 08:39:49 +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 [libc][math] Refactor exp2m1f16 implementation to header-only in src/__support/math folder. (#162019) 2025-11-05 14:50:40 +02: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 Revert "Finally formalise our defacto line-ending policy" 2024-10-18 21:16:24 +01:00
.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.