Open varungandhi-src opened 1 year ago
Now I'm wondering if we should instead record bad files separately, maybe a simple file format, and then ingest that. That would also solve this problem in a more general way.
Hmm, there are two different things here:
--command-limit
flag would allow one to easily iteratively check for simple errors. E.g. some messed up paths.So they'd actually be serving two different purposes.
One of the common things needed during debugging initial setup around paths, headers etc. is to subset out the
compile_commands.json
file using jq.jq '.[0:N]' compile_commands.json > other.json
and then run againstother.json
. This speeds up the iteration cycle. Maybe we should have a flag to make this simpler, instead of having to fiddle with jq.Tentative flag name is
--command-limit
, open to other suggestions.