mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-07 17:32:14 +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;
|
func->def.declaring_type = declaring_type_id;
|
||||||
|
|
||||||
// Mark a type reference at the ctor/dtor location.
|
// Mark a type reference at the ctor/dtor location.
|
||||||
if (decl->entityInfo->kind == CXIdxEntity_CXXConstructor
|
if (decl->entityInfo->kind == CXIdxEntity_CXXConstructor)
|
||||||
|| decl->entityInfo->kind == CXIdxEntity_CXXDestructor)
|
|
||||||
UniqueAddUse(db, declaring_type_def->uses, spell,
|
UniqueAddUse(db, declaring_type_def->uses, spell,
|
||||||
fromContainer(decl->lexicalContainer));
|
fromContainer(decl->lexicalContainer));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user