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 c,cpp --
lldb/test/API/macosx/arm-pointer-metadata-stripping/main.c
lldb/source/Expression/IRMemoryMap.cpp
``````````
: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/lldb/test/API/macosx/arm-pointer-metadata-stripping/main.c
b/lldb/test/API/macosx/arm-pointer-metadata-stripping/main.c
index cad88495e..71d22bd2d 100644
--- a/lldb/test/API/macosx/arm-pointer-metadata-stripping/main.c
+++ b/lldb/test/API/macosx/arm-pointer-metadata-stripping/main.c
@@ -2,7 +2,6 @@
#include <stdint.h>
#include <stdio.h>
-
int myglobal = 41;
uint64_t get_high_bits(void *ptr) {
@@ -13,8 +12,8 @@ uint64_t get_high_bits(void *ptr) {
return high_bits;
}
-int main (){
+int main() {
int x = 42;
assert(0 == get_high_bits(&x));
- return 0; //break here
+ return 0; // break here
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/153585
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits