Skip to content

Commit

Permalink
Fix .clang-tidy (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
parmeet authored Mar 30, 2021
1 parent 198f83e commit c0bfb03
Showing 1 changed file with 30 additions and 27 deletions.
57 changes: 30 additions & 27 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
---
# NOTE there must be no spaces before the '-', so put the comma first.
# NOTE there must be no spaces before the '-' and check name.
# If you edit this list, please verify list of enabled check with
# clang-tidy --list-checks
InheritParentConfig: true
Checks: '
-*
,bugprone-*
,-bugprone-forward-declaration-namespace
,-bugprone-macro-parentheses
,cppcoreguidelines-*
,-cppcoreguidelines-interfaces-global-init
,-cppcoreguidelines-owning-memory
,-cppcoreguidelines-pro-bounds-array-to-pointer-decay
,-cppcoreguidelines-pro-bounds-constant-array-index
,-cppcoreguidelines-pro-bounds-pointer-arithmetic
,-cppcoreguidelines-pro-type-cstyle-cast
,-cppcoreguidelines-pro-type-reinterpret-cast
,-cppcoreguidelines-pro-type-static-cast-downcast
,-cppcoreguidelines-pro-type-union-access
,-cppcoreguidelines-pro-type-vararg
,-cppcoreguidelines-special-member-functions
,hicpp-exception-baseclass
,hicpp-avoid-goto
,modernize-*
,-modernize-return-braced-init-list
,-modernize-use-auto
,-modernize-use-default-member-init
,-modernize-use-using
,performance-unnecessary-value-param
'
WarningsAsErrors: '*'
bugprone-*,
-bugprone-forward-declaration-namespace,
-bugprone-macro-parentheses,
-clang-analyzer-*,
cppcoreguidelines-*,
-cppcoreguidelines-interfaces-global-init,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-cstyle-cast,
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-pro-type-static-cast-downcast,
-cppcoreguidelines-pro-type-union-access,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-special-member-functions,
-facebook-hte-RelativeInclude,
hicpp-exception-baseclass,
hicpp-avoid-goto,
modernize-*,
-modernize-return-braced-init-list,
-modernize-use-auto,
-modernize-use-default-member-init,
-modernize-use-using,
performance-unnecessary-value-param,
'
HeaderFilterRegex: 'torchaudio/.*'
AnalyzeTemporaryDtors: false
CheckOptions:
Expand Down

0 comments on commit c0bfb03

Please sign in to comment.