You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
Built with both ENABLE_CLANG_TIDY and DENABLE_PCH=ON enabled, clang-tidy threw errors about PCH format unrecognized
error: file '.../build/test/CMakeFiles/tests.dir/cmake_pch.hxx.gch' is not a valid precompiled PCH file [clang-diagnostic-error]
error: input is not a PCH file: '.../build/test/CMakeFiles/tests.dir/cmake_pch.hxx.gch' [clang-diagnostic-error]
2 errors generated.
Error while processing .../test/tests.cpp.
Found compiler error(s).
I saw your issue while I was also having this problem in my project and was scouring Google for help. If anyone else has this same issue with clang-tidy + pch + gcc, I found a workaround by generating the clang .pch as a custom command before making the real build with the gcc .gch.
Added very basic support for clang-tidy. Currently it does not really
work (at least on windows) because the meson precompiled header file
is not recognized as such in clang-tidy. See
cpp-best-practices/gui_starter_template#25
It also apperantly ignores the regex, since vendor projects are checked...
Built with both
ENABLE_CLANG_TIDY
andDENABLE_PCH=ON
enabled, clang-tidy threw errors about PCH format unrecognizedP.S. I tried to limit clang-tidy to specified targets, but PCH file implicitly included in all cpp files, so this way a dead end
The text was updated successfully, but these errors were encountered: