Skip to content

Commit

Permalink
Update the .clang-tidy to add rules
Browse files Browse the repository at this point in the history
Update the .clang-tidy to add new rules for check.
This patch add the rules for magic numbers, use nullptr
and move const.
  • Loading branch information
shining committed Feb 12, 2020
1 parent 7c32caa commit 914d0eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Checks: '-*,readability-identifier-naming,readability-function-size,misc-unused-parameters'
Checks: '-*,readability-identifier-naming,readability-function-size,misc-unused-parameters,
readability-magic-numbers,modernize-use-nullptr,performance-move-const-arg'
CheckOptions:
- key: readability-identifier-naming.ClassCase
value: CamelCase
Expand Down

0 comments on commit 914d0eb

Please sign in to comment.