MCPcopy Create free account
hub / github.com/KDAB/codebrowser / VisitVarDecl

Method VisitVarDecl

generator/browserastvisitor.h:134–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 return true;
133 }
134 bool VisitVarDecl(clang::VarDecl *d) {
135 if(!shouldProcess(d)) return false;
136 annotator.registerReference(d, d->getLocation(), Annotator::Decl,
137 d->isThisDeclarationADefinition() ? Annotator::Definition : Annotator::Declaration,
138 annotator.getTypeRef(d->getType()));
139 return true;
140 }
141 bool VisitFieldDecl(clang::FieldDecl *d) {
142 annotator.registerReference(d, d->getLocation(), Annotator::Decl, Annotator::Declaration,
143 annotator.getTypeRef(d->getType()));

Callers

nothing calls this directly

Calls 2

registerReferenceMethod · 0.80
getTypeRefMethod · 0.80

Tested by

no test coverage detected