forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable clang-tidy in CI (pytorch#12213)
Summary: At long last, we will have clang-tidy enabled in CI. For a while I thought I could clean up the project enough to enable clang-tidy with all checks enabled, but I figure it's smarter to set up the minimal checks and at least have those in CI. We can fix more going forward. ezyang apaszke Pull Request resolved: pytorch#12213 Differential Revision: D10183069 Pulled By: goldsborough fbshipit-source-id: 7ecd2d368258f46efe23a2449c0a206d10f3a769
- Loading branch information
1 parent
c9f9df0
commit bcc2a05
Showing
13 changed files
with
175 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,11 @@ | ||
--- | ||
# NOTE: there must be no spaces before the '-', so put the comma first. | ||
Checks: ' | ||
* | ||
,clang-analyzer-* | ||
,modernize-* | ||
,-cert-dcl21-cpp | ||
,-cert-err58-cpp | ||
,-cert-err60-cpp | ||
,-clang-diagnostic-* | ||
,-cppcoreguidelines-owning-memory | ||
,-cppcoreguidelines-pro-bounds-array-to-pointer-decay | ||
,-cppcoreguidelines-pro-bounds-constant-array-index | ||
,-cppcoreguidelines-pro-type-member-init | ||
,-cppcoreguidelines-pro-type-static-cast-downcast | ||
,-cppcoreguidelines-pro-type-union-access | ||
,-cppcoreguidelines-pro-type-vararg | ||
,-cppcoreguidelines-special-member-functions | ||
,-fuchsia-* | ||
,-google-build-using-namespace | ||
,-google-default-arguments | ||
,-google-explicit-constructor | ||
,-google-readability-braces-around-statements | ||
,-google-readability-namespace-comments | ||
,-google-readability-todo | ||
,-google-runtime-references | ||
,-google-runtime-references | ||
,-hicpp-braces-around-statements | ||
,-hicpp-explicit-conversions | ||
,-hicpp-member-init | ||
,-hicpp-no-array-decay | ||
,-hicpp-signed-bitwise | ||
,-hicpp-special-member-functions | ||
,-hicpp-vararg | ||
,-llvm-header-guard | ||
,-llvm-include-order | ||
,-llvm-namespace-comment | ||
,-misc-unused-parameters | ||
,-modernize-make-unique | ||
,-modernize-use-default-member-init | ||
,-performance-unnecessary-value-param | ||
,-readability-braces-around-statements | ||
,-readability-else-after-return | ||
,-readability-implicit-bool-conversion | ||
,-readability-named-parameter | ||
-* | ||
,modernize-deprecated-headers | ||
' | ||
WarningsAsErrors: '' | ||
HeaderFilterRegex: 'torch/csrc/' | ||
WarningsAsErrors: '*' | ||
HeaderFilterRegex: 'torch/csrc/.*' | ||
AnalyzeTemporaryDtors: false | ||
CheckOptions: | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.