forked from qt-creator/qt-creator
C++: Only parse with appropriate defines for open editors.
If two files from different (sub-)projects include the same header file, and the defined macros differ for both files, the header file will be parsed with only the appropriate macros for the including file. Task-number: QTCREATORBUG-9802 Task-number: QTCREATORBUG-1249 Change-Id: I560490afa287b3bb1e863bce1bb4f57af36ad56e Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -44,6 +44,7 @@ class Project;
|
||||
}
|
||||
|
||||
namespace TextEditor {
|
||||
class BaseTextEditor;
|
||||
class IAssistInterface;
|
||||
}
|
||||
|
||||
@@ -59,8 +60,8 @@ public:
|
||||
virtual bool isActivationCharSequence(const QString &sequence) const;
|
||||
|
||||
virtual TextEditor::IAssistInterface *createAssistInterface(
|
||||
ProjectExplorer::Project *project, const QString &filePath, QTextDocument *document,
|
||||
int position, TextEditor::AssistReason reason) const = 0;
|
||||
ProjectExplorer::Project *project, TextEditor::BaseTextEditor *editor,
|
||||
QTextDocument *document, int position, TextEditor::AssistReason reason) const = 0;
|
||||
|
||||
static int activationSequenceChar(const QChar &ch, const QChar &ch2,
|
||||
const QChar &ch3, unsigned *kind,
|
||||
|
||||
Reference in New Issue
Block a user