Skip to content

Commit

Permalink
chore: add debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxianpeng committed Dec 21, 2023
1 parent d59f262 commit 2a92e91
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions cpp_linter_hooks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
print(args)

expect_version = get_expect_version(args)
print(f"expect_version is {expect_version}")

for tool in clang_tools:
if expect_version:
Expand Down
2 changes: 1 addition & 1 deletion testing/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/cpp-linter/cpp-linter-hooks
rev: 4d7a77444488b57c42065e4a14e891ae29761d0b
rev: d59f2627a2bbb3bba3da08299f556787e15ed81e
hooks:
- id: clang-format
args: [--style=file, --version=15] # to load .clang-format
Expand Down
8 changes: 7 additions & 1 deletion testing/main.c
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
#include <stdio.h>
int main() {for (;;) break; printf("Hello world!\n");return 0;}
int main()
{
for (;;)
break;
printf("Hello world!\n");
return 0;
}

0 comments on commit 2a92e91

Please sign in to comment.