forked from qt-creator/qt-creator
Clang: Take precompiled headers into account when parsing source files
Task-number: QTCREATORBUG-15590 Change-Id: Icbfce4ffd6e9f9802641d35d898fa1dc1c4c18ee Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
committed by
Nikolai Kosjar
parent
569f4499c0
commit
36d4d01cd3
@@ -30,6 +30,8 @@
|
||||
#include <refactoringserverinterface.h>
|
||||
#include <requestsourcelocationforrenamingmessage.h>
|
||||
|
||||
#include <cpptools/cpptoolsreuse.h>
|
||||
|
||||
#include <QTextCursor>
|
||||
#include <QTextDocument>
|
||||
|
||||
@@ -89,7 +91,8 @@ void RefactoringEngine::startLocalRenaming(const QTextCursor &textCursor,
|
||||
client.setLocalRenamingCallback(std::move(renameSymbolsCallback));
|
||||
|
||||
auto commandLine = RefactoringCompilerOptionsBuilder::build(projectPart,
|
||||
fileKind(projectPart, filePath.toString()));
|
||||
fileKind(projectPart, filePath.toString()),
|
||||
CppTools::getPchUsage());
|
||||
|
||||
commandLine.push_back(filePath.toString());
|
||||
qDebug() << commandLine.join(" ");
|
||||
|
||||
Reference in New Issue
Block a user