From d81580b7a3a2c8ab7cca1552717a3e1151a470eb Mon Sep 17 00:00:00 2001 From: Ivan Donchevskii Date: Fri, 19 Jan 2018 09:18:57 +0100 Subject: Clang: extra clangbackend job to collect full token info Limit document annotations job to only highlighting data collection and move more expensive calls into separate job that runs after it. Change-Id: Ie792a3f741ac45c81033dd5b3a20ed061604f927 Reviewed-by: Nikolai Kosjar --- src/plugins/clangcodemodel/clangfollowsymbol.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/clangcodemodel/clangfollowsymbol.cpp') diff --git a/src/plugins/clangcodemodel/clangfollowsymbol.cpp b/src/plugins/clangcodemodel/clangfollowsymbol.cpp index db8c4a1faf..f9ab5bb211 100644 --- a/src/plugins/clangcodemodel/clangfollowsymbol.cpp +++ b/src/plugins/clangcodemodel/clangfollowsymbol.cpp @@ -83,12 +83,12 @@ static Utils::Link linkAtCursor(QTextCursor cursor, const QString &filePath, uin Link token(filePath, mark.line(), mark.column()); token.linkTextStart = getMarkPos(cursor, mark); token.linkTextEnd = token.linkTextStart + mark.length(); - if (mark.isIncludeDirectivePath()) { + if (mark.extraInfo().includeDirectivePath) { if (tokenStr != "include" && tokenStr != "#" && tokenStr != "<") return token; return Link(); } - if (mark.isIdentifier() || tokenStr == "operator") + if (mark.extraInfo().identifier || tokenStr == "operator") return token; return Link(); } -- cgit v1.2.1