Lines Matching defs:CurrentContext
72 const auto *CurrentContext = llvm::cast<DeclContext>(InnerNs);
76 // Get the inner-most namespace in CurrentContext.
77 while (CurrentContext && !llvm::isa<NamespaceDecl>(CurrentContext))
78 CurrentContext = CurrentContext->getParent();
79 if (!CurrentContext)
81 CurrentNs = llvm::cast<NamespaceDecl>(CurrentContext);
85 CurrentContext = CurrentContext->getParent();