Exclude paths for compile_commands.json

Hi,

We are generating compile_commands.json using CMAKE_EXPORT_COMPILE_COMMANDS in CMake for passing to cppcheck tool. Now we would like to exclude some paths which we don’t want to see in the database file.
How to set in CMake to exclude paths in the compile_commands.json?

There’s no way to do that today. Feel free to file a feature request.

Thanks for the reply Ben.
I’ll find an alternative.

Thanks.