mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +00:00
indexer: delete redundant consumeFile
This commit is contained in:
parent
6717986541
commit
0f0e679edb
@ -675,11 +675,7 @@ public:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
IndexDataConsumer(IndexParam ¶m) : param(param) {}
|
IndexDataConsumer(IndexParam ¶m) : param(param) {}
|
||||||
void initialize(ASTContext &ctx) override {
|
void initialize(ASTContext &ctx) override { this->ctx = param.ctx = &ctx; }
|
||||||
this->ctx = param.ctx = &ctx;
|
|
||||||
SourceManager &sm = ctx.getSourceManager();
|
|
||||||
(void)param.consumeFile(*sm.getFileEntryForID(sm.getMainFileID()));
|
|
||||||
}
|
|
||||||
#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
|
||||||
|
Loading…
Reference in New Issue
Block a user