forked from qt-creator/qt-creator
C++: fix include/framework path handling.
Instead of having two lists of paths, now only one list is used where both include paths and framework paths can be mixed. This reflects the way the compiler is invoked, and retains the (correct) search order. Task-number: QTCREATORBUG-11599 Change-Id: I373953e3e305df5b7a0d10920e12d146584adf9f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -74,10 +74,13 @@ class QuickFixTestCase : public TestCase
|
||||
public:
|
||||
QuickFixTestCase(const QList<QuickFixTestDocument::Ptr> &theTestFiles,
|
||||
CppQuickFixFactory *factory,
|
||||
const QStringList &includePaths = QStringList(),
|
||||
const CppTools::ProjectPart::HeaderPaths &includePaths =
|
||||
CppTools::ProjectPart::HeaderPaths(),
|
||||
int resultIndex = 0);
|
||||
~QuickFixTestCase();
|
||||
|
||||
static void run(const QList<QuickFixTestDocument::Ptr> &theTestFiles,
|
||||
CppQuickFixFactory *factory, const QString &incPath);
|
||||
private:
|
||||
QSharedPointer<TextEditor::QuickFixOperation> getFix(CppQuickFixFactory *factory,
|
||||
CPPEditorWidget *editorWidget,
|
||||
@@ -89,8 +92,8 @@ private:
|
||||
CppTools::CppCodeStylePreferences *m_cppCodeStylePreferences;
|
||||
QByteArray m_cppCodeStylePreferencesOriginalDelegateId;
|
||||
|
||||
QStringList m_includePathsToRestore;
|
||||
bool m_restoreIncludePaths;
|
||||
CppTools::ProjectPart::HeaderPaths m_headerPathsToRestore;
|
||||
bool m_restoreHeaderPaths;
|
||||
};
|
||||
|
||||
QList<QuickFixTestDocument::Ptr> singleDocument(const QByteArray &original,
|
||||
|
||||
Reference in New Issue
Block a user