forked from qt-creator/qt-creator
CompilationDatabaseProjectManager: Fix autotest
Amends 45d42d4518.
Change-Id: I7404bbc782278d09b419906a0d74f29d66c3867b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
#include <projectexplorer/gcctoolchain.h>
|
#include <projectexplorer/gcctoolchain.h>
|
||||||
#include <projectexplorer/headerpath.h>
|
#include <projectexplorer/headerpath.h>
|
||||||
#include <projectexplorer/kitinformation.h>
|
#include <projectexplorer/kitinformation.h>
|
||||||
|
#include <projectexplorer/kitmanager.h>
|
||||||
#include <projectexplorer/namedwidget.h>
|
#include <projectexplorer/namedwidget.h>
|
||||||
#include <projectexplorer/projectexplorerconstants.h>
|
#include <projectexplorer/projectexplorerconstants.h>
|
||||||
#include <projectexplorer/projectnodes.h>
|
#include <projectexplorer/projectnodes.h>
|
||||||
@@ -452,6 +453,12 @@ Utils::FilePath CompilationDatabaseProject::rootPathFromSettings() const
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CompilationDatabaseProject::configureAsExampleProject()
|
||||||
|
{
|
||||||
|
if (KitManager::defaultKit())
|
||||||
|
addTargetForKit(KitManager::defaultKit());
|
||||||
|
}
|
||||||
|
|
||||||
void CompilationDatabaseBuildSystem::reparseProject()
|
void CompilationDatabaseBuildSystem::reparseProject()
|
||||||
{
|
{
|
||||||
if (m_parser) {
|
if (m_parser) {
|
||||||
|
|||||||
@@ -56,6 +56,9 @@ class CompilationDatabaseProject : public ProjectExplorer::Project
|
|||||||
public:
|
public:
|
||||||
explicit CompilationDatabaseProject(const Utils::FilePath &filename);
|
explicit CompilationDatabaseProject(const Utils::FilePath &filename);
|
||||||
Utils::FilePath rootPathFromSettings() const;
|
Utils::FilePath rootPathFromSettings() const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
void configureAsExampleProject() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CompilationDatabaseBuildSystem : public ProjectExplorer::BuildSystem
|
class CompilationDatabaseBuildSystem : public ProjectExplorer::BuildSystem
|
||||||
|
|||||||
Reference in New Issue
Block a user