Commit 6bb68a32 authored by Paul's avatar Paul
Browse files

Add clang args

parent 93171294
......@@ -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(
......
......@@ -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 -j8 -k analyze
make -j$(nproc) -k analyze
'''
}
}, format: rocmnode('rocmtest') { cmake_build ->
......
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