Skip to content

Commit

Permalink
Fix .clang-tidy and add rule to ignore pointer->boolean cast
Browse files Browse the repository at this point in the history
  • Loading branch information
goldsborough committed Jan 1, 2018
1 parent a1800c7 commit 18b018d
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,8 +1,33 @@
---
Checks: '*,clang-diagnostic-*, moderinize-*, clang-analyzer-*,-clang-analyzer-alpha*,-readability-named-parameter,-misc-unused-parameters,-google-runtime-references,-google-build-using-namespace,-cppcoreguidelines-pro-type-union-access,-google-readability-casting,-readability-implicit-bool-cast,-google-readability-todo,-readability-braces-around-statements,-google-readability-braces-around-statements,-performance-unnecessary-value-param,-misc-unused-using-decls,-modernize-pass-by-value,-modernize-raw-string-literal,-readability-else-after-return,-readability-implicit-bool-conversion,-cppcoreguidelines-pro-type-member-init,-hicpp-member-init'
# NOTE: there must be no spaces before the '-', so put the comma first.
Checks: '
*
,clang-diagnostic-*
,modernize-*
,clang-analyzer-*
,-clang-analyzer-alpha*
,-readability-named-parameter
,-misc-unused-parameters
,-google-runtime-references
,-google-build-using-namespace
,-cppcoreguidelines-pro-type-union-access
,-google-readability-casting
,-readability-implicit-bool-cast
,-google-readability-todo
,-readability-braces-around-statements
,-google-readability-braces-around-statements
,-performance-unnecessary-value-param
,-misc-unused-using-decls
,-modernize-pass-by-value
,-modernize-raw-string-literal
,-readability-else-after-return
,-readability-implicit-bool-conversion
,-cppcoreguidelines-pro-type-member-init
,-hicpp-member-init
,-cppcoreguidelines-pro-bounds-array-to-pointer-decay
'
WarningsAsErrors: ''
HeaderFilterRegex: 'include/glow'
AnalyzeTemporaryDtors: false
CheckOptions:
...

0 comments on commit 18b018d

Please sign in to comment.