forked from qt-creator/qt-creator
Clang: Add cursor range to extra token information
Change-Id: Id410c94c79d61b8f4d5b53f937827356272b9f65 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -672,20 +672,10 @@ void ClangCodeModelServer::expectDocumentAnnotationsChangedForFileBWithSpecificH
|
||||
types.mixinHighlightingTypes.push_back(ClangBackEnd::HighlightingType::Declaration);
|
||||
types.mixinHighlightingTypes.push_back(ClangBackEnd::HighlightingType::FunctionDefinition);
|
||||
const TokenInfoContainer tokenInfo(1, 6, 8, types);
|
||||
const TokenInfoContainer fullTokenInfo(1, 6, 8, types,
|
||||
ClangBackEnd::ExtraInfo {Utf8String("function", 8),
|
||||
Utf8String("(int)", 5),
|
||||
Utf8String("void", 4),
|
||||
Utf8String(),
|
||||
AccessSpecifier::Invalid,
|
||||
StorageClass::None,
|
||||
true, false, true, true,
|
||||
false, false});
|
||||
|
||||
EXPECT_CALL(mockClangCodeModelClient,
|
||||
documentAnnotationsChanged(
|
||||
Property(&DocumentAnnotationsChangedMessage::tokenInfos,
|
||||
Contains(AnyOf(tokenInfo, fullTokenInfo)))));
|
||||
Contains(tokenInfo))));
|
||||
}
|
||||
|
||||
void ClangCodeModelServer::updateUnsavedContent(const Utf8String &filePath,
|
||||
|
||||
Reference in New Issue
Block a user