forked from qt-creator/qt-creator
CppTools: Use namespace CppTools consistently
There were quite a few classes using CPlusPlus namespace in the CppTools plugin. Rename them and do some other small namespace related coding style fixups. Change-Id: I093fc1f3fc394fd9923e3f18d5f66522e288f21d Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -84,11 +84,11 @@ TestCase::TestCase(const QByteArray &input)
|
||||
Utils::FileSaver srcSaver(fileName);
|
||||
srcSaver.write(originalText);
|
||||
srcSaver.finalize();
|
||||
CPlusPlus::CppModelManagerInterface::instance()->updateSourceFiles(QStringList()<<fileName);
|
||||
CppTools::CppModelManagerInterface::instance()->updateSourceFiles(QStringList()<<fileName);
|
||||
|
||||
// Wait for the parser in the future to give us the document
|
||||
while (true) {
|
||||
Snapshot s = CPlusPlus::CppModelManagerInterface::instance()->snapshot();
|
||||
Snapshot s = CppTools::CppModelManagerInterface::instance()->snapshot();
|
||||
if (s.contains(fileName))
|
||||
break;
|
||||
QCoreApplication::processEvents();
|
||||
@@ -120,7 +120,7 @@ TestCase::~TestCase()
|
||||
QCoreApplication::processEvents(); // process any pending events
|
||||
|
||||
// Remove the test file from the code-model
|
||||
CppModelManagerInterface *mmi = CPlusPlus::CppModelManagerInterface::instance();
|
||||
CppTools::CppModelManagerInterface *mmi = CppTools::CppModelManagerInterface::instance();
|
||||
mmi->GC();
|
||||
QCOMPARE(mmi->snapshot().size(), 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user