Hey Guillaume, nice tool you've wrote. I was wondering that what's your opinion to implement these compilation database manipulations?
- convert all file path to relative from absolute
- convert all file path to absolute from relative
(Paths can be in directory and file, but also in the command arguments too. Like -I/path/to/include or -o /path/to/output.)
- filter out duplicate entries.
- filter compilation commands arguments.
(Duplicates could be when the directory and file, but the command has minor irrelevant differences like -MD or -static which are either preprocessing or linking flags. That's where the flag filtering could help.)
- exclude files with pattern
(Some project contains dependency code, which they might not want to run the tooling against.)
Hey Guillaume, nice tool you've wrote. I was wondering that what's your opinion to implement these compilation database manipulations?
(Paths can be in
directoryandfile, but also in thecommandarguments too. Like-I/path/to/includeor-o /path/to/output.)(Duplicates could be when the
directoryandfile, but thecommandhas minor irrelevant differences like-MDor-staticwhich are either preprocessing or linking flags. That's where the flag filtering could help.)(Some project contains dependency code, which they might not want to run the tooling against.)