mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +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