Permalink
Browse files

Fix .clang-tidy and add rule to ignore pointer->boolean cast

  • Loading branch information...
goldsborough committed Jan 1, 2018
1 parent a1800c7 commit 18b018d19d2d1eeaa282688c6052e2fb34322631
Showing with 27 additions and 2 deletions.
  1. +27 −2 .clang-tidy
@@ -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.