From 8cab5c72ada12784d8cc1d4eeb9165fc1df3d3e4 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Thu, 18 Jul 2019 15:31:47 +0200 Subject: [PATCH] clang setup --- .gitlab-ci.yml | 1 + script/build_compile_commands.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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"'"