Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
6bb68a32
Commit
6bb68a32
authored
Feb 24, 2020
by
Paul
Browse files
Add clang args
parent
93171294
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
CMakeLists.txt
CMakeLists.txt
+8
-8
Jenkinsfile
Jenkinsfile
+2
-2
No files found.
CMakeLists.txt
View file @
6bb68a32
...
...
@@ -128,14 +128,14 @@ rocm_enable_clang_tidy(
-UNDEBUG
-DMIGRAPHX_USE_CLANG_TIDY
"-Dmain
\\\\
(...
\\\\
)=main
\\\\
(__VA_ARGS__
\\\\
) // NOLINT"
#
CLANG_ARGS
#
-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
CLANG_ARGS
-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
(
...
...
Jenkinsfile
View file @
6bb68a32
...
...
@@ -9,7 +9,7 @@ def rocmtestnode(variant, name, body) {
mkdir build
cd build
CXX=${compiler} CXXFLAGS='-Werror -Wno-fallback' cmake ${flags} ..
CTEST_PARALLEL_LEVEL=
32 make -j32
generate all doc package check
CTEST_PARALLEL_LEVEL=
\$(nproc) make -j\$(nproc)
generate all doc package check
"""
echo
cmd
sh
cmd
...
...
@@ -82,7 +82,7 @@ rocmtest tidy: rocmnode('rocmtest') { cmake_build ->
mkdir build
cd build
CXX=hcc cmake ..
make -j
8
-k analyze
make -j
$(nproc)
-k analyze
'''
}
},
format:
rocmnode
(
'rocmtest'
)
{
cmake_build
->
...
...
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