forked from qt-creator/qt-creator
C++: fix follow-symbol-under-cursor for #import <xyz>
Task-number: QTCREATORBUG-12254 Change-Id: I4179c78f3ce6bf2236f8375da1765122a974118c Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -133,6 +133,8 @@ Token SimpleLexer::tokenAt(const QString &text,
|
||||
features.qtMocRunEnabled = qtMocRunEnabled;
|
||||
features.qtEnabled = qtMocRunEnabled;
|
||||
features.qtKeywordsEnabled = qtMocRunEnabled;
|
||||
features.objCEnabled = qtMocRunEnabled;
|
||||
features.cxx11Enabled = qtMocRunEnabled;
|
||||
SimpleLexer tokenize;
|
||||
tokenize.setLanguageFeatures(features);
|
||||
const QList<Token> tokens = tokenize(text, state);
|
||||
|
||||
@@ -467,6 +467,8 @@ BaseTextEditorWidget::Link FollowSymbolUnderCursor::findLink(const QTextCursor &
|
||||
features.qtEnabled = true;
|
||||
features.qtKeywordsEnabled = true;
|
||||
features.qtMocRunEnabled = true;
|
||||
features.objCEnabled = true;
|
||||
features.cxx11Enabled = true;
|
||||
|
||||
SimpleLexer tokenize;
|
||||
tokenize.setLanguageFeatures(features);
|
||||
|
||||
Reference in New Issue
Block a user