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:
fuzzelhjb 2020-03-15 11:09:35 +01:00 committed by GitHub
parent ab5835d359
commit 9f3deb30b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -471,6 +471,8 @@ unsigned int __stdcall ThreadExecutor::threadProc(void *args)
++itFileSettings;
LeaveCriticalSection(&threadExecutor->mFileSync);
result += fileChecker.check(fs);
if (threadExecutor->mSettings.clangTidy)
fileChecker.analyseClangTidy(fs);
}
EnterCriticalSection(&threadExecutor->mFileSync);