[clang] [llvm] [llvm][Triple] Add `Environment` members and parsing for glibc/musl parity. (PR #107664)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 6 19:07:54 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff f93114d7004ebf6443dd2b6e557b57209fd58852 1dd981af8521bcf6c12e412493bb00de2e20ef73 --extensions cpp,h -- clang/lib/Basic/Targets/Mips.h clang/lib/Driver/Driver.cpp clang/lib/Driver/ToolChains/Arch/LoongArch.cpp clang/lib/Driver/ToolChains/Arch/Mips.cpp clang/lib/Driver/ToolChains/Gnu.cpp clang/lib/Driver/ToolChains/Linux.cpp llvm/include/llvm/TargetParser/Triple.h llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchBaseInfo.cpp llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp llvm/lib/TargetParser/Triple.cpp llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp llvm/unittests/TargetParser/TripleTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp
index 813d283acb..26ab1be4eb 100644
--- a/llvm/lib/TargetParser/Triple.cpp
+++ b/llvm/lib/TargetParser/Triple.cpp
@@ -325,12 +325,16 @@ StringRef Triple::getEnvironmentTypeName(EnvironmentType Kind) {
case MSVC: return "msvc";
case MacABI: return "macabi";
case Musl: return "musl";
- case MuslABIN32: return "muslabin32";
- case MuslABI64: return "muslabi64";
+ case MuslABIN32:
+ return "muslabin32";
+ case MuslABI64:
+ return "muslabi64";
case MuslEABI: return "musleabi";
case MuslEABIHF: return "musleabihf";
- case MuslF32: return "muslf32";
- case MuslSF: return "muslsf";
+ case MuslF32:
+ return "muslf32";
+ case MuslSF:
+ return "muslsf";
case MuslX32: return "muslx32";
case Simulator: return "simulator";
case Pixel: return "pixel";
``````````
</details>
https://github.com/llvm/llvm-project/pull/107664
More information about the cfe-commits
mailing list