mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-19 03:55:49 +00:00
Add semantic highlighting test file
Don't mark destructors as type references.
This commit is contained in:
parent
bfd4edf177
commit
9217393a78
@ -1699,8 +1699,7 @@ void OnIndexDeclaration(CXClientData client_data, const CXIdxDeclInfo* decl) {
|
||||
func->def.declaring_type = declaring_type_id;
|
||||
|
||||
// Mark a type reference at the ctor/dtor location.
|
||||
if (decl->entityInfo->kind == CXIdxEntity_CXXConstructor
|
||||
|| decl->entityInfo->kind == CXIdxEntity_CXXDestructor)
|
||||
if (decl->entityInfo->kind == CXIdxEntity_CXXConstructor)
|
||||
UniqueAddUse(db, declaring_type_def->uses, spell,
|
||||
fromContainer(decl->lexicalContainer));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user