[clang] [llvm] __ARM_ARCH macro definition fix (PR #81301)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 9 11:11:32 PST 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 301f6840522e3d924cf00ab6a04f93f1354142f5 4f3a6f2ee1c6b8684f7a1eba1dc6db8c82925169 -- clang/test/Preprocessor/arm-target-features.c llvm/include/llvm/TargetParser/ARMTargetParser.h llvm/lib/TargetParser/ARMTargetParser.cpp llvm/unittests/TargetParser/TargetParserTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/TargetParser/TargetParserTest.cpp b/llvm/unittests/TargetParser/TargetParserTest.cpp
index 260561edde..fcce009e40 100644
--- a/llvm/unittests/TargetParser/TargetParserTest.cpp
+++ b/llvm/unittests/TargetParser/TargetParserTest.cpp
@@ -977,7 +977,7 @@ TEST(TargetParserTest, ARMparseArchVersion) {
}
TEST(TargetParserTest, ARMparseArchMinorVersion) {
- for(unsigned i = 0; i< std::size(ARMArch); i++)
+ for (unsigned i = 0; i < std::size(ARMArch); i++)
if (((std::string)ARMArch[i]).find(".") == 5)
EXPECT_EQ((ARMArch[i][6] - 48u), ARM::parseArchMinorVersion(ARMArch[i]));
else
``````````
</details>
https://github.com/llvm/llvm-project/pull/81301
More information about the cfe-commits
mailing list