Skip to content
Snippets Groups Projects
Commit fefcf938 authored by Soeren Peters's avatar Soeren Peters
Browse files

Add filter compile command skript and call it.

parent 257b7944
No related branches found
No related tags found
No related merge requests found
......@@ -283,6 +283,7 @@ clang-tidy:
- mkdir -p build_clang_tidy
- cd build_clang_tidy
- cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_VF_CPU=ON -DBUILD_VF_GPU=OFF
- ./utilities/filterCompileCommands.py compile_commands.json
- run-clang-tidy -quiet > clang-tidy-results.txt
artifacts:
......
#!/usr/bin/env python3
import json
import sys
if __name__ == "__main__":
if len(sys.argv) != 2:
print("usage: ./filterCompileCommands.py compile_commands.json")
exit(-1)
filename = sys.argv[1]
print("loading compile commands file: {}".format(filename))
fin = open(filename, "r")
cc = json.load(fin)
fin.close()
print("compile commands read: {}".format(len(cc)))
\ No newline at end of file
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