Lines Matching defs:NNS
59 NestedNameSpecifier *NNS = SS.getScopeRep();
60 if (NNS->isDependent()) {
63 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS))
67 const Type *NNSType = NNS->getAsType();
139 switch (NNS->getKind()) {
144 return NNS->getAsNamespace();
147 return NNS->getAsNamespaceAlias()->getNamespace();
151 const TagType *Tag = NNS->getAsType()->getAs<TagType>();
160 return NNS->getAsRecordDecl();
173 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) {
175 assert(NNS->isDependent() && "Only dependent nested-name-specifier allowed");
177 if (!NNS->getAsType())
180 QualType T = QualType(NNS->getAsType(), 0);
359 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) {
360 if (!S || !NNS)
363 while (NNS->getPrefix())
364 NNS = NNS->getPrefix();
366 if (NNS->getKind() != NestedNameSpecifier::Identifier)
369 LookupResult Found(*this, NNS->getAsIdentifier(), SourceLocation(),
946 NestedNameSpecifier *NNS;
959 Annotation->NNS = SS.getScopeRep();
974 SS.Adopt(NestedNameSpecifierLoc(Annotation->NNS, Annotation + 1));