Lines Matching defs:NNS
81 NestedNameSpecifier *NNS = SS.getScopeRep();
82 if (NNS->isDependent()) {
85 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS))
89 const Type *NNSType = NNS->getAsType();
132 switch (NNS->getKind()) {
137 return NNS->getAsNamespace();
140 return NNS->getAsNamespaceAlias()->getNamespace();
144 const TagType *Tag = NNS->getAsType()->getAs<TagType>();
153 return NNS->getAsRecordDecl();
170 /// \param NNS a dependent nested name specifier.
171 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) {
173 assert(NNS->isDependent() && "Only dependent nested-name-specifier allowed");
175 if (!NNS->getAsType())
178 QualType T = QualType(NNS->getAsType(), 0);
333 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) {
334 if (!S || !NNS)
337 while (NNS->getPrefix())
338 NNS = NNS->getPrefix();
340 if (NNS->getKind() != NestedNameSpecifier::Identifier)
343 LookupResult Found(*this, NNS->getAsIdentifier(), SourceLocation(),
953 NestedNameSpecifier *NNS;
966 Annotation->NNS = SS.getScopeRep();
981 SS.Adopt(NestedNameSpecifierLoc(Annotation->NNS, Annotation + 1));