forked from OSchip/llvm-project
[clangd] NFC: Update FIXME comment regarding lack of c/dtor support
Both `SymbolKind` and `indexSymbolKindToSymbolKind` support constructors and separate them into a different category from regular methods. Reviewed By: kadircet Differential Revision: https://reviews.llvm.org/D89935
This commit is contained in:
parent
d0ee1d8efe
commit
1704704e76
|
@ -179,8 +179,8 @@ llvm::Optional<DocumentSymbol> declToSym(ASTContext &Ctx, const NamedDecl &ND) {
|
|||
return llvm::None;
|
||||
|
||||
index::SymbolInfo SymInfo = index::getSymbolInfo(&ND);
|
||||
// FIXME: this is not classifying constructors, destructors and operators
|
||||
// correctly (they're all "methods").
|
||||
// FIXME: This is not classifying constructors, destructors and operators
|
||||
// correctly.
|
||||
SymbolKind SK = indexSymbolKindToSymbolKind(SymInfo.Kind);
|
||||
|
||||
DocumentSymbol SI;
|
||||
|
|
|
@ -1284,8 +1284,8 @@ declToTypeHierarchyItem(ASTContext &Ctx, const NamedDecl &ND) {
|
|||
SM, Lexer::getLocForEndOfToken(NameLoc, 0, SM, Ctx.getLangOpts()));
|
||||
|
||||
index::SymbolInfo SymInfo = index::getSymbolInfo(&ND);
|
||||
// FIXME: this is not classifying constructors, destructors and operators
|
||||
// correctly (they're all "methods").
|
||||
// FIXME: This is not classifying constructors, destructors and operators
|
||||
// correctly.
|
||||
SymbolKind SK = indexSymbolKindToSymbolKind(SymInfo.Kind);
|
||||
|
||||
TypeHierarchyItem THI;
|
||||
|
|
Loading…
Reference in New Issue