MCPcopy Create free account
hub / github.com/MaskRay/ccls / shouldSkipFunctionBody

Method shouldSkipFunctionBody

src/indexer.cc:1160–1164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1158 SkipProcessed(IndexParam &param) : param(param) {}
1159 void Initialize(ASTContext &ctx) override { this->ctx = &ctx; }
1160 bool shouldSkipFunctionBody(Decl *d) override {
1161 const SourceManager &sm = ctx->getSourceManager();
1162 FileID fid = sm.getFileID(sm.getExpansionLoc(d->getLocation()));
1163 return !(g_config->index.multiVersion && param.useMultiVersion(fid)) && !param.consumeFile(fid);
1164 }
1165 };
1166
1167 std::shared_ptr<Preprocessor> pp = ci.getPreprocessorPtr();

Callers

nothing calls this directly

Calls 2

useMultiVersionMethod · 0.80
consumeFileMethod · 0.80

Tested by

no test coverage detected