clang-tidy: need way to remove options
The opposite of #17937 - I am building embedded software using the GNU toolchain, and passing in some flags that clang-tidy
doesn't recognize, and fails on.
What I need is either:
- an option remove compiler flags from what is passed to
clang-tidy
- an escape hatch that allows me to do my own manipulation of
compilation_database.json
before it is passed toclang-tidy
On a different note, a lot of tools seem to output JSON nowadays. There is an awesome commandline tool for manipulating JSON, jq, which, while the API documentation is non-existent, supports being built as a library. It might be worthwhile to at least investigate integration in a longer-term perspective.