Skip to content

Commit 2e84ed4

Browse files
committed
docs: fix clang-tidy command
1 parent ab46666 commit 2e84ed4

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/clang_tidy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,6 @@ jobs:
6767
bazel run @hedron_compile_commands//:refresh_all
6868
2. Run clang-tidy:
6969
find . -iname \"*.c\" -o -iname \"*.cc\" -o -iname \"*.cpp" -o -iname \"*.cxx\" -o -iname \"*.h\" -o -iname \"*.hpp\" -o -iname \"*.hxx\" | xargs clang-tidy -p ./compile_commands.json
70+
3. Run clang-tidy:
71+
find . -iname \"*.c\" -o -iname \"*.cc\" -o -iname \"*.cpp" -o -iname \"*.cxx\" -o -iname \"*.h\" -o -iname \"*.hpp\" -o -iname \"*.hxx\" | xargs clang-tidy -p ./compile_commands.json -fix --fix-errors
7072
======================================================================================"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ To automatically apply fixes suggested by Clang-Tidy, follow these steps:
203203
To run for all relevant C++ source files:
204204
205205
```bash
206-
find . -iname "*.c" -o -iname "*.cc" -o -iname "*.cpp" -o -iname "*.cxx" -o -iname "*.h" -o -iname "*.hpp" -o -iname "*.hxx" | xargs clang-tidy -fix -fix-errors -p ./compile_commands.json
206+
find . -iname "*.c" -o -iname "*.cc" -o -iname "*.cpp" -o -iname "*.cxx" -o -iname "*.h" -o -iname "*.hpp" -o -iname "*.hxx" | xargs clang-tidy -fix --fix-errors -p ./compile_commands.json
207207
```
208208
209209
### 2.4. Clang-Format

examples/cpp/hi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
static void test(){}
1+
static void test() {}

0 commit comments

Comments
 (0)