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:
@@ -37,7 +37,7 @@
|
||||
#include "cpphighlightingsupport.h"
|
||||
#include "cppindexingsupport.h"
|
||||
#include "cppmodelmanagersupportinternal.h"
|
||||
#include "cpppreprocessor.h"
|
||||
#include "cppsourceprocessor.h"
|
||||
#include "cpptoolsconstants.h"
|
||||
#include "cpptoolseditorsupport.h"
|
||||
#include "cpptoolsplugin.h"
|
||||
@@ -310,7 +310,7 @@ QStringList CppModelManager::internalIncludePaths() const
|
||||
const ProjectInfo pinfo = it.value();
|
||||
foreach (const ProjectPart::Ptr &part, pinfo.projectParts())
|
||||
foreach (const QString &path, part->includePaths)
|
||||
includePaths.append(CppPreprocessor::cleanPath(path));
|
||||
includePaths.append(CppSourceProcessor::cleanPath(path));
|
||||
}
|
||||
includePaths.removeDuplicates();
|
||||
return includePaths;
|
||||
@@ -325,7 +325,7 @@ QStringList CppModelManager::internalFrameworkPaths() const
|
||||
const ProjectInfo pinfo = it.value();
|
||||
foreach (const ProjectPart::Ptr &part, pinfo.projectParts())
|
||||
foreach (const QString &path, part->frameworkPaths)
|
||||
frameworkPaths.append(CppPreprocessor::cleanPath(path));
|
||||
frameworkPaths.append(CppSourceProcessor::cleanPath(path));
|
||||
}
|
||||
frameworkPaths.removeDuplicates();
|
||||
return frameworkPaths;
|
||||
|
||||
Reference in New Issue
Block a user