diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9e7a956..632815a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,6 +52,7 @@ static_analysis: script: # - cppcheck --enable=all --check-config src - cppcheck src + - script/build_compile_commands.py - run-clang-tidy -fix src # artifacts: # reports: diff --git a/script/build_compile_commands.py b/script/build_compile_commands.py index 9fcd30a..c8c1e9f 100755 --- a/script/build_compile_commands.py +++ b/script/build_compile_commands.py @@ -17,7 +17,6 @@ def shlex_quote(s): if not s: return u"''" if re.search(r'[^\w@%+=:,./-]', s) is None: - print(s) return s return u"'" + s.replace(u"'", u"'\"'\"'") + u"'"