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

Not work with wdk #1340

Open HXXZA opened 4 months ago

HXXZA commented 4 months ago

Hi, i have a question, I use wdk to develop windows driver ,but when i export the database . It not contain any driver header or marco..

`

[ { "directory": "E:/OneDrive/Knowledge_System/Windows/Driver/FileFilter/nullFilter/", "command": "\"C:/Program Files/LLVM/bin/clang++.exe\" -x c \"E:/OneDrive/Knowledge_System/Windows/Driver/FileFilter/nullFilter/nullFilter.c\" -Wall -fms-compatibility-version=19.10 -Wmicrosoft -Wno-invalid-token-paste -Wno-unknown-pragmas -Wno-unused-value -fsyntax-only \"-D_MT\" \"-D_DLL\" \"-D_DEBUG_FUNCTIONAL_MACHINERY\" -isystem\"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\" -isystem\"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/atlmfc/include\" -isystem\"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/VS/include\" -isystem\"C:/Program Files (x86)/Windows Kits/10/Include/10.0.22000.0/ucrt\" -isystem\"C:/Program Files (x86)/Windows Kits/10/Include/10.0.22000.0/um\" -isystem\"C:/Program Files (x86)/Windows Kits/10/Include/10.0.22000.0/shared\" -isystem\"C:/Program Files (x86)/Windows Kits/10/Include/10.0.22000.0/winrt\" -isystem\"C:/Program Files (x86)/Windows Kits/10/Include/10.0.22000.0/cppwinrt\"", "file": "E:/OneDrive/Knowledge_System/Windows/Driver/FileFilter/nullFilter/nullFilter.c" } ]

`

it not contain: C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\km

mariru27 commented 4 months ago

Hi,

Thank you for reporting this issue, can you activate verbose mode and give us the resulted log when you export database? image

Best regards, Marina

HXXZA commented 4 months ago

log.txt Sure , but this is a Chinese development environment, so some debug info is not english

HXXZA commented 4 months ago

@mariru27 Hi, Is this a bug or an unimplemented feature?

mariru27 commented 4 months ago

Hi,

Sorry for the delayed answer, we do not support this currently, but you can add the path manually image

Kind regards, Marina

HXXZA commented 4 months ago

@mariru27 I find a way to solve it : image

buf if a sln project have many sub project, it's look like a "global setting"

Is possibly apply it to specific project?

Such as image

I want apply it to project DeviceMonitor, NetMonitor and SystemMonitor only.

By the way , according to log, seems the program crashed.