Searched defs:NNS (Results 1 - 25 of 30) sorted by relevance

12

/external/clang/tools/libclang/
H A DIndexTypeSourceInfo.cpp36 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { argument
37 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC);
116 void IndexingContext::indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, argument
119 if (!NNS)
122 if (NestedNameSpecifierLoc Prefix = NNS.getPrefix())
127 SourceLocation Loc = NNS.getSourceRange().getBegin();
129 switch (NNS.getNestedNameSpecifier()->getKind()) {
136 handleReference(NNS.getNestedNameSpecifier()->getAsNamespace(),
140 handleReference(NNS.getNestedNameSpecifier()->getAsNamespaceAlias(),
146 indexTypeLoc(NNS
[all...]
H A DIndexBody.cpp36 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { argument
37 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC);
H A DCIndex.cpp1222 bool CursorVisitor::VisitNestedNameSpecifier(NestedNameSpecifier *NNS, argument
1228 if (!NNS)
1232 while (NestedNameSpecifier *Prefix = NNS->getPrefix())
1233 NNS = Prefix;
1235 switch (NNS->getKind()) {
1237 return Visit(MakeCursorNamespaceRef(NNS->getAsNamespace(), Range.getBegin(),
1241 return Visit(MakeCursorNamespaceRef(NNS->getAsNamespaceAlias(),
1248 const Type *T = NNS->getAsType();
1277 NestedNameSpecifier *NNS = Q.getNestedNameSpecifier(); local
1278 switch (NNS
[all...]
/external/clang/include/clang/AST/
H A DNestedNameSpecifier.h507 NestedNameSpecifier *NNS) {
508 DB.AddTaggedVal(reinterpret_cast<intptr_t>(NNS),
506 operator <<(const DiagnosticBuilder &DB, NestedNameSpecifier *NNS) argument
H A DTemplateName.h399 QualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword, argument
401 : Qualifier(NNS, TemplateKeyword? 1 : 0),
424 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, argument
426 ID.AddPointer(NNS);
525 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, argument
527 ID.AddPointer(NNS);
532 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, argument
534 ID.AddPointer(NNS);
H A DDataRecursiveASTVisitor.h191 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS);
197 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS);
615 NestedNameSpecifier *NNS) {
616 if (!NNS)
619 if (NNS->getPrefix())
620 TRY_TO(TraverseNestedNameSpecifier(NNS->getPrefix()));
622 switch (NNS->getKind()) {
632 TRY_TO(TraverseType(QualType(NNS->getAsType(), 0)));
640 NestedNameSpecifierLoc NNS) {
641 if (!NNS)
614 TraverseNestedNameSpecifier( NestedNameSpecifier *NNS) argument
639 TraverseNestedNameSpecifierLoc( NestedNameSpecifierLoc NNS) argument
[all...]
H A DRecursiveASTVisitor.h195 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS);
201 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS);
681 NestedNameSpecifier *NNS) {
682 if (!NNS)
685 if (NNS->getPrefix())
686 TRY_TO(TraverseNestedNameSpecifier(NNS->getPrefix()));
688 switch (NNS->getKind()) {
698 TRY_TO(TraverseType(QualType(NNS->getAsType(), 0)));
706 NestedNameSpecifierLoc NNS) {
707 if (!NNS)
680 TraverseNestedNameSpecifier( NestedNameSpecifier *NNS) argument
705 TraverseNestedNameSpecifierLoc( NestedNameSpecifierLoc NNS) argument
[all...]
H A DType.h4061 NestedNameSpecifier *NNS; member in class:clang::FunctionType::ExtInfo::FunctionProtoType::ElaboratedType
4066 ElaboratedType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, argument
4073 NNS(NNS), NamedType(NamedType) {
4074 assert(!(Keyword == ETK_None && NNS == nullptr) &&
4085 NestedNameSpecifier *getQualifier() const { return NNS; }
4097 Profile(ID, getKeyword(), NNS, NamedType);
4101 NestedNameSpecifier *NNS, QualType NamedType) {
4103 ID.AddPointer(NNS);
4127 NestedNameSpecifier *NNS; member in class:clang::FunctionType::ExtInfo::FunctionProtoType::DependentNameType
4100 Profile(llvm::FoldingSetNodeID &ID, ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, QualType NamedType) argument
4132 DependentNameType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, const IdentifierInfo *Name, QualType CanonType) argument
4163 Profile(llvm::FoldingSetNodeID &ID, ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, const IdentifierInfo *Name) argument
4182 NestedNameSpecifier *NNS; member in class:clang::FunctionType::ExtInfo::FunctionProtoType::DependentTemplateSpecializationType
[all...]
/external/clang/lib/AST/
H A DNestedNameSpecifier.cpp34 NestedNameSpecifier *NNS local
36 if (!NNS) {
37 NNS = new (Context, llvm::alignOf<NestedNameSpecifier>())
39 Context.NestedNameSpecifiers.InsertNode(NNS, InsertPos);
42 return NNS;
153 llvm_unreachable("Invalid NNS Kind!");
207 llvm_unreachable("Invalid NNS Kind!");
229 llvm_unreachable("Invalid NNS Kind!");
248 llvm_unreachable("Invalid NNS Kind!");
421 llvm_unreachable("Invalid NNS Kin
613 NestedNameSpecifier *NNS = Stack.pop_back_val(); local
[all...]
H A DASTDiagnostic.cpp335 NestedNameSpecifier *NNS = reinterpret_cast<NestedNameSpecifier*>(Val); local
336 NNS->print(OS, Context.getPrintingPolicy());
H A DExprCXX.cpp1403 auto *NNS = getQualifier(); local
1404 if (NNS && NNS->getKind() != NestedNameSpecifier::Super) {
H A DStmtProfile.cpp54 void VisitNestedNameSpecifier(NestedNameSpecifier *NNS);
1445 void StmtProfiler::VisitNestedNameSpecifier(NestedNameSpecifier *NNS) { argument
1447 NNS = Context.getCanonicalNestedNameSpecifier(NNS);
1448 ID.AddPointer(NNS);
H A DType.cpp1447 NestedNameSpecifier *NNS, const IdentifierInfo *Name,
1452 NNS && NNS->containsUnexpandedParameterPack()),
1453 NNS(NNS), Name(Name), NumArgs(NumArgs) {
1454 assert((!NNS || NNS->isDependent()) &&
1445 DependentTemplateSpecializationType( ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, const IdentifierInfo *Name, unsigned NumArgs, const TemplateArgument *Args, QualType Canon) argument
H A DExpr.cpp335 auto *NNS = QualifierLoc.getNestedNameSpecifier(); local
336 if (NNS->isInstantiationDependent())
338 if (NNS->containsUnexpandedParameterPack())
H A DASTContext.cpp3343 NestedNameSpecifier *NNS,
3346 ElaboratedType::Profile(ID, Keyword, NNS, NamedType);
3361 T = new (*this, TypeAlignment) ElaboratedType(Keyword, NNS, NamedType, Canon);
3392 NestedNameSpecifier *NNS,
3396 NestedNameSpecifier *CanonNNS = getCanonicalNestedNameSpecifier(NNS);
3401 if (CanonNNS != NNS || CanonKeyword != Keyword)
3406 DependentNameType::Profile(ID, Keyword, NNS, Name);
3414 T = new (*this, TypeAlignment) DependentNameType(Keyword, NNS, Name, Canon);
3423 NestedNameSpecifier *NNS,
3430 return getDependentTemplateSpecializationType(Keyword, NNS, Nam
3342 getElaboratedType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, QualType NamedType) const argument
3391 getDependentNameType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, const IdentifierInfo *Name, QualType Canon) const argument
3421 getDependentTemplateSpecializationType( ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, const IdentifierInfo *Name, const TemplateArgumentListInfo &Args) const argument
3436 getDependentTemplateSpecializationType( ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, const IdentifierInfo *Name, unsigned NumArgs, const TemplateArgument *Args) const argument
6292 getQualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword, TemplateDecl *Template) const argument
6316 getDependentTemplateName(NestedNameSpecifier *NNS, const IdentifierInfo *Name) const argument
6352 getDependentTemplateName(NestedNameSpecifier *NNS, OverloadedOperatorKind Operator) const argument
[all...]
/external/clang/include/clang/Sema/
H A DTypoCorrection.h43 NestedNameSpecifier *NNS = nullptr, unsigned CharDistance = 0,
45 : CorrectionName(Name), CorrectionNameSpec(NNS),
53 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr,
55 : CorrectionName(Name->getDeclName()), CorrectionNameSpec(NNS),
62 TypoCorrection(DeclarationName Name, NestedNameSpecifier *NNS = nullptr,
64 : CorrectionName(Name), CorrectionNameSpec(NNS),
83 void setCorrectionSpecifier(NestedNameSpecifier* NNS) { argument
84 CorrectionNameSpec = NNS;
85 ForceSpecifierReplacement = (NNS != nullptr);
285 void setTypoNNS(NestedNameSpecifier *NNS) { TypoNN argument
[all...]
/external/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp81 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
171 getCurrentInstantiationOf(NestedNameSpecifier *NNS) argument
331 FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) argument
949 NestedNameSpecifier *NNS; member in struct:__anon1133::NestedNameSpecifierAnnotation
[all...]
H A DSemaTemplateInstantiate.cpp2710 Sema::SubstNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, argument
2712 if (!NNS)
2715 TemplateInstantiator Instantiator(*this, TemplateArgs, NNS.getBeginLoc(),
2717 return Instantiator.TransformNestedNameSpecifierLoc(NNS);
H A DSemaTemplateDeduction.cpp4619 NestedNameSpecifier *NNS,
4623 if (!NNS)
4626 MarkUsedTemplateParameters(Ctx, NNS->getPrefix(), OnlyDeduced, Depth,
4628 MarkUsedTemplateParameters(Ctx, QualType(NNS->getAsType(), 0),
4618 MarkUsedTemplateParameters(ASTContext &Ctx, NestedNameSpecifier *NNS, bool OnlyDeduced, unsigned Depth, llvm::SmallBitVector &Used) argument
H A DSemaLookup.cpp1802 auto *NNS = SS.getScopeRep(); local
1803 if (NNS && NNS->getKind() == NestedNameSpecifier::Super)
1804 return LookupInSuper(R, NNS->getAsRecordDecl());
1838 NestedNameSpecifier *NNS = SS->getScopeRep(); local
1839 if (NNS->getKind() == NestedNameSpecifier::Super)
1840 return LookupInSuper(R, NNS->getAsRecordDecl());
3409 NestedNameSpecifier *NNS,
3411 if (NestedNameSpecifier *Prefix = NNS->getPrefix())
3418 switch (NNS
3408 getNestedNameSpecifierIdentifiers( NestedNameSpecifier *NNS, SmallVectorImpl<const IdentifierInfo*> &Identifiers) argument
3481 addName(StringRef Name, NamedDecl *ND, NestedNameSpecifier *NNS, bool isKeyword) argument
3770 buildNestedNameSpecifier( DeclContextList &DeclChain, NestedNameSpecifier *&NNS) argument
3790 NestedNameSpecifier *NNS = nullptr; local
[all...]
H A DSemaType.cpp3065 NestedNameSpecifier *NNS = SS.getScopeRep(); local
3066 NestedNameSpecifier *NNSPrefix = NNS->getPrefix();
3067 switch (NNS->getKind()) {
3070 NNS->getAsIdentifier());
3081 ClsType = QualType(NNS->getAsType(), 0);
3082 // Note: if the NNS has a prefix and ClsType is a nondependent
3083 // TemplateSpecializationType, then the NNS prefix is NOT included
3087 if (NNSPrefix && isa<TemplateSpecializationType>(NNS->getAsType()))
5471 NestedNameSpecifier *NNS;
5473 NNS
[all...]
H A DSemaCodeComplete.cpp3171 NestedNameSpecifier *NNS local
3174 if (NNS) {
3177 NNS->print(OS, Policy);
4184 NestedNameSpecifier *NNS = SS.getScopeRep(); local
4185 if (!Results.empty() && NNS->isDependent())
H A DSemaExprCXX.cpp52 NestedNameSpecifier *NNS = SS.getScopeRep(); local
56 switch (NNS->getKind()) {
59 Type = QualType(NNS->getAsType(), 0);
65 assert(NNS->getAsIdentifier() == &Name && "not a constructor name");
66 Type = Context.getDependentNameType(ETK_None, NNS->getPrefix(),
67 NNS->getAsIdentifier());
126 NestedNameSpecifier *NNS = SS.getScopeRep(); local
155 } else if (LookAtPrefix && (Prefix = NNS->getPrefix())) {
6066 if (auto *NNS = TC.getCorrectionSpecifier())
6067 NewSS.MakeTrivial(SemaRef.Context, NNS, T
[all...]
H A DSemaTemplate.cpp1584 while (NestedNameSpecifier *NNS = NNSLoc.getNestedNameSpecifier()) {
1585 if (const Type *CurType = NNS->getAsType()) {
1695 if (NestedNameSpecifier *NNS = DependentTST->getQualifier())
1696 T = QualType(NNS->getAsType(), 0);
1704 if (NestedNameSpecifier *NNS = DependentName->getQualifier())
1705 T = QualType(NNS->getAsType(), 0);
3072 // Suggest that the user add 'typename' before the NNS.
3937 bool VisitNestedNameSpecifier(NestedNameSpecifier *NNS);
4131 NestedNameSpecifier *NNS) {
4132 if (NNS
4130 VisitNestedNameSpecifier( NestedNameSpecifier *NNS) argument
7858 NestedNameSpecifier *NNS = SS.getScopeRep(); local
7992 isEnableIf(NestedNameSpecifierLoc NNS, const IdentifierInfo &II, SourceRange &CondRange) argument
[all...]
/external/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp119 else if (const NestedNameSpecifier *NNS =
121 traverse(*NNS);
185 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) { argument
187 return (NNS == nullptr) || traverse(*NNS);
189 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { argument
190 if (!NNS)
193 if (!match(*NNS.getNestedNameSpecifier()))
195 return traverse(NNS);
234 bool baseTraverse(const NestedNameSpecifier &NNS) { argument
238 baseTraverse(NestedNameSpecifierLoc NNS) argument
863 TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) argument
868 TraverseNestedNameSpecifierLoc( NestedNameSpecifierLoc NNS) argument
[all...]

Completed in 5065 milliseconds

12