| 944 | } |
| 945 | |
| 946 | std::string Annotator::getContextStr(clang::NamedDecl* usedContext) |
| 947 | { |
| 948 | clang::FunctionDecl *fun = llvm::dyn_cast<clang::FunctionDecl>(usedContext); |
| 949 | clang::DeclContext* context = usedContext->getDeclContext(); |
| 950 | while(!fun && context) { |
| 951 | fun = llvm::dyn_cast<clang::FunctionDecl>(context); |
| 952 | if (fun && !fun->isDefinedOutsideFunctionOrMethod()) |
| 953 | fun = nullptr; |
| 954 | context = context->getParent(); |
| 955 | } |
| 956 | if (fun) |
| 957 | return getReferenceAndTitle(fun).first; |
| 958 | return {}; |
| 959 | } |
| 960 | |
| 961 | std::string Annotator::getVisibleRef(clang::NamedDecl* Decl) |
| 962 | { |
nothing calls this directly
no outgoing calls
no test coverage detected