IAP GITLAB

Skip to content
Snippets Groups Projects
Commit ca4c07cb authored by ralfulrich's avatar ralfulrich
Browse files

clang-format is (now) part of container

parent 5bb7d683
No related branches found
No related tags found
1 merge request!245Include proposal process rebase
Pipeline #2315 failed
...@@ -54,9 +54,7 @@ check-copyrights: ...@@ -54,9 +54,7 @@ check-copyrights:
########################################################## ##########################################################
check-clang-format: check-clang-format:
image: corsika/devel:u-18.04 image: corsika/devel:clang-8
before_script:
- apt-get update && apt-get install -y -qq clang-format
stage: quality stage: quality
tags: tags:
- corsika - corsika
......
...@@ -49,7 +49,10 @@ else: ...@@ -49,7 +49,10 @@ else:
filelist = [x for x in filelist filelist = [x for x in filelist
if "ThirdParty" not in x and (x.endswith(".h") or x.endswith(".cc"))] if "ThirdParty" not in x and (x.endswith(".h") or x.endswith(".cc"))]
cmd = "clang-format -style=file" cmd = "clang-format"
if "CLANG_FORMAT" in os.environ:
cmd = os.environ["CLANG_FORMAT"]
cmd += " -style=file"
if args.apply: if args.apply:
for filename in filelist: for filename in filelist:
subp.check_call(cmd.split() + ["-i", filename]) subp.check_call(cmd.split() + ["-i", filename])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment