mirror-llvm-project/libcxxabi
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
..
cmake Revert "[runtimes] Probe for -nostdlib++ and -nostdinc++ with the C compiler" (#113653) 2024-10-25 09:12:32 +03:00
fuzz
include [runtimes][PAC] Harden unwinding when possible (#143230) 2025-10-20 09:57:45 -07:00
lib [libc++] Avoid re-exporting a few specific symbols from libc++abi (#109054) 2024-10-01 09:39:44 -04:00
src [libcxxabi][demangle] Fix the cp-to-llvm.sh sync script to copy all headers (#166572) 2025-11-05 17:48:47 +00:00
test [libc++] Add availability markup for LLVM 19 and LLVM 20 (#140072) 2025-11-02 15:24:30 -10:00
www
.clang-format
.gitignore
CMakeLists.txt [NFC][CMake] quote ${CMAKE_SYSTEM_NAME} consistently (#154537) 2025-08-20 12:45:41 -04:00
CREDITS.TXT
LICENSE.TXT