/external/llvm-project/clang/include/clang/AST/ |
D | AbstractBasicWriter.h | 193 void writeNestedNameSpecifier(NestedNameSpecifier *NNS) { in writeNestedNameSpecifier() argument 199 while (NNS) { in writeNestedNameSpecifier() 200 nestedNames.push_back(NNS); in writeNestedNameSpecifier() 201 NNS = NNS->getPrefix(); in writeNestedNameSpecifier() 206 NNS = nestedNames.pop_back_val(); in writeNestedNameSpecifier() 207 NestedNameSpecifier::SpecifierKind kind = NNS->getKind(); in writeNestedNameSpecifier() 211 asImpl().writeIdentifier(NNS->getAsIdentifier()); in writeNestedNameSpecifier() 215 asImpl().writeNamespaceDeclRef(NNS->getAsNamespace()); in writeNestedNameSpecifier() 219 asImpl().writeNamespaceAliasDeclRef(NNS->getAsNamespaceAlias()); in writeNestedNameSpecifier() 224 asImpl().writeQualType(QualType(NNS->getAsType(), 0)); in writeNestedNameSpecifier() [all …]
|
D | TemplateName.h | 407 QualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword, in QualifiedTemplateName() argument 409 : Qualifier(NNS, TemplateKeyword? 1 : 0), Template(Template) {} in QualifiedTemplateName() 431 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument 433 ID.AddPointer(NNS); in Profile() 532 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument 534 ID.AddPointer(NNS); in Profile() 539 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument 541 ID.AddPointer(NNS); in Profile()
|
D | ASTConcept.h | 127 ConceptReference(NestedNameSpecifierLoc NNS, SourceLocation TemplateKWLoc, in ConceptReference() argument 131 NestedNameSpec(NNS), TemplateKWLoc(TemplateKWLoc), in ConceptReference() 175 TypeConstraint(NestedNameSpecifierLoc NNS, in TypeConstraint() argument 180 ConceptReference(NNS, /*TemplateKWLoc=*/SourceLocation(), ConceptNameInfo, in TypeConstraint()
|
/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()
|
/external/llvm-project/clang/unittests/Tooling/RecursiveASTVisitorTests/ |
D | NestedNameSpecifiers.cpp | 26 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument 27 if (!NNS) in TraverseNestedNameSpecifierLoc() 30 NNS.getNestedNameSpecifier()->getAsNamespace()) in TraverseNestedNameSpecifierLoc() 31 Match(ND->getName(), NNS.getLocalBeginLoc()); in TraverseNestedNameSpecifierLoc() 32 return ExpectedLocationVisitor::TraverseNestedNameSpecifierLoc(NNS); 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
|
/external/llvm-project/clang/test/Parser/ |
D | cxx-decl.cpp | 267 namespace NNS { 272 A (::NNS::B::C1); 273 A (NNS::B::C2); // expected-warning {{redundant parentheses surrounding declarator}} 274 A (*::NNS::B::C3); // expected-warning {{redundant parentheses surrounding declarator}} 275 A (::NNS::B::C4[2]); 277 A ((::NNS::B::C5)); // expected-warning {{redundant parentheses surrounding declarator}} 281 A(::NNS::B::C1); // expected-error {{definition or redeclaration}} 282 …A(NNS::B::C1); // expected-warning {{redundant paren}} expected-error {{definition or redeclaratio…
|
/external/llvm-project/clang/lib/Index/ |
D | IndexTypeSourceInfo.cpp | 103 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument 104 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC); in TraverseNestedNameSpecifierLoc() 201 const NestedNameSpecifier *NNS = DNT->getQualifier(); in VisitDependentNameTypeLoc() local 202 const Type *T = NNS->getAsType(); in VisitDependentNameTypeLoc() 259 void IndexingContext::indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, in indexNestedNameSpecifierLoc() argument 262 if (!NNS) in indexNestedNameSpecifierLoc() 265 if (NestedNameSpecifierLoc Prefix = NNS.getPrefix()) in indexNestedNameSpecifierLoc() 270 SourceLocation Loc = NNS.getLocalBeginLoc(); in indexNestedNameSpecifierLoc() 272 switch (NNS.getNestedNameSpecifier()->getKind()) { in indexNestedNameSpecifierLoc() 279 handleReference(NNS.getNestedNameSpecifier()->getAsNamespace(), in indexNestedNameSpecifierLoc() [all …]
|
/external/llvm-project/clang/include/clang/Sema/ |
D | TypoCorrection.h | 60 NestedNameSpecifier *NNS = nullptr, unsigned CharDistance = 0, 62 : CorrectionName(Name), CorrectionNameSpec(NNS), in CorrectionName() 68 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr, 70 : CorrectionName(Name->getDeclName()), CorrectionNameSpec(NNS), 76 TypoCorrection(DeclarationName Name, NestedNameSpecifier *NNS = nullptr, 78 : CorrectionName(Name), CorrectionNameSpec(NNS), in CorrectionName() 95 void setCorrectionSpecifier(NestedNameSpecifier *NNS) { in setCorrectionSpecifier() argument 96 CorrectionNameSpec = NNS; in setCorrectionSpecifier() 97 ForceSpecifierReplacement = (NNS != nullptr); in setCorrectionSpecifier() 323 void setTypoNNS(NestedNameSpecifier *NNS) { TypoNNS = NNS; } in setTypoNNS() argument
|
/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/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/llvm-project/clang/include/clang/Tooling/Refactoring/ |
D | RecursiveSymbolVisitor.h | 114 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument 117 if (NNS) { in TraverseNestedNameSpecifierLoc() 118 const NamespaceDecl *ND = NNS.getNestedNameSpecifier()->getAsNamespace(); in TraverseNestedNameSpecifierLoc() 119 if (!visit(ND, NNS.getLocalBeginLoc(), NNS.getLocalEndLoc())) in TraverseNestedNameSpecifierLoc() 122 return BaseType::TraverseNestedNameSpecifierLoc(NNS); in TraverseNestedNameSpecifierLoc()
|
/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 …]
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaCXXScopeSpec.cpp | 79 NestedNameSpecifier *NNS = SS.getScopeRep(); in computeDeclContext() local 80 if (NNS->isDependent()) { in computeDeclContext() 83 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS)) in computeDeclContext() 87 const Type *NNSType = NNS->getAsType(); in computeDeclContext() 140 switch (NNS->getKind()) { in computeDeclContext() 145 return NNS->getAsNamespace(); in computeDeclContext() 148 return NNS->getAsNamespaceAlias()->getNamespace(); in computeDeclContext() 152 const TagType *Tag = NNS->getAsType()->getAs<TagType>(); in computeDeclContext() 161 return NNS->getAsRecordDecl(); in computeDeclContext() 179 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) { in getCurrentInstantiationOf() argument [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | MoveForwardingReferenceCheck.cpp | 47 NestedNameSpecifier *NNS = Callee->getQualifier(); in replaceMoveWithForward() local 48 if (!NNS) { in replaceMoveWithForward() 53 } else if (const NamespaceDecl *Namespace = NNS->getAsNamespace()) { in replaceMoveWithForward() 55 if (!NNS->getPrefix()) { in replaceMoveWithForward() 59 } else if (NNS->getPrefix()->getKind() == NestedNameSpecifier::Global) { in replaceMoveWithForward()
|
/external/llvm-project/clang/lib/ASTMatchers/ |
D | ASTMatchFinder.cpp | 121 else if (const NestedNameSpecifier *NNS = in findMatch() local 123 traverse(*NNS); in findMatch() 217 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) { in TraverseNestedNameSpecifier() argument 219 return (NNS == nullptr) || traverse(*NNS); in TraverseNestedNameSpecifier() 221 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument 222 if (!NNS) in TraverseNestedNameSpecifierLoc() 225 if (!match(*NNS.getNestedNameSpecifier())) in TraverseNestedNameSpecifierLoc() 227 return traverse(NNS); in TraverseNestedNameSpecifierLoc() 307 bool baseTraverse(const NestedNameSpecifier &NNS) { in baseTraverse() argument 309 const_cast<NestedNameSpecifier*>(&NNS)); in baseTraverse() [all …]
|
/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()
|
/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()
|
/external/llvm-project/clang/lib/AST/ |
D | NestedNameSpecifier.cpp | 47 NestedNameSpecifier *NNS in FindOrInsert() local 49 if (!NNS) { in FindOrInsert() 50 NNS = in FindOrInsert() 52 Context.NestedNameSpecifiers.InsertNode(NNS, InsertPos); in FindOrInsert() 55 return NNS; in FindOrInsert() 637 for (NestedNameSpecifier *NNS = Qualifier; NNS; NNS = NNS->getPrefix()) in MakeTrivial() local 638 Stack.push_back(NNS); in MakeTrivial() 640 NestedNameSpecifier *NNS = Stack.pop_back_val(); in MakeTrivial() local 641 switch (NNS->getKind()) { in MakeTrivial() 651 = Context.getTrivialTypeSourceInfo(QualType(NNS->getAsType(), 0), in MakeTrivial()
|
D | QualTypeNames.cpp | 60 NestedNameSpecifier *NNS = nullptr; in getFullyQualifiedTemplateName() local 69 NNS = QTName->getQualifier(); in getFullyQualifiedTemplateName() 71 Ctx, NNS, WithGlobalNsPrefix); in getFullyQualifiedTemplateName() 72 if (QNNS != NNS) { in getFullyQualifiedTemplateName() 74 NNS = QNNS; in getFullyQualifiedTemplateName() 76 NNS = nullptr; in getFullyQualifiedTemplateName() 79 NNS = createNestedNameSpecifierForScopeOf( in getFullyQualifiedTemplateName() 82 if (NNS) { in getFullyQualifiedTemplateName() 83 TName = Ctx.getQualifiedTemplateName(NNS, in getFullyQualifiedTemplateName()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | AST.cpp | 115 NestedNameSpecifier *NNS = nullptr; in getQualification() local 119 NNS = NestedNameSpecifier::Create(Context, nullptr, false, in getQualification() 124 NNS = NestedNameSpecifier::Create(Context, nullptr, NSD); in getQualification() 131 if (IsVisible(NNS)) in getQualification() 134 Parents.push_back(NNS); in getQualification() 435 [&](NestedNameSpecifier *NNS) { in getQualification() argument 436 if (NNS->getKind() != NestedNameSpecifier::Namespace) in getQualification() 438 const auto *CanonNSD = NNS->getAsNamespace()->getCanonicalDecl(); in getQualification() 456 [&](NestedNameSpecifier *NNS) { in getQualification() argument 460 NNS->print(OS, Context.getPrintingPolicy()); in getQualification()
|
D | DumpAST.cpp | 273 const auto &NNS = *NNSL.getNestedNameSpecifier(); in getDetail() local 274 switch (NNS.getKind()) { in getDetail() 276 return NNS.getAsIdentifier()->getName().str() + "::"; in getDetail() 278 return NNS.getAsNamespace()->getNameAsString() + "::"; in getDetail() 280 return NNS.getAsNamespaceAlias()->getNameAsString() + "::"; in getDetail() 320 std::string getArcana(const NestedNameSpecifierLoc &NNS) { return ""; } in getArcana() argument 321 std::string getArcana(const TemplateName &NNS) { return ""; } in getArcana() argument 412 else if (const auto *NNS = N.get<NestedNameSpecifier>()) in dumpAST() local 413 V.TraverseNestedNameSpecifier(const_cast<NestedNameSpecifier *>(NNS)); in dumpAST()
|
D | FindTarget.cpp | 245 const Type *resolveNestedNameSpecifierToType(const NestedNameSpecifier *NNS) { in resolveNestedNameSpecifierToType() argument 246 if (!NNS) in resolveNestedNameSpecifierToType() 249 switch (NNS->getKind()) { in resolveNestedNameSpecifierToType() 252 return NNS->getAsType(); in resolveNestedNameSpecifierToType() 255 resolveNestedNameSpecifierToType(NNS->getPrefix()), in resolveNestedNameSpecifierToType() 256 [&](const ASTContext &) { return NNS->getAsIdentifier(); }, in resolveNestedNameSpecifierToType() 634 void add(const NestedNameSpecifier *NNS, RelSet Flags) { in add() 635 if (!NNS) in add() 637 debug(*NNS, Flags); in add() 638 switch (NNS->getKind()) { in add() [all …]
|
/external/llvm-project/clang/lib/Tooling/Refactoring/ |
D | Lookup.cpp | 112 static bool isFullyQualified(const NestedNameSpecifier *NNS) { in isFullyQualified() argument 113 while (NNS) { in isFullyQualified() 114 if (NNS->getKind() == NestedNameSpecifier::Global) in isFullyQualified() 116 NNS = NNS->getPrefix(); in isFullyQualified()
|