Lines Matching full:contexts
1414 assert(DC && "All transparent contexts should have a parent!");
1498 void collectAllContextsImpl(T *Self, SmallVectorImpl<DeclContext *> &Contexts) {
1500 Contexts.push_back(D);
1502 std::reverse(Contexts.begin(), Contexts.end());
1505 void DeclContext::collectAllContexts(SmallVectorImpl<DeclContext *> &Contexts) {
1506 Contexts.clear();
1511 collectAllContextsImpl(static_cast<TranslationUnitDecl *>(this), Contexts);
1513 collectAllContextsImpl(static_cast<NamespaceDecl *>(this), Contexts);
1515 Contexts.push_back(this);
1779 /// declarations in this DeclContext (and any other contexts linked
1780 /// to it or transparent contexts nested within it) and return it.
1792 SmallVector<DeclContext *, 2> Contexts;
1793 collectAllContexts(Contexts);
1797 for (auto *DC : Contexts) {
1809 for (auto *DC : Contexts)
1937 SmallVector<DeclContext *, 2> Contexts;
1938 collectAllContexts(Contexts);
1939 for (auto *Context : Contexts)
1995 // Skip through contexts to get to the redeclaration context. Transparent
1996 // contexts are always skipped.
2004 // Skip through non-namespace, non-translation-unit contexts.
2022 // For non-file contexts, this is equivalent to Equals.