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

Compile - ignore third-party project files #1356

Open johanneskopf opened 2 months ago

johanneskopf commented 2 months ago

Hi,

With LLVM 17.0.1 the project compiles fine, but when using using the latest LLVM 18.1.2 I am running into compile errors of a third party library. The library is included in the solution as a separate project.

I believed this suffices after reading this comment, stating:

As of v7.9, Clang Power Tools does not implement predefined support (visual picker interface) for ignoring particular folders. However, you can achieve this by using the 'Files to ignore' field. This field supports partial matching of the project file paths, in your case the parent directory path. E.g. to ignore C:\source\myproj\main.cpp and all other files residing there you could pass C:\source\myproj to the Files to ignore field.

Although I am using the settings stated above, right clicking my project and hitting the Clang Power Tools - Compile action still results in:

C:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v22.1.0\Source\Common\ScrollBar\XTPScrollable.h(479): error: no member named 'GetStyle' in 'CObject'

What am I missing here?

Possibly related to: https://github.com/Caphyon/clang-power-tools/issues/1149

Best regards, Johannes