forked from qt-creator/qt-creator
Clang: Use DeclarationName for indexing
Change-Id: Iefb2cb8a21c0f76d935bca56a4e9e02d6626e936 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -42,7 +42,9 @@ bool hasSymbolRole(clang::index::SymbolRole role, clang::index::SymbolRoleSet ro
|
|||||||
|
|
||||||
Utils::SmallString symbolName(const clang::NamedDecl *declaration)
|
Utils::SmallString symbolName(const clang::NamedDecl *declaration)
|
||||||
{
|
{
|
||||||
return declaration->getName();
|
clang::DeclarationName declarationName(declaration->getIdentifier());
|
||||||
|
|
||||||
|
return declarationName.getAsString();
|
||||||
}
|
}
|
||||||
|
|
||||||
SymbolType symbolType(clang::index::SymbolRoleSet roles)
|
SymbolType symbolType(clang::index::SymbolRoleSet roles)
|
||||||
|
Reference in New Issue
Block a user