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

Method anyDef

src/query.hh:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45template <typename Q, typename QDef> struct QueryEntity {
46 using Def = QDef;
47 Def *anyDef() {
48 Def *ret = nullptr;
49 for (auto &i : static_cast<Q *>(this)->def) {
50 ret = &i;
51 if (i.spell)
52 break;
53 }
54 return ret;
55 }
56 const Def *anyDef() const { return const_cast<QueryEntity *>(this)->anyDef(); }
57};
58

Callers 15

getSymbolNameMethod · 0.80
getUsesForAllBasesFunction · 0.80
computeSemanticTokensFunction · 0.80
doFieldFunction · 0.80
expandFunction · 0.80
buildInitialFunction · 0.80
ccls_memberMethod · 0.80
textDocument_codeLensMethod · 0.80
ccls_varsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected