/external/clang/tools/libclang/ |
D | IndexTypeSourceInfo.cpp | 37 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument 38 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC); in TraverseNestedNameSpecifierLoc() 117 void IndexingContext::indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, in indexNestedNameSpecifierLoc() argument 120 if (!NNS) in indexNestedNameSpecifierLoc() 123 if (NestedNameSpecifierLoc Prefix = NNS.getPrefix()) in indexNestedNameSpecifierLoc() 128 SourceLocation Loc = NNS.getSourceRange().getBegin(); in indexNestedNameSpecifierLoc() 130 switch (NNS.getNestedNameSpecifier()->getKind()) { in indexNestedNameSpecifierLoc() 136 handleReference(NNS.getNestedNameSpecifier()->getAsNamespace(), in indexNestedNameSpecifierLoc() 140 handleReference(NNS.getNestedNameSpecifier()->getAsNamespaceAlias(), in indexNestedNameSpecifierLoc() 146 indexTypeLoc(NNS.getTypeLoc(), Parent, DC); in indexNestedNameSpecifierLoc()
|
D | IndexBody.cpp | 37 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument 38 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC); in TraverseNestedNameSpecifierLoc()
|
D | RecursiveASTVisitor.h | 186 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS); 192 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS); 571 NestedNameSpecifier *NNS) { in TraverseNestedNameSpecifier() argument 572 if (!NNS) in TraverseNestedNameSpecifier() 575 if (NNS->getPrefix()) in TraverseNestedNameSpecifier() 576 TRY_TO(TraverseNestedNameSpecifier(NNS->getPrefix())); in TraverseNestedNameSpecifier() 578 switch (NNS->getKind()) { in TraverseNestedNameSpecifier() 587 TRY_TO(TraverseType(QualType(NNS->getAsType(), 0))); in TraverseNestedNameSpecifier() 595 NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument 596 if (!NNS) in TraverseNestedNameSpecifierLoc() [all …]
|
D | CursorVisitor.h | 241 bool VisitNestedNameSpecifier(NestedNameSpecifier *NNS, SourceRange Range); 242 bool VisitNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS);
|
D | CIndex.cpp | 1175 bool CursorVisitor::VisitNestedNameSpecifier(NestedNameSpecifier *NNS, in VisitNestedNameSpecifier() argument 1181 if (!NNS) in VisitNestedNameSpecifier() 1185 while (NestedNameSpecifier *Prefix = NNS->getPrefix()) in VisitNestedNameSpecifier() 1186 NNS = Prefix; in VisitNestedNameSpecifier() 1188 switch (NNS->getKind()) { in VisitNestedNameSpecifier() 1190 return Visit(MakeCursorNamespaceRef(NNS->getAsNamespace(), Range.getBegin(), in VisitNestedNameSpecifier() 1194 return Visit(MakeCursorNamespaceRef(NNS->getAsNamespaceAlias(), in VisitNestedNameSpecifier() 1201 const Type *T = NNS->getAsType(); in VisitNestedNameSpecifier() 1229 NestedNameSpecifier *NNS = Q.getNestedNameSpecifier(); in VisitNestedNameSpecifierLoc() local 1230 switch (NNS->getKind()) { in VisitNestedNameSpecifierLoc() [all …]
|
D | IndexingContext.h | 395 void indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS,
|
/external/clang/lib/Sema/ |
D | SemaCXXScopeSpec.cpp | 87 NestedNameSpecifier *NNS in computeDeclContext() local 89 if (NNS->isDependent()) { in computeDeclContext() 92 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS)) in computeDeclContext() 96 const Type *NNSType = NNS->getAsType(); in computeDeclContext() 139 switch (NNS->getKind()) { in computeDeclContext() 144 return NNS->getAsNamespace(); in computeDeclContext() 147 return NNS->getAsNamespaceAlias()->getNamespace(); in computeDeclContext() 151 const TagType *Tag = NNS->getAsType()->getAs<TagType>(); in computeDeclContext() 167 NestedNameSpecifier *NNS in isDependentScopeSpecifier() local 169 return NNS->isDependent(); in isDependentScopeSpecifier() [all …]
|
D | SemaLookup.cpp | 3169 NestedNameSpecifier *NNS=NULL, bool isKeyword=false); 3241 NestedNameSpecifier *NNS, in addName() argument 3243 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, Distance); in addName() 3281 NestedNameSpecifier *NNS, in getNestedNameSpecifierIdentifiers() argument 3283 if (NestedNameSpecifier *Prefix = NNS->getPrefix()) in getNestedNameSpecifierIdentifiers() 3290 switch (NNS->getKind()) { in getNestedNameSpecifierIdentifiers() 3292 II = NNS->getAsIdentifier(); in getNestedNameSpecifierIdentifiers() 3296 if (NNS->getAsNamespace()->isAnonymousNamespace()) in getNestedNameSpecifierIdentifiers() 3298 II = NNS->getAsNamespace()->getIdentifier(); in getNestedNameSpecifierIdentifiers() 3302 II = NNS->getAsNamespaceAlias()->getIdentifier(); in getNestedNameSpecifierIdentifiers() [all …]
|
D | SemaTemplate.cpp | 1557 while (NestedNameSpecifier *NNS = NNSLoc.getNestedNameSpecifier()) { in getRangeOfTypeInNestedNameSpecifier() local 1558 if (const Type *CurType = NNS->getAsType()) { in getRangeOfTypeInNestedNameSpecifier() 1671 if (NestedNameSpecifier *NNS = DependentTST->getQualifier()) in MatchTemplateParametersToScopeSpecifier() local 1672 T = QualType(NNS->getAsType(), 0); in MatchTemplateParametersToScopeSpecifier() 1680 if (NestedNameSpecifier *NNS = DependentName->getQualifier()) in MatchTemplateParametersToScopeSpecifier() local 1681 T = QualType(NNS->getAsType(), 0); in MatchTemplateParametersToScopeSpecifier() 3320 bool VisitNestedNameSpecifier(NestedNameSpecifier *NNS); 3516 NestedNameSpecifier *NNS) { in VisitNestedNameSpecifier() argument 3517 if (NNS->getPrefix() && VisitNestedNameSpecifier(NNS->getPrefix())) in VisitNestedNameSpecifier() 3520 switch (NNS->getKind()) { in VisitNestedNameSpecifier() [all …]
|
D | SemaType.cpp | 2583 NestedNameSpecifier *NNS in GetFullTypeForDeclarator() local 2585 NestedNameSpecifier *NNSPrefix = NNS->getPrefix(); in GetFullTypeForDeclarator() 2586 switch (NNS->getKind()) { in GetFullTypeForDeclarator() 2589 NNS->getAsIdentifier()); in GetFullTypeForDeclarator() 2599 ClsType = QualType(NNS->getAsType(), 0); in GetFullTypeForDeclarator() 2605 if (NNSPrefix && isa<TemplateSpecializationType>(NNS->getAsType())) in GetFullTypeForDeclarator() 4560 NestedNameSpecifier *NNS; in getElaboratedType() local 4562 NNS = static_cast<NestedNameSpecifier *>(SS.getScopeRep()); in getElaboratedType() 4566 NNS = 0; in getElaboratedType() 4568 return Context.getElaboratedType(Keyword, NNS, T); in getElaboratedType()
|
D | SemaTemplateInstantiate.cpp | 2507 Sema::SubstNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, in SubstNestedNameSpecifierLoc() argument 2509 if (!NNS) in SubstNestedNameSpecifierLoc() 2512 TemplateInstantiator Instantiator(*this, TemplateArgs, NNS.getBeginLoc(), in SubstNestedNameSpecifierLoc() 2514 return Instantiator.TransformNestedNameSpecifierLoc(NNS); in SubstNestedNameSpecifierLoc()
|
D | SemaTemplateDeduction.cpp | 4217 NestedNameSpecifier *NNS, in MarkUsedTemplateParameters() argument 4221 if (!NNS) in MarkUsedTemplateParameters() 4224 MarkUsedTemplateParameters(Ctx, NNS->getPrefix(), OnlyDeduced, Depth, in MarkUsedTemplateParameters() 4226 MarkUsedTemplateParameters(Ctx, QualType(NNS->getAsType(), 0), in MarkUsedTemplateParameters()
|
/external/clang/include/clang/Sema/ |
D | TypoCorrection.h | 41 NestedNameSpecifier *NNS=0, unsigned CharDistance=0, 43 : CorrectionName(Name), CorrectionNameSpec(NNS), in CorrectionName() 50 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS=0, 52 : CorrectionName(Name->getDeclName()), CorrectionNameSpec(NNS), 58 TypoCorrection(DeclarationName Name, NestedNameSpecifier *NNS=0, 60 : CorrectionName(Name), CorrectionNameSpec(NNS), in CorrectionName() 77 void setCorrectionSpecifier(NestedNameSpecifier* NNS) { in setCorrectionSpecifier() argument 78 CorrectionNameSpec = NNS; in setCorrectionSpecifier()
|
/external/clang/lib/AST/ |
D | NestedNameSpecifier.cpp | 34 NestedNameSpecifier *NNS in FindOrInsert() local 36 if (!NNS) { in FindOrInsert() 37 NNS = new (Context, llvm::alignOf<NestedNameSpecifier>()) in FindOrInsert() 39 Context.NestedNameSpecifiers.InsertNode(NNS, InsertPos); in FindOrInsert() 42 return NNS; in FindOrInsert() 569 for (NestedNameSpecifier *NNS = Qualifier; NNS; NNS = NNS->getPrefix()) in MakeTrivial() local 570 Stack.push_back(NNS); in MakeTrivial() 572 NestedNameSpecifier *NNS = Stack.back(); in MakeTrivial() local 574 switch (NNS->getKind()) { in MakeTrivial() 584 = Context.getTrivialTypeSourceInfo(QualType(NNS->getAsType(), 0), in MakeTrivial()
|
D | ASTContext.cpp | 2931 NestedNameSpecifier *NNS, in getElaboratedType() argument 2934 ElaboratedType::Profile(ID, Keyword, NNS, NamedType); in getElaboratedType() 2949 T = new (*this) ElaboratedType(Keyword, NNS, NamedType, Canon); in getElaboratedType() 2980 NestedNameSpecifier *NNS, in getDependentNameType() argument 2983 assert(NNS->isDependent() && "nested-name-specifier must be dependent"); in getDependentNameType() 2986 NestedNameSpecifier *CanonNNS = getCanonicalNestedNameSpecifier(NNS); in getDependentNameType() 2991 if (CanonNNS != NNS || CanonKeyword != Keyword) in getDependentNameType() 2996 DependentNameType::Profile(ID, Keyword, NNS, Name); in getDependentNameType() 3004 T = new (*this) DependentNameType(Keyword, NNS, Name, Canon); in getDependentNameType() 3013 NestedNameSpecifier *NNS, in getDependentTemplateSpecializationType() argument [all …]
|
D | StmtProfile.cpp | 54 void VisitNestedNameSpecifier(NestedNameSpecifier *NNS); 1128 void StmtProfiler::VisitNestedNameSpecifier(NestedNameSpecifier *NNS) { in VisitNestedNameSpecifier() argument 1130 NNS = Context.getCanonicalNestedNameSpecifier(NNS); in VisitNestedNameSpecifier() 1131 ID.AddPointer(NNS); in VisitNestedNameSpecifier()
|
D | Type.cpp | 1403 NestedNameSpecifier *NNS, const IdentifierInfo *Name, in DependentTemplateSpecializationType() argument 1408 NNS && NNS->containsUnexpandedParameterPack()), in DependentTemplateSpecializationType() 1409 NNS(NNS), Name(Name), NumArgs(NumArgs) { in DependentTemplateSpecializationType() 1410 assert((!NNS || NNS->isDependent()) && in DependentTemplateSpecializationType()
|
/external/clang/include/clang/AST/ |
D | TemplateName.h | 395 QualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword, in QualifiedTemplateName() argument 397 : Qualifier(NNS, TemplateKeyword? 1 : 0), in QualifiedTemplateName() 420 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument 422 ID.AddPointer(NNS); in Profile() 521 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument 523 ID.AddPointer(NNS); in Profile() 528 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument 530 ID.AddPointer(NNS); in Profile()
|
D | RecursiveASTVisitor.h | 193 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS); 199 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS); 635 NestedNameSpecifier *NNS) { in TraverseNestedNameSpecifier() argument 636 if (!NNS) in TraverseNestedNameSpecifier() 639 if (NNS->getPrefix()) in TraverseNestedNameSpecifier() 640 TRY_TO(TraverseNestedNameSpecifier(NNS->getPrefix())); in TraverseNestedNameSpecifier() 642 switch (NNS->getKind()) { in TraverseNestedNameSpecifier() 651 TRY_TO(TraverseType(QualType(NNS->getAsType(), 0))); in TraverseNestedNameSpecifier() 659 NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument 660 if (!NNS) in TraverseNestedNameSpecifierLoc() [all …]
|
D | Type.h | 3891 NestedNameSpecifier *NNS; 3896 ElaboratedType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, 3903 NNS(NNS), NamedType(NamedType) { 3904 assert(!(Keyword == ETK_None && NNS == 0) && 3915 NestedNameSpecifier *getQualifier() const { return NNS; } 3927 Profile(ID, getKeyword(), NNS, NamedType); 3931 NestedNameSpecifier *NNS, QualType NamedType) { 3933 ID.AddPointer(NNS); 3955 NestedNameSpecifier *NNS; 3960 DependentNameType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, [all …]
|
D | NestedNameSpecifier.h | 474 NestedNameSpecifier *NNS) { 475 DB.AddTaggedVal(reinterpret_cast<intptr_t>(NNS),
|
D | ASTContext.h | 988 NestedNameSpecifier *NNS, 991 NestedNameSpecifier *NNS, 996 NestedNameSpecifier *NNS, 1000 NestedNameSpecifier *NNS, 1372 TemplateName getQualifiedTemplateName(NestedNameSpecifier *NNS, 1376 TemplateName getDependentTemplateName(NestedNameSpecifier *NNS, 1378 TemplateName getDependentTemplateName(NestedNameSpecifier *NNS, 1625 getCanonicalNestedNameSpecifier(NestedNameSpecifier *NNS) const;
|
/external/clang/lib/Serialization/ |
D | ASTWriter.cpp | 4038 void ASTWriter::AddNestedNameSpecifier(NestedNameSpecifier *NNS, in AddNestedNameSpecifier() argument 4045 while (NNS) { in AddNestedNameSpecifier() 4046 NestedNames.push_back(NNS); in AddNestedNameSpecifier() 4047 NNS = NNS->getPrefix(); in AddNestedNameSpecifier() 4052 NNS = NestedNames.pop_back_val(); in AddNestedNameSpecifier() 4053 NestedNameSpecifier::SpecifierKind Kind = NNS->getKind(); in AddNestedNameSpecifier() 4057 AddIdentifierRef(NNS->getAsIdentifier(), Record); in AddNestedNameSpecifier() 4061 AddDeclRef(NNS->getAsNamespace(), Record); in AddNestedNameSpecifier() 4065 AddDeclRef(NNS->getAsNamespaceAlias(), Record); in AddNestedNameSpecifier() 4070 AddTypeRef(QualType(NNS->getAsType(), 0), Record); in AddNestedNameSpecifier() [all …]
|
D | ASTReader.cpp | 4025 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord() local 4027 return Context.getElaboratedType(Keyword, NNS, NamedType); in readTypeRecord() 4093 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord() local 4098 return Context.getDependentNameType(Keyword, NNS, Name, Canon); in readTypeRecord() 4104 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord() local 4111 return Context.getDependentTemplateSpecializationType(Keyword, NNS, Name, in readTypeRecord() 5882 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx); in ReadTemplateName() local 5885 return Context.getQualifiedTemplateName(NNS, hasTemplKeyword, Template); in ReadTemplateName() 5889 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx); in ReadTemplateName() local 5891 return Context.getDependentTemplateName(NNS, in ReadTemplateName() [all …]
|
/external/clang/include/clang/Serialization/ |
D | ASTWriter.h | 582 void AddNestedNameSpecifier(NestedNameSpecifier *NNS, RecordDataImpl &Record); 585 void AddNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS,
|