Commit 93171294 authored by Paul's avatar Paul
Browse files

Update analyzer flags

parent 1b692d0f
...@@ -69,7 +69,19 @@ rocm_enable_clang_tidy( ...@@ -69,7 +69,19 @@ rocm_enable_clang_tidy(
modernize-* modernize-*
performance-* performance-*
readability-* readability-*
-clang-analyzer-alpha.core.CastToStruct # Disable all alpha checks by default
-clang-analyzer-alpha*
# Enable some alpha checks
clang-analyzer-alpha.core.CallAndMessageUnInitRefArg
clang-analyzer-alpha.core.Conversion
clang-analyzer-alpha.core.IdenticalExpr
clang-analyzer-alpha.core.PointerArithm
clang-analyzer-alpha.core.PointerSub
clang-analyzer-alpha.core.TestAfterDivZero
clang-analyzer-alpha.cplusplus.InvalidIterator
clang-analyzer-alpha.cplusplus.IteratorRange
clang-analyzer-alpha.cplusplus.MismatchedIterator
clang-analyzer-alpha.cplusplus.MisusedMovedObject
-clang-analyzer-optin.performance.Padding -clang-analyzer-optin.performance.Padding
-clang-diagnostic-deprecated-declarations -clang-diagnostic-deprecated-declarations
-clang-diagnostic-extern-c-compat -clang-diagnostic-extern-c-compat
...@@ -117,6 +129,8 @@ rocm_enable_clang_tidy( ...@@ -117,6 +129,8 @@ rocm_enable_clang_tidy(
-DMIGRAPHX_USE_CLANG_TIDY -DMIGRAPHX_USE_CLANG_TIDY
"-Dmain\\\\(...\\\\)=main\\\\(__VA_ARGS__\\\\) // NOLINT" "-Dmain\\\\(...\\\\)=main\\\\(__VA_ARGS__\\\\) // NOLINT"
# CLANG_ARGS # CLANG_ARGS
# -analyzer-max-loop 10
# -analyzer-inline-max-stack-depth 10
# -analyzer-config optin.cplusplus.UninitializedObject:Pedantic=true # -analyzer-config optin.cplusplus.UninitializedObject:Pedantic=true
# -analyzer-config widen-loops=true # -analyzer-config widen-loops=true
# -analyzer-config unroll-loops=true # -analyzer-config unroll-loops=true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment