Skip to content
Snippets Groups Projects
Commit ee200a7b authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

C++: fix follow-symbol-under-cursor for #import <xyz>


Task-number: QTCREATORBUG-12254
Change-Id: I4179c78f3ce6bf2236f8375da1765122a974118c
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent a1e4efe2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment