[all-commits] [llvm/llvm-project] 1f9e18: [llvm] Remove (some) LLVMDemangle header dependencies
serge-sans-paille via All-commits
all-commits at lists.llvm.org
Fri Jan 21 01:48:39 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1f9e18b6565fd1bb69c4b649b9efd3467b3c7c7d
https://github.com/llvm/llvm-project/commit/1f9e18b6565fd1bb69c4b649b9efd3467b3c7c7d
Author: serge-sans-paille <sguelton at redhat.com>
Date: 2022-01-21 (Fri, 21 Jan 2022)
Changed paths:
M llvm/include/llvm/Demangle/ItaniumDemangle.h
M llvm/include/llvm/Demangle/StringView.h
M llvm/include/llvm/Demangle/Utility.h
Log Message:
-----------
[llvm] Remove (some) LLVMDemangle header dependencies
- Avoid using <iterator> for std::end on a plain array (using <array> instead)
- Avoid using <algorithm> for std::min and std::equal (using alternate logic and std::strcmp instead)
As an hint to the impact of the cleanup, running
clang++ -E -Iinclude -I../llvm/include ../llvm/lib/Demangle/*.cpp -std=c++14 -fno-rtti -fno-exceptions | wc -l
before: 203965 lines
after: 169704 lines
More information about the All-commits
mailing list