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 origin/main HEAD --extensions cpp,h --
clang/include/clang/Basic/TargetBuiltins.h clang/lib/Basic/Targets/SystemZ.cpp
clang/utils/TableGen/ClangBuiltinsEmitter.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/Basic/TargetBuiltins.h
b/clang/include/clang/Basic/TargetBuiltins.h
index ae4bcdb9e..ea85634be 100644
--- a/clang/include/clang/Basic/TargetBuiltins.h
+++ b/clang/include/clang/Basic/TargetBuiltins.h
@@ -454,13 +454,13 @@ namespace clang {
/// SystemZ builtins
namespace SystemZ {
- enum {
- LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1,
+ enum {
+ LastTIBuiltin = clang::Builtin::FirstTSBuiltin - 1,
#define GET_BUILTIN_ENUMERATORS
#include "clang/Basic/BuiltinsSystemZ.inc"
#undef GET_BUILTIN_ENUMERATORS
- LastTSBuiltin
- };
+ LastTSBuiltin
+ };
}
/// WebAssembly builtins
diff --git a/clang/lib/Basic/Targets/SystemZ.cpp
b/clang/lib/Basic/Targets/SystemZ.cpp
index c740e0edd..750629ac9 100644
--- a/clang/lib/Basic/Targets/SystemZ.cpp
+++ b/clang/lib/Basic/Targets/SystemZ.cpp
@@ -217,5 +217,5 @@ void SystemZTargetInfo::getTargetDefines(const LangOptions
&Opts,
llvm::SmallVector<Builtin::InfosShard>
SystemZTargetInfo::getTargetBuiltins() const {
return {{&BuiltinStrings, BuiltinInfos},
- {&BuiltinStrings, PrefixedBuiltinInfos, "__builtin_s390_"} };
+ {&BuiltinStrings, PrefixedBuiltinInfos, "__builtin_s390_"}};
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/190232
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits