clang-power-tools
clang-power-tools copied to clipboard
Exported compile_commands.json file doesn't include paths to external headers.
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.
I solved this by including extra flags in the Power Tools settings. I was expecting these to be picked up from the solution configuration.
Hi @mbilyanov,
I'm glad you found a way to solve the issue. We do support picking up flags from the solution configuration. If you could provide us with the section of the solution configuration where the flags are specified, it would be helpful.
Best regards, Marina