summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/cpptools/cppmodelmanager.cpp18
-rw-r--r--src/plugins/cpptools/cppmodelmanager.h18
2 files changed, 21 insertions, 15 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp
index 7437f0eb9b..75f15ee6a7 100644
--- a/src/plugins/cpptools/cppmodelmanager.cpp
+++ b/src/plugins/cpptools/cppmodelmanager.cpp
@@ -920,6 +920,24 @@ CppIndexingSupport *CppModelManager::indexingSupport()
return m_indexingSupporter ? m_indexingSupporter : m_internalIndexingSupport;
}
+QStringList CppModelManager::projectFiles()
+{
+ ensureUpdated();
+ return m_projectFiles;
+}
+
+ProjectPart::HeaderPaths CppModelManager::headerPaths()
+{
+ ensureUpdated();
+ return m_headerPaths;
+}
+
+QByteArray CppModelManager::definedMacros()
+{
+ ensureUpdated();
+ return m_definedMacros;
+}
+
void CppModelManager::enableGarbageCollector(bool enable)
{
m_delayedGcTimer->stop();
diff --git a/src/plugins/cpptools/cppmodelmanager.h b/src/plugins/cpptools/cppmodelmanager.h
index 7936019a14..89caba186e 100644
--- a/src/plugins/cpptools/cppmodelmanager.h
+++ b/src/plugins/cpptools/cppmodelmanager.h
@@ -122,17 +122,9 @@ public:
virtual void setIndexingSupport(CppIndexingSupport *indexingSupport);
virtual CppIndexingSupport *indexingSupport();
- QStringList projectFiles()
- {
- ensureUpdated();
- return m_projectFiles;
- }
+ QStringList projectFiles();
- ProjectPart::HeaderPaths headerPaths()
- {
- ensureUpdated();
- return m_headerPaths;
- }
+ ProjectPart::HeaderPaths headerPaths();
// Use this *only* for auto tests
void setHeaderPaths(const ProjectPart::HeaderPaths &headerPaths)
@@ -140,11 +132,7 @@ public:
m_headerPaths = headerPaths;
}
- QByteArray definedMacros()
- {
- ensureUpdated();
- return m_definedMacros;
- }
+ QByteArray definedMacros();
void enableGarbageCollector(bool enable);