Lines Matching refs:NNS
59 NestedNameSpecifier *NNS = SS.getScopeRep(); in computeDeclContext() local
60 if (NNS->isDependent()) { in computeDeclContext()
63 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS)) in computeDeclContext()
67 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()
160 return NNS->getAsRecordDecl(); in computeDeclContext()
173 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) { in getCurrentInstantiationOf() argument
175 assert(NNS->isDependent() && "Only dependent nested-name-specifier allowed"); in getCurrentInstantiationOf()
177 if (!NNS->getAsType()) in getCurrentInstantiationOf()
180 QualType T = QualType(NNS->getAsType(), 0); in getCurrentInstantiationOf()
359 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) { in FindFirstQualifierInScope() argument
360 if (!S || !NNS) in FindFirstQualifierInScope()
363 while (NNS->getPrefix()) in FindFirstQualifierInScope()
364 NNS = NNS->getPrefix(); in FindFirstQualifierInScope()
366 if (NNS->getKind() != NestedNameSpecifier::Identifier) in FindFirstQualifierInScope()
369 LookupResult Found(*this, NNS->getAsIdentifier(), SourceLocation(), in FindFirstQualifierInScope()
946 NestedNameSpecifier *NNS; member
959 Annotation->NNS = SS.getScopeRep(); in SaveNestedNameSpecifierAnnotation()
974 SS.Adopt(NestedNameSpecifierLoc(Annotation->NNS, Annotation + 1)); in RestoreNestedNameSpecifierAnnotation()