@@ -679,7 +679,7 @@ class IndexDataConsumer : public index::IndexDataConsumer {
679
679
IndexDataConsumer (IndexParam ¶m) : param(param) {}
680
680
void initialize (ASTContext &ctx) override { this ->ctx = param.ctx = &ctx; }
681
681
#if LLVM_VERSION_MAJOR < 10 // llvmorg-10-init-12036-g3b9715cb219
682
- # define handleDeclOccurrence handleDeclOccurence
682
+ #define handleDeclOccurrence handleDeclOccurence
683
683
#endif
684
684
bool handleDeclOccurrence (const Decl *d, index::SymbolRoleSet roles,
685
685
ArrayRef<index::SymbolRelation> relations,
@@ -877,10 +877,10 @@ class IndexDataConsumer : public index::IndexDataConsumer {
877
877
Usr usr1 = getUsr (d1, &info1);
878
878
IndexType &type1 = db->toType (usr1);
879
879
SourceLocation sl1 = d1->getLocation ();
880
- type1.def .spell = {
881
- Use{{ fromTokenRange (sm, lang, {sl1, sl1}), Role::Definition},
882
- lid},
883
- fromTokenRange (sm, lang, sr1)};
880
+ type1.def .spell = {Use{{ fromTokenRange (sm, lang, {sl1, sl1}),
881
+ Role::Definition},
882
+ lid},
883
+ fromTokenRange (sm, lang, sr1)};
884
884
type1.def .detailed_name = intern (info1->short_name );
885
885
type1.def .short_name_size = int16_t (info1->short_name .size ());
886
886
type1.def .kind = SymbolKind::TypeParameter;
0 commit comments