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 HEAD~1 HEAD --extensions h,cpp,c,inc --
clang/bindings/python/tests/cindex/INPUTS/a.inc
clang/bindings/python/tests/cindex/INPUTS/b.inc
clang/bindings/python/tests/cindex/INPUTS/header1.h
clang/bindings/python/tests/cindex/INPUTS/header2.h
clang/bindings/python/tests/cindex/INPUTS/header3.h
clang/bindings/python/tests/cindex/INPUTS/hello.cpp
clang/bindings/python/tests/cindex/INPUTS/include.cpp
clang/bindings/python/tests/cindex/INPUTS/parse_arguments.c
clang/bindings/python/tests/cindex/INPUTS/testfile.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/bindings/python/tests/cindex/INPUTS/hello.cpp
b/clang/bindings/python/tests/cindex/INPUTS/hello.cpp
index 7ef086e56..598a0d85a 100644
--- a/clang/bindings/python/tests/cindex/INPUTS/hello.cpp
+++ b/clang/bindings/python/tests/cindex/INPUTS/hello.cpp
@@ -1,6 +1,6 @@
#include "stdio.h"
-int main(int argc, char* argv[]) {
- printf("hello world\n");
- return 0;
+int main(int argc, char *argv[]) {
+ printf("hello world\n");
+ return 0;
}
diff --git a/clang/bindings/python/tests/cindex/INPUTS/include.cpp
b/clang/bindings/python/tests/cindex/INPUTS/include.cpp
index 60cfdaae4..a16b6a1c3 100644
--- a/clang/bindings/python/tests/cindex/INPUTS/include.cpp
+++ b/clang/bindings/python/tests/cindex/INPUTS/include.cpp
@@ -1,5 +1,4 @@
#include "header1.h"
#include "header2.h"
-#include "header1.h"
-int main() { }
+int main() {}
``````````
</details>
https://github.com/llvm/llvm-project/pull/146931
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits