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 hpp,h,cpp -- 
libunwind/test/ra_sign_state_lr.pass.cpp libunwind/src/DwarfInstructions.hpp 
libunwind/src/DwarfParser.hpp llvm/include/llvm/MC/MCDwarf.h 
llvm/include/llvm/MC/MCStreamer.h llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp 
llvm/lib/MC/MCAsmStreamer.cpp llvm/lib/MC/MCDwarf.cpp 
llvm/lib/MC/MCStreamer.cpp llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp 
llvm/lib/Target/AArch64/AArch64PointerAuth.cpp 
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.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/libunwind/src/DwarfParser.hpp b/libunwind/src/DwarfParser.hpp
index cb276ab3c..17048e5d7 100644
--- a/libunwind/src/DwarfParser.hpp
+++ b/libunwind/src/DwarfParser.hpp
@@ -57,7 +57,7 @@ public:
 #if defined(_LIBUNWIND_TARGET_AARCH64)
     bool      addressesSignedWithBKey;
     bool      mteTaggedFrame;
-    bool      nonHintPAuthFrame;
+    bool nonHintPAuthFrame;
 #endif
   };
 
diff --git a/libunwind/test/ra_sign_state_lr.pass.cpp 
b/libunwind/test/ra_sign_state_lr.pass.cpp
index 86ac6da1b..0fd80208c 100644
--- a/libunwind/test/ra_sign_state_lr.pass.cpp
+++ b/libunwind/test/ra_sign_state_lr.pass.cpp
@@ -68,9 +68,7 @@ static bool checkHasPAuthLR() {
   return hasPAuthLR();
 }
 #elif defined(_LIBUNWIND_IS_BAREMETAL)
-static bool checkHasPAuthLR() {
-  return hasPAuthLR();
-}
+static bool checkHasPAuthLR() { return hasPAuthLR(); }
 #else
 static bool checkHasPAuthLR() {
   // TODO: Support other platforms.

``````````

</details>


https://github.com/llvm/llvm-project/pull/233885
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to