Lines Matching refs:NNS
81 NestedNameSpecifier *NNS in computeDeclContext() local
83 if (NNS->isDependent()) { in computeDeclContext()
86 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS)) in computeDeclContext()
90 const Type *NNSType = NNS->getAsType(); in computeDeclContext()
133 switch (NNS->getKind()) { in computeDeclContext()
138 return NNS->getAsNamespace(); in computeDeclContext()
141 return NNS->getAsNamespaceAlias()->getNamespace(); in computeDeclContext()
145 const TagType *Tag = NNS->getAsType()->getAs<TagType>(); in computeDeclContext()
161 NestedNameSpecifier *NNS in isDependentScopeSpecifier() local
163 return NNS->isDependent(); in isDependentScopeSpecifier()
173 NestedNameSpecifier *NNS in isUnknownSpecialization() local
175 return getCurrentInstantiationOf(NNS) == 0; in isUnknownSpecialization()
183 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) { in getCurrentInstantiationOf() argument
185 assert(NNS->isDependent() && "Only dependent nested-name-specifier allowed"); in getCurrentInstantiationOf()
187 if (!NNS->getAsType()) in getCurrentInstantiationOf()
190 QualType T = QualType(NNS->getAsType(), 0); in getCurrentInstantiationOf()
298 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) { in FindFirstQualifierInScope() argument
299 if (!S || !NNS) in FindFirstQualifierInScope()
302 while (NNS->getPrefix()) in FindFirstQualifierInScope()
303 NNS = NNS->getPrefix(); in FindFirstQualifierInScope()
305 if (NNS->getKind() != NestedNameSpecifier::Identifier) in FindFirstQualifierInScope()
308 LookupResult Found(*this, NNS->getAsIdentifier(), SourceLocation(), in FindFirstQualifierInScope()
846 NestedNameSpecifier *NNS; member
859 Annotation->NNS = SS.getScopeRep(); in SaveNestedNameSpecifierAnnotation()
874 SS.Adopt(NestedNameSpecifierLoc(Annotation->NNS, Annotation + 1)); in RestoreNestedNameSpecifierAnnotation()