[clang] [llvm] Use XMACROS for MachO platforms. (PR #69262)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 16 16:16:50 PDT 2023
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 b225934a4b0d2944958a53269665b00e7eae4875 d6a4d1cc70e7d3a13b94ff397bef8a0a75e21257 -- clang/lib/CodeGen/CGObjC.cpp llvm/include/llvm/BinaryFormat/MachO.h llvm/include/llvm/Object/MachO.h llvm/lib/MC/MCAsmStreamer.cpp llvm/lib/MC/MCParser/DarwinAsmParser.cpp llvm/lib/TextAPI/Platform.cpp llvm/lib/TextAPI/Target.cpp llvm/lib/TextAPI/TextStub.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/MC/MCParser/DarwinAsmParser.cpp b/llvm/lib/MC/MCParser/DarwinAsmParser.cpp
index 287af822311c..4a8fc7388ec8 100644
--- a/llvm/lib/MC/MCParser/DarwinAsmParser.cpp
+++ b/llvm/lib/MC/MCParser/DarwinAsmParser.cpp
@@ -1167,11 +1167,11 @@ bool DarwinAsmParser::parseBuildVersion(StringRef Directive, SMLoc Loc) {
return TokError("platform name expected");
unsigned Platform = StringSwitch<unsigned>(PlatformName)
- #define PLATFORM(platform, id, name, target, tapi_target, marketing) \
- .Case(#name, MachO::PLATFORM_##platform)
- #include "llvm/BinaryFormat/MachO.def"
- .Default(MachO::PLATFORM_UNKNOWN);
-
+#define PLATFORM(platform, id, name, target, tapi_target, marketing) \
+ .Case(#name, MachO::PLATFORM_##platform)
+#include "llvm/BinaryFormat/MachO.def"
+ .Default(MachO::PLATFORM_UNKNOWN);
+
if (Platform == MachO::PLATFORM_UNKNOWN)
return Error(PlatformLoc, "unknown platform name");
``````````
</details>
https://github.com/llvm/llvm-project/pull/69262
More information about the cfe-commits
mailing list