Lines Matching refs:NNS
79 NestedNameSpecifier *NNS = SS.getScopeRep(); in computeDeclContext() local
80 if (NNS->isDependent()) { in computeDeclContext()
83 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS)) in computeDeclContext()
87 const Type *NNSType = NNS->getAsType(); in computeDeclContext()
140 switch (NNS->getKind()) { in computeDeclContext()
145 return NNS->getAsNamespace(); in computeDeclContext()
148 return NNS->getAsNamespaceAlias()->getNamespace(); in computeDeclContext()
152 const TagType *Tag = NNS->getAsType()->getAs<TagType>(); in computeDeclContext()
161 return NNS->getAsRecordDecl(); in computeDeclContext()
179 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) { in getCurrentInstantiationOf() argument
181 assert(NNS->isDependent() && "Only dependent nested-name-specifier allowed"); in getCurrentInstantiationOf()
183 if (!NNS->getAsType()) in getCurrentInstantiationOf()
186 QualType T = QualType(NNS->getAsType(), 0); in getCurrentInstantiationOf()
372 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) { in FindFirstQualifierInScope() argument
373 if (!S || !NNS) in FindFirstQualifierInScope()
376 while (NNS->getPrefix()) in FindFirstQualifierInScope()
377 NNS = NNS->getPrefix(); in FindFirstQualifierInScope()
379 if (NNS->getKind() != NestedNameSpecifier::Identifier) in FindFirstQualifierInScope()
382 LookupResult Found(*this, NNS->getAsIdentifier(), SourceLocation(), in FindFirstQualifierInScope()
1011 NestedNameSpecifier *NNS; member
1024 Annotation->NNS = SS.getScopeRep(); in SaveNestedNameSpecifierAnnotation()
1039 SS.Adopt(NestedNameSpecifierLoc(Annotation->NNS, Annotation + 1)); in RestoreNestedNameSpecifierAnnotation()