Add semantic highlighting test file

Don't mark destructors as type references.
This commit is contained in:
Fangrui Song 2018-02-18 13:57:16 -08:00
parent bfd4edf177
commit 9217393a78

View File

@ -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));