/external/clang/lib/Index/ |
D | IndexTypeSourceInfo.cpp | 74 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument 75 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC); in TraverseNestedNameSpecifierLoc() 152 void IndexingContext::indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, in indexNestedNameSpecifierLoc() argument 155 if (!NNS) in indexNestedNameSpecifierLoc() 158 if (NestedNameSpecifierLoc Prefix = NNS.getPrefix()) in indexNestedNameSpecifierLoc() 163 SourceLocation Loc = NNS.getSourceRange().getBegin(); in indexNestedNameSpecifierLoc() 165 switch (NNS.getNestedNameSpecifier()->getKind()) { in indexNestedNameSpecifierLoc() 172 handleReference(NNS.getNestedNameSpecifier()->getAsNamespace(), in indexNestedNameSpecifierLoc() 176 handleReference(NNS.getNestedNameSpecifier()->getAsNamespaceAlias(), in indexNestedNameSpecifierLoc() 182 indexTypeLoc(NNS.getTypeLoc(), Parent, DC); in indexNestedNameSpecifierLoc()
|
D | IndexingContext.h | 94 void indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS,
|
D | IndexBody.cpp | 48 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument 49 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC); in TraverseNestedNameSpecifierLoc()
|
/external/clang/include/clang/Sema/ |
D | TypoCorrection.h | 43 NestedNameSpecifier *NNS = nullptr, unsigned CharDistance = 0, 45 : CorrectionName(Name), CorrectionNameSpec(NNS), in CorrectionName() 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), in CorrectionName() 83 void setCorrectionSpecifier(NestedNameSpecifier *NNS) { in setCorrectionSpecifier() argument 84 CorrectionNameSpec = NNS; in setCorrectionSpecifier() 85 ForceSpecifierReplacement = (NNS != nullptr); in setCorrectionSpecifier() 291 void setTypoNNS(NestedNameSpecifier *NNS) { TypoNNS = NNS; } in setTypoNNS() argument
|
D | SemaInternal.h | 248 NestedNameSpecifier *&NNS); 295 NestedNameSpecifier *NNS = nullptr, bool isKeyword = false);
|
/external/clang/lib/ASTMatchers/ |
D | ASTMatchFinder.cpp | 119 else if (const NestedNameSpecifier *NNS = in findMatch() local 121 traverse(*NNS); in findMatch() 185 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) { in TraverseNestedNameSpecifier() argument 187 return (NNS == nullptr) || traverse(*NNS); in TraverseNestedNameSpecifier() 189 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument 190 if (!NNS) in TraverseNestedNameSpecifierLoc() 193 if (!match(*NNS.getNestedNameSpecifier())) in TraverseNestedNameSpecifierLoc() 195 return traverse(NNS); in TraverseNestedNameSpecifierLoc() 231 bool baseTraverse(const NestedNameSpecifier &NNS) { in baseTraverse() argument 233 const_cast<NestedNameSpecifier*>(&NNS)); in baseTraverse() [all …]
|
/external/clang/lib/Sema/ |
D | SemaCXXScopeSpec.cpp | 81 NestedNameSpecifier *NNS = SS.getScopeRep(); in computeDeclContext() local 82 if (NNS->isDependent()) { in computeDeclContext() 85 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS)) in computeDeclContext() 89 const Type *NNSType = NNS->getAsType(); in computeDeclContext() 142 switch (NNS->getKind()) { in computeDeclContext() 147 return NNS->getAsNamespace(); in computeDeclContext() 150 return NNS->getAsNamespaceAlias()->getNamespace(); in computeDeclContext() 154 const TagType *Tag = NNS->getAsType()->getAs<TagType>(); in computeDeclContext() 163 return NNS->getAsRecordDecl(); in computeDeclContext() 181 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) { in getCurrentInstantiationOf() argument [all …]
|
D | SemaLookup.cpp | 2197 auto *NNS = SS.getScopeRep(); in LookupQualifiedName() local 2198 if (NNS && NNS->getKind() == NestedNameSpecifier::Super) in LookupQualifiedName() 2199 return LookupInSuper(R, NNS->getAsRecordDecl()); in LookupQualifiedName() 2233 NestedNameSpecifier *NNS = SS->getScopeRep(); in LookupParsedName() local 2234 if (NNS->getKind() == NestedNameSpecifier::Super) in LookupParsedName() 2235 return LookupInSuper(R, NNS->getAsRecordDecl()); in LookupParsedName() 3816 NestedNameSpecifier *NNS, in getNestedNameSpecifierIdentifiers() argument 3818 if (NestedNameSpecifier *Prefix = NNS->getPrefix()) in getNestedNameSpecifierIdentifiers() 3825 switch (NNS->getKind()) { in getNestedNameSpecifierIdentifiers() 3827 II = NNS->getAsIdentifier(); in getNestedNameSpecifierIdentifiers() [all …]
|
D | SemaCoroutine.cpp | 89 auto *NNS = NestedNameSpecifier::Create(S.Context, nullptr, Std); in lookupPromiseType() local 90 NNS = NestedNameSpecifier::Create(S.Context, NNS, false, in lookupPromiseType() 92 PromiseType = S.Context.getElaboratedType(ETK_None, NNS, PromiseType); in lookupPromiseType()
|
D | SemaTemplate.cpp | 1613 while (NestedNameSpecifier *NNS = NNSLoc.getNestedNameSpecifier()) { in getRangeOfTypeInNestedNameSpecifier() local 1614 if (const Type *CurType = NNS->getAsType()) { in getRangeOfTypeInNestedNameSpecifier() 1724 if (NestedNameSpecifier *NNS = DependentTST->getQualifier()) in MatchTemplateParametersToScopeSpecifier() local 1725 T = QualType(NNS->getAsType(), 0); in MatchTemplateParametersToScopeSpecifier() 1733 if (NestedNameSpecifier *NNS = DependentName->getQualifier()) in MatchTemplateParametersToScopeSpecifier() local 1734 T = QualType(NNS->getAsType(), 0); in MatchTemplateParametersToScopeSpecifier() 4053 bool VisitNestedNameSpecifier(NestedNameSpecifier *NNS); 4251 NestedNameSpecifier *NNS) { in VisitNestedNameSpecifier() argument 4252 if (NNS->getPrefix() && VisitNestedNameSpecifier(NNS->getPrefix())) in VisitNestedNameSpecifier() 4255 switch (NNS->getKind()) { in VisitNestedNameSpecifier() [all …]
|
/external/clang/lib/Tooling/Core/ |
D | Lookup.cpp | 76 static bool isFullyQualified(const NestedNameSpecifier *NNS) { in isFullyQualified() argument 77 while (NNS) { in isFullyQualified() 78 if (NNS->getKind() == NestedNameSpecifier::Global) in isFullyQualified() 80 NNS = NNS->getPrefix(); in isFullyQualified()
|
D | QualTypeNames.cpp | 76 NestedNameSpecifier *NNS = nullptr; in getFullyQualifiedTemplateName() local 85 NNS = QTName->getQualifier(); in getFullyQualifiedTemplateName() 87 Ctx, NNS, WithGlobalNsPrefix); in getFullyQualifiedTemplateName() 88 if (QNNS != NNS) { in getFullyQualifiedTemplateName() 90 NNS = QNNS; in getFullyQualifiedTemplateName() 92 NNS = nullptr; in getFullyQualifiedTemplateName() 95 NNS = createNestedNameSpecifierForScopeOf( in getFullyQualifiedTemplateName() 98 if (NNS) { in getFullyQualifiedTemplateName() 99 TName = Ctx.getQualifiedTemplateName(NNS, in getFullyQualifiedTemplateName()
|
/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() 626 for (NestedNameSpecifier *NNS = Qualifier; NNS; NNS = NNS->getPrefix()) in MakeTrivial() local 627 Stack.push_back(NNS); in MakeTrivial() 629 NestedNameSpecifier *NNS = Stack.pop_back_val(); in MakeTrivial() local 630 switch (NNS->getKind()) { in MakeTrivial() 640 = Context.getTrivialTypeSourceInfo(QualType(NNS->getAsType(), 0), in MakeTrivial()
|
D | ASTTypeTraits.cpp | 112 else if (const NestedNameSpecifier *NNS = get<NestedNameSpecifier>()) in print() local 113 NNS->print(OS, PP); in print()
|
D | ASTContext.cpp | 3501 NestedNameSpecifier *NNS, in getElaboratedType() argument 3504 ElaboratedType::Profile(ID, Keyword, NNS, NamedType); in getElaboratedType() 3519 T = new (*this, TypeAlignment) ElaboratedType(Keyword, NNS, NamedType, Canon); in getElaboratedType() 3550 NestedNameSpecifier *NNS, in getDependentNameType() argument 3554 NestedNameSpecifier *CanonNNS = getCanonicalNestedNameSpecifier(NNS); in getDependentNameType() 3559 if (CanonNNS != NNS || CanonKeyword != Keyword) in getDependentNameType() 3564 DependentNameType::Profile(ID, Keyword, NNS, Name); in getDependentNameType() 3572 T = new (*this, TypeAlignment) DependentNameType(Keyword, NNS, Name, Canon); in getDependentNameType() 3581 NestedNameSpecifier *NNS, in getDependentTemplateSpecializationType() argument 3588 return getDependentTemplateSpecializationType(Keyword, NNS, Name, ArgCopy); in getDependentTemplateSpecializationType() [all …]
|
D | StmtProfile.cpp | 55 void VisitNestedNameSpecifier(NestedNameSpecifier *NNS); 1693 void StmtProfiler::VisitNestedNameSpecifier(NestedNameSpecifier *NNS) { in VisitNestedNameSpecifier() argument 1695 NNS = Context.getCanonicalNestedNameSpecifier(NNS); in VisitNestedNameSpecifier() 1696 ID.AddPointer(NNS); in VisitNestedNameSpecifier()
|
/external/clang/include/clang/AST/ |
D | TemplateName.h | 371 QualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword, in QualifiedTemplateName() argument 373 : Qualifier(NNS, TemplateKeyword? 1 : 0), in QualifiedTemplateName() 396 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument 398 ID.AddPointer(NNS); in Profile() 497 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument 499 ID.AddPointer(NNS); in Profile() 504 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument 506 ID.AddPointer(NNS); in Profile()
|
D | NestedNameSpecifier.h | 508 NestedNameSpecifier *NNS) { 509 DB.AddTaggedVal(reinterpret_cast<intptr_t>(NNS),
|
D | Type.h | 4436 NestedNameSpecifier *NNS; 4441 ElaboratedType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, 4448 NNS(NNS), NamedType(NamedType) { 4449 assert(!(Keyword == ETK_None && NNS == nullptr) && 4460 NestedNameSpecifier *getQualifier() const { return NNS; } 4472 Profile(ID, getKeyword(), NNS, NamedType); 4476 NestedNameSpecifier *NNS, QualType NamedType) { 4478 ID.AddPointer(NNS); 4502 NestedNameSpecifier *NNS; 4507 DependentNameType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, [all …]
|
D | RecursiveASTVisitor.h | 218 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS); 224 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS); 699 NestedNameSpecifier *NNS) { 700 if (!NNS) 703 if (NNS->getPrefix()) 704 TRY_TO(TraverseNestedNameSpecifier(NNS->getPrefix())); 706 switch (NNS->getKind()) { 716 TRY_TO(TraverseType(QualType(NNS->getAsType(), 0))); 724 NestedNameSpecifierLoc NNS) { 725 if (!NNS) [all …]
|
D | ASTContext.h | 1259 NestedNameSpecifier *NNS, 1262 NestedNameSpecifier *NNS, 1267 NestedNameSpecifier *NNS, 1271 ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, 1743 TemplateName getQualifiedTemplateName(NestedNameSpecifier *NNS, 1747 TemplateName getDependentTemplateName(NestedNameSpecifier *NNS, 1749 TemplateName getDependentTemplateName(NestedNameSpecifier *NNS, 2071 getCanonicalNestedNameSpecifier(NestedNameSpecifier *NNS) const;
|
/external/clang/tools/libclang/ |
D | CursorVisitor.h | 245 bool VisitNestedNameSpecifier(NestedNameSpecifier *NNS, SourceRange Range); 246 bool VisitNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS);
|
/external/clang/lib/Serialization/ |
D | ASTWriter.cpp | 5166 void ASTRecordWriter::AddNestedNameSpecifier(NestedNameSpecifier *NNS) { in AddNestedNameSpecifier() argument 5172 while (NNS) { in AddNestedNameSpecifier() 5173 NestedNames.push_back(NNS); in AddNestedNameSpecifier() 5174 NNS = NNS->getPrefix(); in AddNestedNameSpecifier() 5179 NNS = NestedNames.pop_back_val(); in AddNestedNameSpecifier() 5180 NestedNameSpecifier::SpecifierKind Kind = NNS->getKind(); in AddNestedNameSpecifier() 5184 AddIdentifierRef(NNS->getAsIdentifier()); in AddNestedNameSpecifier() 5188 AddDeclRef(NNS->getAsNamespace()); in AddNestedNameSpecifier() 5192 AddDeclRef(NNS->getAsNamespaceAlias()); in AddNestedNameSpecifier() 5197 AddTypeRef(QualType(NNS->getAsType(), 0)); in AddNestedNameSpecifier() [all …]
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersTest.h | 331 } else if (const NestedNameSpecifier *NNS = in run() local 334 NNS->print(OS, PrintingPolicy(LangOptions())); in run()
|
D | ASTMatchersNodeTest.cpp | 1362 TEST(NNS, MatchesNestedNameSpecifiers) { in TEST() argument 1390 TEST(NNS, MatchesTypes) { in TEST() argument 1399 TEST(NNS, MatchesNamespaceDecls) { in TEST() argument 1407 TEST(NNS, MatchesNestedNameSpecifierPrefixes) { in TEST() argument
|