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

Method isMember

generator/browserastvisitor.h:478–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476
477
478 bool isMember(clang::NamedDecl *d) {
479 if (!currentContext)
480 return false;
481 clang::CXXRecordDecl *ctx = llvm::dyn_cast<clang::CXXRecordDecl>(currentContext->getDeclContext());
482 if (!ctx) return false;
483 if (d->getDeclContext() == ctx)
484 return true;
485
486 // try to see if it is in a inhertited class
487 clang::CXXRecordDecl *rec = llvm::dyn_cast<clang::CXXRecordDecl>(d->getDeclContext());
488 return rec && ctx->isDerivedFrom(rec);
489 }
490
491 bool shouldProcess(clang::NamedDecl *d) {
492 return annotator.shouldProcess(clang::FullSourceLoc(d->getLocation(),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected