clang-power-tools icon indicating copy to clipboard operation
clang-power-tools copied to clipboard

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

Open mbilyanov opened this issue 1 year ago • 2 comments
trafficstars

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 avatar Jun 18 '24 23:06 mbilyanov

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

mbilyanov avatar Jun 19 '24 16:06 mbilyanov

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

mariru27 avatar Aug 01 '24 12:08 mariru27