CompilationDatabase: Fix few bugs and plugin tests

- do not convert the DOS path if it does not exist
 - pass the proper flags to addDriverModeFlagIfNeeded
 - reset the kit toolchain before picking the matching one
 - do not show the popup when running plugin tests
 - clang++ contains 'g++' but it's not a gcc compiler

Change-Id: Ia5018a2131bb123202b87e34e0ac3a79f0feb45d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Ivan Donchevskii
2019-04-11 12:42:13 +02:00
parent 8ba56577c6
commit b991e0ca95
3 changed files with 37 additions and 15 deletions

View File

@@ -58,6 +58,7 @@ private:
void reparseProject();
void buildTreeAndProjectParts(const Utils::FileName &projectFile);
Utils::FileName rootPathFromSettings() const;
QFutureWatcher<void> m_parserWatcher;
std::unique_ptr<CppTools::CppProjectUpdater> m_cppCodeModelUpdater;