forked from qt-creator/qt-creator
Clang: introduce more data in TokenInfo
Data added: - return type spelling for functions - parent spelling - access specifier for class fields and methods - storage class New highlighting types are added, therefore types are now categorized by class, struct, etc. Change-Id: I1739b94a6f777045fde655060d8b9a12b6e0889b Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -670,7 +670,9 @@ void ClangCodeModelServer::expectDocumentAnnotationsChangedForFileBWithSpecificH
|
||||
types.mixinHighlightingTypes.push_back(ClangBackEnd::HighlightingType::Declaration);
|
||||
types.mixinHighlightingTypes.push_back(ClangBackEnd::HighlightingType::FunctionDefinition);
|
||||
const TokenInfoContainer tokenInfo(1, 6, 8, types, Utf8String("function", 8),
|
||||
Utf8String("void (int)", 10), true, false, true, true);
|
||||
Utf8String("(int)", 5), Utf8String("void", 4),
|
||||
Utf8String(), AccessSpecifier::Invalid,
|
||||
StorageClass::None, true, false, true, true);
|
||||
|
||||
EXPECT_CALL(mockClangCodeModelClient,
|
||||
documentAnnotationsChanged(
|
||||
|
||||
Reference in New Issue
Block a user