| 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(), |
nothing calls this directly
no outgoing calls
no test coverage detected