Skip to content

Commit

Permalink
add clang tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed Oct 5, 2024
1 parent fddbfce commit 17ba53c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Checks: >
-*,
bugprone-*,
google-*,
misc-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-google-readability-namespace-comments,
-google-runtime-int,
-google-runtime-references,
-misc-non-private-member-variables-in-classes,
-readability-named-parameter,
-readability-braces-around-statements,
-readability-magic-numbers
# Turn all the warnings from the checks above into errors.
WarningsAsErrors: ""
1 change: 1 addition & 0 deletions scripts/clang_tidy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
clang-tidy test/test.cpp -- -Iinclude -Ithird_party/include

1 comment on commit 17ba53c

@Spixmaster
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should preferable integrate clang-tidy into your text editor and not just run it as a command.

Please sign in to comment.