foundationdb/build/concatinate_jsons.py
Alex Miller 9bcc7685d2 Add creating compile_commands.json to the build system.
I'm really not proud of how I did this though.

It must be run from the same environment as one's editor (ie. not in the
docker image) so that the paths are correct.
2018-08-14 15:50:26 -07:00

12 lines
204 B
Python
Executable File

#!/usr/bin/env python
import sys
import json
lst = []
for filename in sys.argv[1:]:
commands = json.load(open(filename))
lst.extend(commands)
json.dump(lst, open("compile_commands.json", "w"))