forked from qt-creator/qt-creator
CppTools: Rename CppPreprocessor to CppSourceProcessor
...since it does quite a bit more than only preprocessing, as the name suggests. We use that class to process source files in general. The output is not a preprocessed source, but a set of CPlusPlus::Documents with symbols. Change-Id: I787d0f22f9f042ddf0c99e8c2f0bdb9aa7001735 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "cpppreprocessor.h"
|
||||
#include "cppsourceprocessor.h"
|
||||
#include "cpptoolseditorsupport.h"
|
||||
#include "cpptoolsplugin.h"
|
||||
#include "cpptoolstestcase.h"
|
||||
@@ -345,7 +345,7 @@ void CppToolsPlugin::test_modelmanager_refresh_also_includes_of_project_files()
|
||||
|
||||
/// QTCREATORBUG-9205
|
||||
/// Check: When reparsing the same files again, no errors occur
|
||||
/// (The CppPreprocessor's already seen files are properly cleared!).
|
||||
/// (The CppSourceProcessor's already seen files are properly cleared!).
|
||||
void CppToolsPlugin::test_modelmanager_refresh_several_times()
|
||||
{
|
||||
ModelManagerTestHelper helper;
|
||||
@@ -646,7 +646,7 @@ void CppToolsPlugin::test_modelmanager_snapshot_after_two_projects()
|
||||
|
||||
/// Check: (1) For a project with a *.ui file an AbstractEditorSupport object
|
||||
/// is added for the ui_* file.
|
||||
/// Check: (2) The CppPreprocessor can successfully resolve the ui_* file
|
||||
/// Check: (2) The CppSourceProcessor can successfully resolve the ui_* file
|
||||
/// though it might not be actually generated in the build dir.
|
||||
void CppToolsPlugin::test_modelmanager_extraeditorsupport_uiFiles()
|
||||
{
|
||||
@@ -678,8 +678,8 @@ void CppToolsPlugin::test_modelmanager_extraeditorsupport_uiFiles()
|
||||
QCOMPARE(fileNamesInWorkinCopy.at(0), mm->configurationFileName());
|
||||
QCOMPARE(fileNamesInWorkinCopy.at(1), expectedUiHeaderFileName);
|
||||
|
||||
// Check CppPreprocessor / includes.
|
||||
// The CppPreprocessor is expected to find the ui_* file in the working copy.
|
||||
// Check CppSourceProcessor / includes.
|
||||
// The CppSourceProcessor is expected to find the ui_* file in the working copy.
|
||||
const QString fileIncludingTheUiFile = testDataDirectory.file(_("mainwindow.cpp"));
|
||||
while (!mm->snapshot().document(fileIncludingTheUiFile))
|
||||
QCoreApplication::processEvents();
|
||||
|
||||
Reference in New Issue
Block a user