Lines Matching refs:NNS
87 NestedNameSpecifier *NNS in computeDeclContext() local
89 if (NNS->isDependent()) { in computeDeclContext()
92 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS)) in computeDeclContext()
96 const Type *NNSType = NNS->getAsType(); in computeDeclContext()
139 switch (NNS->getKind()) { in computeDeclContext()
144 return NNS->getAsNamespace(); in computeDeclContext()
147 return NNS->getAsNamespaceAlias()->getNamespace(); in computeDeclContext()
151 const TagType *Tag = NNS->getAsType()->getAs<TagType>(); in computeDeclContext()
167 NestedNameSpecifier *NNS in isDependentScopeSpecifier() local
169 return NNS->isDependent(); in isDependentScopeSpecifier()
179 NestedNameSpecifier *NNS in isUnknownSpecialization() local
181 return getCurrentInstantiationOf(NNS) == 0; in isUnknownSpecialization()
189 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) { in getCurrentInstantiationOf() argument
191 assert(NNS->isDependent() && "Only dependent nested-name-specifier allowed"); in getCurrentInstantiationOf()
193 if (!NNS->getAsType()) in getCurrentInstantiationOf()
196 QualType T = QualType(NNS->getAsType(), 0); in getCurrentInstantiationOf()
304 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) { in FindFirstQualifierInScope() argument
305 if (!S || !NNS) in FindFirstQualifierInScope()
308 while (NNS->getPrefix()) in FindFirstQualifierInScope()
309 NNS = NNS->getPrefix(); in FindFirstQualifierInScope()
311 if (NNS->getKind() != NestedNameSpecifier::Identifier) in FindFirstQualifierInScope()
314 LookupResult Found(*this, NNS->getAsIdentifier(), SourceLocation(), in FindFirstQualifierInScope()
851 NestedNameSpecifier *NNS; member
864 Annotation->NNS = SS.getScopeRep(); in SaveNestedNameSpecifierAnnotation()
879 SS.Adopt(NestedNameSpecifierLoc(Annotation->NNS, Annotation + 1)); in RestoreNestedNameSpecifierAnnotation()