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

Remove the 3rdParty commands.

parent fefcf938
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@
import json
import sys
def compileCommandSelector(x):
return not (("3rdParty" in x["file"]))
if __name__ == "__main__":
if len(sys.argv) != 2:
......@@ -16,4 +18,12 @@ if __name__ == "__main__":
cc = json.load(fin)
fin.close()
print("compile commands read: {}".format(len(cc)))
\ No newline at end of file
print("compile commands read: {}".format(len(cc)))
cc_filtered = list(filter(compileCommandSelector, cc))
print("compile commands filtered: {}".format(len(cc_filtered)))
fout = open(filename, "w")
json.dump(cc_filtered, fout, indent=4)
fout.close()
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