Lines Matching refs:NNS

81   NestedNameSpecifier *NNS = SS.getScopeRep();  in computeDeclContext()  local
82 if (NNS->isDependent()) { in computeDeclContext()
85 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS)) in computeDeclContext()
89 const Type *NNSType = NNS->getAsType(); in computeDeclContext()
142 switch (NNS->getKind()) { in computeDeclContext()
147 return NNS->getAsNamespace(); in computeDeclContext()
150 return NNS->getAsNamespaceAlias()->getNamespace(); in computeDeclContext()
154 const TagType *Tag = NNS->getAsType()->getAs<TagType>(); in computeDeclContext()
163 return NNS->getAsRecordDecl(); in computeDeclContext()
181 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) { in getCurrentInstantiationOf() argument
183 assert(NNS->isDependent() && "Only dependent nested-name-specifier allowed"); in getCurrentInstantiationOf()
185 if (!NNS->getAsType()) in getCurrentInstantiationOf()
188 QualType T = QualType(NNS->getAsType(), 0); in getCurrentInstantiationOf()
358 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) { in FindFirstQualifierInScope() argument
359 if (!S || !NNS) in FindFirstQualifierInScope()
362 while (NNS->getPrefix()) in FindFirstQualifierInScope()
363 NNS = NNS->getPrefix(); in FindFirstQualifierInScope()
365 if (NNS->getKind() != NestedNameSpecifier::Identifier) in FindFirstQualifierInScope()
368 LookupResult Found(*this, NNS->getAsIdentifier(), SourceLocation(), in FindFirstQualifierInScope()
982 NestedNameSpecifier *NNS; member
995 Annotation->NNS = SS.getScopeRep(); in SaveNestedNameSpecifierAnnotation()
1010 SS.Adopt(NestedNameSpecifierLoc(Annotation->NNS, Annotation + 1)); in RestoreNestedNameSpecifierAnnotation()