summaryrefslogtreecommitdiff
path: root/.clang-tidy
diff options
context:
space:
mode:
authorPeter Goldsborough <peter@goldsborough.me>2018-05-09 10:08:53 -0700
committerSoumith Chintala <soumith@gmail.com>2018-05-09 13:08:53 -0400
commit23be4ac3a230349b273f473dc70bda96c4130731 (patch)
tree70a09ce061c0c8bb15a7915e7d4995097b54ff75 /.clang-tidy
parent769397eb7714c9da1ff3a472f67f063e2da7c483 (diff)
downloadpytorch-23be4ac3a230349b273f473dc70bda96c4130731.tar.gz
pytorch-23be4ac3a230349b273f473dc70bda96c4130731.tar.bz2
pytorch-23be4ac3a230349b273f473dc70bda96c4130731.zip
Add clang tidy tooling (#7412)
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy40
1 files changed, 40 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 0000000000..19dad14435
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,40 @@
+---
+# NOTE: there must be no spaces before the '-', so put the comma first.
+Checks: '
+ *
+ ,modernize-*
+ ,clang-analyzer-*
+ ,-clang-diagnostic-*
+ ,-hicpp-no-array-decay
+ ,-fuchsia-*
+ ,-google-readability-namespace-comments
+ ,-llvm-namespace-comment
+ ,-google-readability-todo
+ ,-cppcoreguidelines-pro-bounds-array-to-pointer-decay
+ ,-cert-err60-cpp
+ ,-llvm-header-guard
+ ,-cppcoreguidelines-special-member-functions
+ ,-misc-unused-parameters
+ ,-hicpp-braces-around-statements
+ ,-hicpp-special-member-functions
+ ,-readability-braces-around-statements
+ ,-modernize-use-default-member-init
+ ,-google-runtime-references
+ ,-cppcoreguidelines-pro-type-vararg
+ ,-google-readability-braces-around-statements
+ ,-google-build-using-namespace
+ ,-hicpp-vararg
+ ,-hicpp-explicit-conversions
+ ,-performance-unnecessary-value-param
+ ,-google-runtime-references
+ ,-cppcoreguidelines-pro-type-static-cast-downcast
+ ,-cppcoreguidelines-pro-bounds-constant-array-index
+ ,-cert-err58-cpp
+ ,-modernize-make-unique
+ ,-cppcoreguidelines-owning-memory
+ '
+WarningsAsErrors: ''
+HeaderFilterRegex: 'torch/csrc/'
+AnalyzeTemporaryDtors: false
+CheckOptions:
+...