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 h,cpp,c --
clang/test/CodeGenCXX/ptrauth-vtable-in-vtt.cpp
clang/lib/CodeGen/CGPointerAuth.cpp clang/lib/CodeGen/CGVTT.cpp
clang/lib/CodeGen/CodeGenFunction.h clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/lib/Driver/ToolChains/Clang.cpp clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Driver/aarch64-ptrauth.c --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/lib/CodeGen/CGPointerAuth.cpp
b/clang/lib/CodeGen/CGPointerAuth.cpp
index 5a8ed2848..0af314040 100644
--- a/clang/lib/CodeGen/CGPointerAuth.cpp
+++ b/clang/lib/CodeGen/CGPointerAuth.cpp
@@ -138,7 +138,8 @@ CodeGenFunction::EmitPointerAuthInfo(const
PointerAuthSchema &Schema,
if (!Schema)
return CGPointerAuthInfo();
- PointerAuthSchema::Discrimination ExtraDiscKind =
Schema.getOtherDiscrimination();
+ PointerAuthSchema::Discrimination ExtraDiscKind =
+ Schema.getOtherDiscrimination();
assert(
(ExtraDiscKind == PointerAuthSchema::Discrimination::None ||
ExtraDiscriminator) &&
diff --git a/clang/lib/CodeGen/CGVTT.cpp b/clang/lib/CodeGen/CGVTT.cpp
index 81033079d..4cff5a12e 100644
--- a/clang/lib/CodeGen/CGVTT.cpp
+++ b/clang/lib/CodeGen/CGVTT.cpp
@@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
-#include "CodeGenModule.h"
#include "CGCXXABI.h"
+#include "CodeGenModule.h"
#include "clang/AST/RecordLayout.h"
#include "clang/AST/TypeBase.h"
#include "clang/AST/VTTBuilder.h"
``````````
</details>
https://github.com/llvm/llvm-project/pull/205808
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits