Browse Source

clang setup

quality-test
Hendrik Langer 5 years ago
parent
commit
8cab5c72ad
  1. 1
      .gitlab-ci.yml
  2. 1
      script/build_compile_commands.py

1
.gitlab-ci.yml

@ -52,6 +52,7 @@ static_analysis:
script: script:
# - cppcheck --enable=all --check-config src # - cppcheck --enable=all --check-config src
- cppcheck src - cppcheck src
- script/build_compile_commands.py
- run-clang-tidy -fix src - run-clang-tidy -fix src
# artifacts: # artifacts:
# reports: # reports:

1
script/build_compile_commands.py

@ -17,7 +17,6 @@ def shlex_quote(s):
if not s: if not s:
return u"''" return u"''"
if re.search(r'[^\w@%+=:,./-]', s) is None: if re.search(r'[^\w@%+=:,./-]', s) is None:
print(s)
return s return s
return u"'" + s.replace(u"'", u"'\"'\"'") + u"'" return u"'" + s.replace(u"'", u"'\"'\"'") + u"'"

Loading…
Cancel
Save