mirror of
https://github.com/MaskRay/ccls.git
synced 2025-06-07 08:44:55 +00:00
clang format indexer.cc
This commit is contained in:
parent
7f438dc999
commit
706b6a4d7b
@ -1 +1,2 @@
|
|||||||
BasedOnStyle: LLVM
|
BasedOnStyle: LLVM
|
||||||
|
IndentPPDirectives: AfterHash
|
||||||
|
@ -687,7 +687,7 @@ public:
|
|||||||
IndexDataConsumer(IndexParam ¶m) : param(param) {}
|
IndexDataConsumer(IndexParam ¶m) : param(param) {}
|
||||||
void initialize(ASTContext &ctx) override { this->ctx = param.ctx = &ctx; }
|
void initialize(ASTContext &ctx) override { this->ctx = param.ctx = &ctx; }
|
||||||
#if LLVM_VERSION_MAJOR < 10 // llvmorg-10-init-12036-g3b9715cb219
|
#if LLVM_VERSION_MAJOR < 10 // llvmorg-10-init-12036-g3b9715cb219
|
||||||
# define handleDeclOccurrence handleDeclOccurence
|
# define handleDeclOccurrence handleDeclOccurence
|
||||||
#endif
|
#endif
|
||||||
bool handleDeclOccurrence(const Decl *d, index::SymbolRoleSet roles,
|
bool handleDeclOccurrence(const Decl *d, index::SymbolRoleSet roles,
|
||||||
ArrayRef<index::SymbolRelation> relations,
|
ArrayRef<index::SymbolRelation> relations,
|
||||||
@ -888,10 +888,10 @@ public:
|
|||||||
Usr usr1 = getUsr(d1, &info1);
|
Usr usr1 = getUsr(d1, &info1);
|
||||||
IndexType &type1 = db->toType(usr1);
|
IndexType &type1 = db->toType(usr1);
|
||||||
SourceLocation sl1 = d1->getLocation();
|
SourceLocation sl1 = d1->getLocation();
|
||||||
type1.def.spell = {
|
type1.def.spell = {Use{{fromTokenRange(sm, lang, {sl1, sl1}),
|
||||||
Use{{fromTokenRange(sm, lang, {sl1, sl1}), Role::Definition},
|
Role::Definition},
|
||||||
lid},
|
lid},
|
||||||
fromTokenRange(sm, lang, sr1)};
|
fromTokenRange(sm, lang, sr1)};
|
||||||
type1.def.detailed_name = intern(info1->short_name);
|
type1.def.detailed_name = intern(info1->short_name);
|
||||||
type1.def.short_name_size = int16_t(info1->short_name.size());
|
type1.def.short_name_size = int16_t(info1->short_name.size());
|
||||||
type1.def.kind = SymbolKind::TypeParameter;
|
type1.def.kind = SymbolKind::TypeParameter;
|
||||||
|
Loading…
Reference in New Issue
Block a user