Lines Matching defs:NNS
58 NestedNameSpecifier *NNS = SS.getScopeRep();
59 if (NNS->isDependent()) {
62 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS))
66 const Type *NNSType = NNS->getAsType();
138 switch (NNS->getKind()) {
143 return NNS->getAsNamespace();
146 return NNS->getAsNamespaceAlias()->getNamespace();
150 const TagType *Tag = NNS->getAsType()->getAs<TagType>();
159 return NNS->getAsRecordDecl();
172 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) {
174 assert(NNS->isDependent() && "Only dependent nested-name-specifier allowed");
176 if (!NNS->getAsType())
179 QualType T = QualType(NNS->getAsType(), 0);
358 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) {
359 if (!S || !NNS)
362 while (NNS->getPrefix())
363 NNS = NNS->getPrefix();
365 if (NNS->getKind() != NestedNameSpecifier::Identifier)
368 LookupResult Found(*this, NNS->getAsIdentifier(), SourceLocation(),
945 NestedNameSpecifier *NNS;
958 Annotation->NNS = SS.getScopeRep();
973 SS.Adopt(NestedNameSpecifierLoc(Annotation->NNS, Annotation + 1));