| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | NestedNameSpecifier.cpp | 40 NestedNameSpecifier * 51 new (Context, alignof(NestedNameSpecifier)) NestedNameSpecifier(Mockup); in FindOrInsert() 58 NestedNameSpecifier * 71 NestedNameSpecifier * 87 NestedNameSpecifier * 103 NestedNameSpecifier * 115 NestedNameSpecifier * 125 NestedNameSpecifier * 129 new (Context, alignof(NestedNameSpecifier)) NestedNameSpecifier(); in GlobalSpecifier() 133 NestedNameSpecifier * [all …]
|
| H A D | QualTypeNames.cpp | 30 static NestedNameSpecifier *createNestedNameSpecifier( 60 NestedNameSpecifier *NNS = nullptr; in getFullyQualifiedTemplateName() 219 case NestedNameSpecifier::Global: in getFullyQualifiedNestedNameSpecifier() 222 case NestedNameSpecifier::Namespace: in getFullyQualifiedNestedNameSpecifier() 225 case NestedNameSpecifier::NamespaceAlias: in getFullyQualifiedNestedNameSpecifier() 234 case NestedNameSpecifier::Identifier: in getFullyQualifiedNestedNameSpecifier() 240 case NestedNameSpecifier::Super: in getFullyQualifiedNestedNameSpecifier() 241 case NestedNameSpecifier::TypeSpec: in getFullyQualifiedNestedNameSpecifier() 353 return NestedNameSpecifier::Create( in createNestedNameSpecifier() 373 return NestedNameSpecifier::Create( in createNestedNameSpecifier() [all …]
|
| H A D | ODRHash.cpp | 109 void ODRHash::AddNestedNameSpecifier(const NestedNameSpecifier *NNS) { in AddNestedNameSpecifier() 119 case NestedNameSpecifier::Identifier: in AddNestedNameSpecifier() 122 case NestedNameSpecifier::Namespace: in AddNestedNameSpecifier() 125 case NestedNameSpecifier::NamespaceAlias: in AddNestedNameSpecifier() 128 case NestedNameSpecifier::TypeSpec: in AddNestedNameSpecifier() 129 case NestedNameSpecifier::TypeSpecWithTemplate: in AddNestedNameSpecifier() 132 case NestedNameSpecifier::Global: in AddNestedNameSpecifier() 133 case NestedNameSpecifier::Super: in AddNestedNameSpecifier() 692 void AddNestedNameSpecifier(const NestedNameSpecifier *NNS) { in AddNestedNameSpecifier()
|
| H A D | ASTTypeTraits.cpp | 179 else if (const NestedNameSpecifier *NNS = get<NestedNameSpecifier>()) in print() 182 if (const NestedNameSpecifier *NNS = NNSL->getNestedNameSpecifier()) in print()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | NestedNameSpecifier.h | 50 class NestedNameSpecifier : public llvm::FoldingSetNode { 106 NestedNameSpecifier() : Prefix(nullptr, StoredIdentifier) {} in NestedNameSpecifier() function 110 NestedNameSpecifier(const NestedNameSpecifier &Other) = default; 118 NestedNameSpecifier &operator=(const NestedNameSpecifier &) = delete; 125 static NestedNameSpecifier *Create(const ASTContext &Context, 130 static NestedNameSpecifier *Create(const ASTContext &Context, 135 static NestedNameSpecifier *Create(const ASTContext &Context, 140 static NestedNameSpecifier *Create(const ASTContext &Context, 244 NestedNameSpecifier *Qualifier = nullptr; 274 NestedNameSpecifier *getNestedNameSpecifier() const { in getNestedNameSpecifier() [all …]
|
| H A D | AbstractBasicReader.h | 246 NestedNameSpecifier *readNestedNameSpecifier() { in readNestedNameSpecifier() 250 NestedNameSpecifier *cur = nullptr; in readNestedNameSpecifier() 256 case NestedNameSpecifier::Identifier: in readNestedNameSpecifier() 257 cur = NestedNameSpecifier::Create(ctx, cur, in readNestedNameSpecifier() 261 case NestedNameSpecifier::Namespace: in readNestedNameSpecifier() 262 cur = NestedNameSpecifier::Create(ctx, cur, in readNestedNameSpecifier() 266 case NestedNameSpecifier::NamespaceAlias: in readNestedNameSpecifier() 267 cur = NestedNameSpecifier::Create(ctx, cur, in readNestedNameSpecifier() 271 case NestedNameSpecifier::TypeSpec: in readNestedNameSpecifier() 278 case NestedNameSpecifier::Global: in readNestedNameSpecifier() [all …]
|
| H A D | AbstractBasicWriter.h | 228 void writeNestedNameSpecifier(NestedNameSpecifier *NNS) { in writeNestedNameSpecifier() 231 SmallVector<NestedNameSpecifier *, 8> nestedNames; in writeNestedNameSpecifier() 242 NestedNameSpecifier::SpecifierKind kind = NNS->getKind(); in writeNestedNameSpecifier() 245 case NestedNameSpecifier::Identifier: in writeNestedNameSpecifier() 249 case NestedNameSpecifier::Namespace: in writeNestedNameSpecifier() 253 case NestedNameSpecifier::NamespaceAlias: in writeNestedNameSpecifier() 257 case NestedNameSpecifier::TypeSpec: in writeNestedNameSpecifier() 258 case NestedNameSpecifier::TypeSpecWithTemplate: in writeNestedNameSpecifier() 262 case NestedNameSpecifier::Global: in writeNestedNameSpecifier() 266 case NestedNameSpecifier::Super: in writeNestedNameSpecifier()
|
| H A D | TemplateName.h | 32 class NestedNameSpecifier; variable 415 llvm::PointerIntPair<NestedNameSpecifier *, 1> Qualifier; 424 QualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword, in QualifiedTemplateName() 446 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() 471 llvm::PointerIntPair<NestedNameSpecifier *, 1, bool> Qualifier; 494 DependentTemplateName(NestedNameSpecifier *Qualifier, in DependentTemplateName() 499 DependentTemplateName(NestedNameSpecifier *Qualifier, in DependentTemplateName() 505 DependentTemplateName(NestedNameSpecifier *Qualifier, in DependentTemplateName() 510 DependentTemplateName(NestedNameSpecifier *Qualifier, in DependentTemplateName() 547 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() [all …]
|
| H A D | ODRHash.h | 30 class NestedNameSpecifier; variable 83 void AddNestedNameSpecifier(const NestedNameSpecifier *NNS);
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | TypoCorrection.h | 38 class NestedNameSpecifier; variable 60 NestedNameSpecifier *NNS = nullptr, unsigned CharDistance = 0, 68 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr, 76 TypoCorrection(DeclarationName Name, NestedNameSpecifier *NNS = nullptr, 91 NestedNameSpecifier *getCorrectionSpecifier() const { in getCorrectionSpecifier() 95 void setCorrectionSpecifier(NestedNameSpecifier *NNS) { in setCorrectionSpecifier() 267 NestedNameSpecifier *CorrectionNameSpec = nullptr; 286 NestedNameSpecifier *TypoNNS = nullptr) 323 void setTypoNNS(NestedNameSpecifier *NNS) { TypoNNS = NNS; } in setTypoNNS() 349 NestedNameSpecifier *TypoNNS; [all …]
|
| H A D | SemaInternal.h | 215 NestedNameSpecifier* NameSpecifier; 235 NestedNameSpecifier *&NNS); 282 NestedNameSpecifier *NNS = nullptr, bool isKeyword = false);
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaCXXScopeSpec.cpp | 141 case NestedNameSpecifier::Identifier: in computeDeclContext() 144 case NestedNameSpecifier::Namespace: in computeDeclContext() 150 case NestedNameSpecifier::TypeSpec: in computeDeclContext() 157 case NestedNameSpecifier::Global: in computeDeclContext() 160 case NestedNameSpecifier::Super: in computeDeclContext() 1011 NestedNameSpecifier *NNS; 1067 case NestedNameSpecifier::Global: in ShouldEnterDeclaratorScope() 1068 case NestedNameSpecifier::Namespace: in ShouldEnterDeclaratorScope() 1074 case NestedNameSpecifier::Identifier: in ShouldEnterDeclaratorScope() 1075 case NestedNameSpecifier::TypeSpec: in ShouldEnterDeclaratorScope() [all …]
|
| /llvm-project-15.0.7/clang/lib/Index/ |
| H A D | IndexTypeSourceInfo.cpp | 211 const NestedNameSpecifier *NNS = DNT->getQualifier(); in VisitDependentNameTypeLoc() 283 case NestedNameSpecifier::Identifier: in indexNestedNameSpecifierLoc() 284 case NestedNameSpecifier::Global: in indexNestedNameSpecifierLoc() 285 case NestedNameSpecifier::Super: in indexNestedNameSpecifierLoc() 288 case NestedNameSpecifier::Namespace: in indexNestedNameSpecifierLoc() 292 case NestedNameSpecifier::NamespaceAlias: in indexNestedNameSpecifierLoc() 297 case NestedNameSpecifier::TypeSpec: in indexNestedNameSpecifierLoc() 298 case NestedNameSpecifier::TypeSpecWithTemplate: in indexNestedNameSpecifierLoc()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | HeuristicResolver.cpp | 104 if (NestedNameSpecifier *NNS = ME->getQualifier()) { in resolveMemberExpr() 226 const NestedNameSpecifier *NNS) const { in resolveNestedNameSpecifierToType() 235 case NestedNameSpecifier::TypeSpec: in resolveNestedNameSpecifierToType() 236 case NestedNameSpecifier::TypeSpecWithTemplate: in resolveNestedNameSpecifierToType() 238 case NestedNameSpecifier::Identifier: { in resolveNestedNameSpecifierToType()
|
| H A D | DumpAST.cpp | 153 case NestedNameSpecifier::X: \ in getKind() 274 case NestedNameSpecifier::Identifier: in getDetail() 276 case NestedNameSpecifier::Namespace: in getDetail() 278 case NestedNameSpecifier::NamespaceAlias: in getDetail() 386 bool TraverseNestedNameSpecifier(NestedNameSpecifier *) { return true; } in TraverseNestedNameSpecifier() argument 412 else if (const auto *NNS = N.get<NestedNameSpecifier>()) in dumpAST() 413 V.TraverseNestedNameSpecifier(const_cast<NestedNameSpecifier *>(NNS)); in dumpAST()
|
| H A D | FindTarget.cpp | 467 void add(const NestedNameSpecifier *NNS, RelSet Flags) { in add() 472 case NestedNameSpecifier::Namespace: in add() 475 case NestedNameSpecifier::NamespaceAlias: in add() 478 case NestedNameSpecifier::Identifier: in add() 484 case NestedNameSpecifier::TypeSpec: in add() 485 case NestedNameSpecifier::TypeSpecWithTemplate: in add() 488 case NestedNameSpecifier::Global: in add() 491 case NestedNameSpecifier::Super: in add() 539 else if (const NestedNameSpecifier *NNS = N.get<NestedNameSpecifier>()) in allTargetDecls()
|
| H A D | AST.cpp | 113 llvm::function_ref<bool(NestedNameSpecifier *)> IsVisible) { in getQualification() 114 std::vector<const NestedNameSpecifier *> Parents; in getQualification() 122 NestedNameSpecifier *NNS = nullptr; in getQualification() 127 NNS = NestedNameSpecifier::Create(Context, nullptr, false, in getQualification() 131 NNS = NestedNameSpecifier::Create(Context, nullptr, NSD); in getQualification() 645 [&](NestedNameSpecifier *NNS) { in getQualification() 646 if (NNS->getKind() != NestedNameSpecifier::Namespace) in getQualification() 666 [&](NestedNameSpecifier *NNS) { in getQualification()
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/ |
| H A D | Lookup.h | 24 class NestedNameSpecifier; variable 41 std::string replaceNestedName(const NestedNameSpecifier *Use,
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/ |
| H A D | Lookup.cpp | 112 static bool isFullyQualified(const NestedNameSpecifier *NNS) { in isFullyQualified() 114 if (NNS->getKind() == NestedNameSpecifier::Global) in isFullyQualified() 185 std::string tooling::replaceNestedName(const NestedNameSpecifier *Use, in replaceNestedName()
|
| /llvm-project-15.0.7/clang/lib/ExtractAPI/ |
| H A D | DeclarationFragments.cpp | 92 DeclarationFragmentsBuilder::getFragmentsForNNS(const NestedNameSpecifier *NNS, in getFragmentsForNNS() 100 case NestedNameSpecifier::Identifier: in getFragmentsForNNS() 105 case NestedNameSpecifier::Namespace: { in getFragmentsForNNS() 116 case NestedNameSpecifier::NamespaceAlias: { in getFragmentsForNNS() 125 case NestedNameSpecifier::Global: in getFragmentsForNNS() 129 case NestedNameSpecifier::Super: in getFragmentsForNNS() 134 case NestedNameSpecifier::TypeSpecWithTemplate: in getFragmentsForNNS() 141 case NestedNameSpecifier::TypeSpec: { in getFragmentsForNNS() 237 if (const NestedNameSpecifier *NNS = ET->getQualifier()) in getFragmentsForType()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/ |
| H A D | ASTMatchFinder.cpp | 122 else if (const NestedNameSpecifier *NNS = in findMatch() 123 DynNode.get<NestedNameSpecifier>()) in findMatch() 220 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) { in TraverseNestedNameSpecifier() 346 bool baseTraverse(const NestedNameSpecifier &NNS) { in baseTraverse() 348 const_cast<NestedNameSpecifier*>(&NNS)); in baseTraverse() 503 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS); 703 } else if (auto *N = Node.get<NestedNameSpecifier>()) { in match() 1090 void matchDispatch(const NestedNameSpecifier *Node) { in matchDispatch() 1091 matchWithoutFilter(*Node, Matchers->NestedNameSpecifier); in matchDispatch() 1595 Matchers.NestedNameSpecifier.emplace_back(NodeMatch, Action); in addMatcher() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | MoveForwardingReferenceCheck.cpp | 47 NestedNameSpecifier *NNS = Callee->getQualifier(); in replaceMoveWithForward() 59 } else if (NNS->getPrefix()->getKind() == NestedNameSpecifier::Global) { in replaceMoveWithForward()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRLocFinder.cpp | 114 NestedNameSpecifierLoc NestedNameSpecifier = in StartLocationForType() local 116 if (NestedNameSpecifier.getNestedNameSpecifier()) in StartLocationForType() 117 return NestedNameSpecifier.getBeginLoc(); in StartLocationForType() 140 NestedNameSpecifier *GetNestedNameForType(TypeLoc TL) { in GetNestedNameForType() 173 const NestedNameSpecifier *Specifier;
|
| /llvm-project-15.0.7/clang/unittests/Tooling/Syntax/ |
| H A D | TreeTest.cpp | 327 NodeKind::NestedNameSpecifier)); in TEST_P() 351 NodeKind::NestedNameSpecifier)); in TEST_P() 375 NodeKind::NestedNameSpecifier)); in TEST_P() 399 NodeKind::NestedNameSpecifier)); in TEST_P()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | AddUsing.cpp | 99 bool isFullyQualified(const NestedNameSpecifier *NNS) { in isFullyQualified() 102 return NNS->getKind() == NestedNameSpecifier::Global || in isFullyQualified() 215 const NestedNameSpecifier &Namespace) { in isNamespaceForbidden()
|