Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
93171294
Commit
93171294
authored
Feb 24, 2020
by
Paul
Browse files
Update analyzer flags
parent
1b692d0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
CMakeLists.txt
CMakeLists.txt
+20
-6
No files found.
CMakeLists.txt
View file @
93171294
...
...
@@ -69,7 +69,19 @@ rocm_enable_clang_tidy(
modernize-*
performance-*
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-diagnostic-deprecated-declarations
-clang-diagnostic-extern-c-compat
...
...
@@ -117,11 +129,13 @@ rocm_enable_clang_tidy(
-DMIGRAPHX_USE_CLANG_TIDY
"-Dmain
\\\\
(...
\\\\
)=main
\\\\
(__VA_ARGS__
\\\\
) // NOLINT"
# CLANG_ARGS
# -analyzer-config optin.cplusplus.UninitializedObject:Pedantic=true
# -analyzer-config widen-loops=true
# -analyzer-config unroll-loops=true
# -analyzer-config cfg-lifetime=true
# -analyzer-config cfg-scopes=true
# -analyzer-max-loop 10
# -analyzer-inline-max-stack-depth 10
# -analyzer-config optin.cplusplus.UninitializedObject:Pedantic=true
# -analyzer-config widen-loops=true
# -analyzer-config unroll-loops=true
# -analyzer-config cfg-lifetime=true
# -analyzer-config cfg-scopes=true
)
include
(
ROCMCppCheck
)
rocm_enable_cppcheck
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment