Caphyon / clang-power-tools

Bringing clang-tidy magic to Visual Studio C++ developers.
http://www.clangpowertools.com
Apache License 2.0
472 stars 57 forks source link

Exported compile_commands.json file doesn't include paths to external headers. #1364

Open mbilyanov opened 2 weeks ago

mbilyanov commented 2 weeks ago

I have a project that links to bunch of *.h files outside the scope of it's source code. For example C:\MyThirdPartyTool\SDK_Source\. The project compiles fine as I have this path included in the project configuration. But when I export the compilation commands json file, I don't see and commands referring to my third-part tool, such as -IC:\MyThirdPartyTool\SDK_Source\ etc.

mbilyanov commented 1 week ago

I solved this by including extra flags in the Power Tools settings. I was expecting these to be picked up from the solution configuration.