@@ -687,7 +687,7 @@ class IndexDataConsumer : public index::IndexDataConsumer {
687
687
IndexDataConsumer (IndexParam ¶m) : param(param) {}
688
688
void initialize (ASTContext &ctx) override { this ->ctx = param.ctx = &ctx; }
689
689
#if LLVM_VERSION_MAJOR < 10 // llvmorg-10-init-12036-g3b9715cb219
690
- # define handleDeclOccurrence handleDeclOccurence
690
+ #define handleDeclOccurrence handleDeclOccurence
691
691
#endif
692
692
bool handleDeclOccurrence (const Decl *d, index::SymbolRoleSet roles,
693
693
ArrayRef<index::SymbolRelation> relations,
@@ -885,10 +885,10 @@ class IndexDataConsumer : public index::IndexDataConsumer {
885
885
Usr usr1 = getUsr (d1, &info1);
886
886
IndexType &type1 = db->toType (usr1);
887
887
SourceLocation sl1 = d1->getLocation ();
888
- type1.def .spell = {
889
- Use{{ fromTokenRange (sm, lang, {sl1, sl1}), Role::Definition},
890
- lid},
891
- fromTokenRange (sm, lang, sr1)};
888
+ type1.def .spell = {Use{{ fromTokenRange (sm, lang, {sl1, sl1}),
889
+ Role::Definition},
890
+ lid},
891
+ fromTokenRange (sm, lang, sr1)};
892
892
type1.def .detailed_name = intern (info1->short_name );
893
893
type1.def .short_name_size = int16_t (info1->short_name .size ());
894
894
type1.def .kind = SymbolKind::TypeParameter;
0 commit comments