Support clang tidy (#2564)
* add basic clang-tidy support in the same way as in the GUI * fix native path * fix some code styles * fix cppcheck findings * update again * only do clang-tidy if set in the project file * fix handling if folders have spaces * tiny fixes * some tiny updates * make clang-tidy error message parser more robust Co-authored-by: fuzzelhjb <FaniXagy8-Hopk>
This commit is contained in:
parent
ab5835d359
commit
9f3deb30b1
|
@ -471,6 +471,8 @@ unsigned int __stdcall ThreadExecutor::threadProc(void *args)
|
||||||
++itFileSettings;
|
++itFileSettings;
|
||||||
LeaveCriticalSection(&threadExecutor->mFileSync);
|
LeaveCriticalSection(&threadExecutor->mFileSync);
|
||||||
result += fileChecker.check(fs);
|
result += fileChecker.check(fs);
|
||||||
|
if (threadExecutor->mSettings.clangTidy)
|
||||||
|
fileChecker.analyseClangTidy(fs);
|
||||||
}
|
}
|
||||||
|
|
||||||
EnterCriticalSection(&threadExecutor->mFileSync);
|
EnterCriticalSection(&threadExecutor->mFileSync);
|
||||||
|
|
Loading…
Reference in New Issue