| /freebsd-src/contrib/llvm-project/clang/lib/AST/ |
| H A D | NestedNameSpecifier.cpp | 1 //===- NestedNameSpecifier.cpp - C++ nested name specifiers ---------------===// 9 // This file defines the NestedNameSpecifier class, which represents 14 #include "clang/AST/NestedNameSpecifier.h" 40 NestedNameSpecifier * 41 NestedNameSpecifier::FindOrInsert(const ASTContext &Context, in FindOrInsert() 42 const NestedNameSpecifier &Mockup) { in FindOrInsert() 47 NestedNameSpecifier *NNS in FindOrInsert() 51 new (Context, alignof(NestedNameSpecifier)) NestedNameSpecifier(Mockup); in FindOrInsert() 58 NestedNameSpecifier *NestedNameSpecifie [all...] |
| H A D | QualTypeNames.cpp | 22 /// Create a NestedNameSpecifier for Namesp and its enclosing 26 /// \param[in] Namesp - the NamespaceDecl for which a NestedNameSpecifier 30 static NestedNameSpecifier *createNestedNameSpecifier( 35 /// Create a NestedNameSpecifier for TagDecl and its enclosing 39 /// \param[in] TD - the TagDecl for which a NestedNameSpecifier is 45 static NestedNameSpecifier *createNestedNameSpecifier( 49 static NestedNameSpecifier *createNestedNameSpecifierForScopeOf( 53 static NestedNameSpecifier *getFullyQualifiedNestedNameSpecifier( 54 const ASTContext &Ctx, NestedNameSpecifier *scope, bool WithGlobalNsPrefix); 60 NestedNameSpecifier *NN in getFullyQualifiedTemplateName() [all...] |
| H A D | ODRHash.cpp | 18 #include "clang/AST/NestedNameSpecifier.h" 112 void ODRHash::AddNestedNameSpecifier(const NestedNameSpecifier *NNS) { in AddNestedNameSpecifier() 122 case NestedNameSpecifier::Identifier: in AddNestedNameSpecifier() 125 case NestedNameSpecifier::Namespace: in AddNestedNameSpecifier() 128 case NestedNameSpecifier::NamespaceAlias: in AddNestedNameSpecifier() 131 case NestedNameSpecifier::TypeSpec: in AddNestedNameSpecifier() 132 case NestedNameSpecifier::TypeSpecWithTemplate: in AddNestedNameSpecifier() 135 case NestedNameSpecifier::Global: in AddNestedNameSpecifier() 136 case NestedNameSpecifier::Super: in AddNestedNameSpecifier() 151 if (NestedNameSpecifier *NN in AddTemplateName() [all...] |
| H A D | ASTTypeTraits.cpp | 21 #include "clang/AST/NestedNameSpecifier.h" 40 {NKI_None, "NestedNameSpecifier"}, 194 else if (const NestedNameSpecifier *NNS = get<NestedNameSpecifier>()) in print() 197 if (const NestedNameSpecifier *NNS = NNSL->getNestedNameSpecifier()) in print()
|
| H A D | ASTStructuralEquivalence.cpp | 75 #include "clang/AST/NestedNameSpecifier.h" 111 NestedNameSpecifier *NNS1, 112 NestedNameSpecifier *NNS2); 543 NestedNameSpecifier *NNS1, in IsStructurallyEquivalent() 544 NestedNameSpecifier *NNS2) { in IsStructurallyEquivalent() 548 NestedNameSpecifier *Prefix1 = NNS1->getPrefix(), in IsStructurallyEquivalent() 558 case NestedNameSpecifier::Identifier: in IsStructurallyEquivalent() 561 case NestedNameSpecifier::Namespace: in IsStructurallyEquivalent() 564 case NestedNameSpecifier::NamespaceAlias: in IsStructurallyEquivalent() 567 case NestedNameSpecifier in IsStructurallyEquivalent() [all...] |
| H A D | ItaniumMangle.cpp | 475 bool mangleSubstitution(NestedNameSpecifier *NNS); 489 void addSubstitution(NestedNameSpecifier *NNS) { in addSubstitution() 500 void mangleUnresolvedPrefix(NestedNameSpecifier *qualifier, 502 void mangleUnresolvedName(NestedNameSpecifier *qualifier, 551 void manglePrefix(NestedNameSpecifier *qualifier); 596 NestedNameSpecifier *qualifier, 1330 void CXXNameMangler::mangleUnresolvedPrefix(NestedNameSpecifier *qualifier, in mangleUnresolvedPrefix() 1348 case NestedNameSpecifier::Global: in mangleUnresolvedPrefix() 1358 case NestedNameSpecifier::Super: in mangleUnresolvedPrefix() 1361 case NestedNameSpecifier in mangleUnresolvedPrefix() [all...] |
| /freebsd-src/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | NestedNameSpecifier.h | 1 //===- NestedNameSpecifier.h - C++ nested name specifiers -------*- C++ -*-===// 9 // This file defines the NestedNameSpecifier class, which represents 50 class NestedNameSpecifier : public llvm::FoldingSetNode { 65 llvm::PointerIntPair<NestedNameSpecifier *, 2, StoredSpecifierKind> Prefix; 106 NestedNameSpecifier() : Prefix(nullptr, StoredIdentifier) {} in NestedNameSpecifier() function 110 NestedNameSpecifier(const NestedNameSpecifier &Other) = default; 114 static NestedNameSpecifier *FindOrInsert(const ASTContext &Context, 115 const NestedNameSpecifier &Mockup); 118 NestedNameSpecifier [all...] |
| H A D | AbstractBasicReader.h | 256 NestedNameSpecifier *readNestedNameSpecifier() { in readNestedNameSpecifier() 260 NestedNameSpecifier *cur = nullptr; in readNestedNameSpecifier() 266 case NestedNameSpecifier::Identifier: in readNestedNameSpecifier() 267 cur = NestedNameSpecifier::Create(ctx, cur, in readNestedNameSpecifier() 271 case NestedNameSpecifier::Namespace: in readNestedNameSpecifier() 272 cur = NestedNameSpecifier::Create(ctx, cur, in readNestedNameSpecifier() 276 case NestedNameSpecifier::NamespaceAlias: in readNestedNameSpecifier() 277 cur = NestedNameSpecifier::Create(ctx, cur, in readNestedNameSpecifier() 281 case NestedNameSpecifier::TypeSpec: in readNestedNameSpecifier() 282 case NestedNameSpecifier in readNestedNameSpecifier() [all...] |
| H A D | AbstractBasicWriter.h | 233 void writeNestedNameSpecifier(NestedNameSpecifier *NNS) { in writeNestedNameSpecifier() 236 SmallVector<NestedNameSpecifier *, 8> nestedNames; in writeNestedNameSpecifier() 247 NestedNameSpecifier::SpecifierKind kind = NNS->getKind(); in writeNestedNameSpecifier() 250 case NestedNameSpecifier::Identifier: in writeNestedNameSpecifier() 254 case NestedNameSpecifier::Namespace: in writeNestedNameSpecifier() 258 case NestedNameSpecifier::NamespaceAlias: in writeNestedNameSpecifier() 262 case NestedNameSpecifier::TypeSpec: in writeNestedNameSpecifier() 263 case NestedNameSpecifier::TypeSpecWithTemplate: in writeNestedNameSpecifier() 267 case NestedNameSpecifier::Global: in writeNestedNameSpecifier() 271 case NestedNameSpecifier [all...] |
| H A D | TemplateName.h | 17 #include "clang/AST/NestedNameSpecifier.h" 33 class NestedNameSpecifier; variable 442 llvm::PointerIntPair<NestedNameSpecifier *, 1> Qualifier; 451 QualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword, in QualifiedTemplateName() 460 NestedNameSpecifier *getQualifier() const { return Qualifier.getPointer(); } 473 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() 498 llvm::PointerIntPair<NestedNameSpecifier *, 1, bool> Qualifier; 521 DependentTemplateName(NestedNameSpecifier *Qualifier, in DependentTemplateName() 526 DependentTemplateName(NestedNameSpecifier *Qualifier, in DependentTemplateName() 532 DependentTemplateName(NestedNameSpecifier *Qualifie in DependentTemplateName() [all...] |
| H A D | ODRHash.h | 31 class NestedNameSpecifier; variable 96 void AddNestedNameSpecifier(const NestedNameSpecifier *NNS);
|
| H A D | ASTContext.h | 81 class NestedNameSpecifier; 187 friend class NestedNameSpecifier; 272 /// This set is managed by the NestedNameSpecifier class. 273 mutable llvm::FoldingSet<NestedNameSpecifier> NestedNameSpecifiers; 274 mutable NestedNameSpecifier *GlobalNestedNameSpecifier = nullptr; 1707 NestedNameSpecifier *NNS, QualType NamedType, 1710 NestedNameSpecifier *NNS, 1715 ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, 1718 ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, 2267 TemplateName getQualifiedTemplateName(NestedNameSpecifier *NN 80 class NestedNameSpecifier; global() variable 183 friend class NestedNameSpecifier; global() variable [all...] |
| /freebsd-src/contrib/llvm-project/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 | 211 NestedNameSpecifier* NameSpecifier; 231 NestedNameSpecifier *&NNS); 238 /// the corresponding NestedNameSpecifier and its distance in the process. 278 NestedNameSpecifier *NNS = nullptr, bool isKeyword = false); in end()
|
| /freebsd-src/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaCXXScopeSpec.cpp | 17 #include "clang/AST/NestedNameSpecifier.h" 59 NestedNameSpecifier *NNS = SS.getScopeRep(); in computeDeclContext() 140 case NestedNameSpecifier::Identifier: in computeDeclContext() 143 case NestedNameSpecifier::Namespace: in computeDeclContext() 146 case NestedNameSpecifier::NamespaceAlias: in computeDeclContext() 149 case NestedNameSpecifier::TypeSpec: in computeDeclContext() 150 case NestedNameSpecifier::TypeSpecWithTemplate: { in computeDeclContext() 156 case NestedNameSpecifier::Global: in computeDeclContext() 159 case NestedNameSpecifier::Super: in computeDeclContext() 163 llvm_unreachable("Invalid NestedNameSpecifier in computeDeclContext() [all...] |
| H A D | SemaLookup.cpp | 2669 if (NNS && NNS->getKind() == NestedNameSpecifier::Super) in LookupQualifiedName() 2708 if (NestedNameSpecifier *NNS = SS->getScopeRep(); 2709 NNS->getKind() == NestedNameSpecifier::Super) 4450 // the given NestedNameSpecifier (i.e. given a NestedNameSpecifier "foo::bar::", in LookupOrCreateLabel() 4453 NestedNameSpecifier *NNS, in LookupOrCreateLabel() 4455 if (NestedNameSpecifier *Prefix = NNS->getPrefix()) in LookupOrCreateLabel() 4463 case NestedNameSpecifier::Identifier: 4467 case NestedNameSpecifier::Namespace: in isCandidateViable() 4473 case NestedNameSpecifier [all...] |
| /freebsd-src/contrib/llvm-project/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()
|
| /freebsd-src/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/ |
| H A D | Lookup.h | 24 class NestedNameSpecifier; variable 41 std::string replaceNestedName(const NestedNameSpecifier *Use,
|
| /freebsd-src/contrib/llvm-project/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()
|
| /freebsd-src/contrib/llvm-project/clang/lib/ASTMatchers/ |
| H A D | ASTMatchFinder.cpp | 124 else if (const NestedNameSpecifier *NNS = in findMatch() 125 DynNode.get<NestedNameSpecifier>()) in findMatch() 222 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) { in TraverseNestedNameSpecifier() 348 bool baseTraverse(const NestedNameSpecifier &NNS) { in baseTraverse() 350 const_cast<NestedNameSpecifier*>(&NNS)); in baseTraverse() 505 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS); 714 } else if (auto *N = Node.get<NestedNameSpecifier>()) { in match() 785 const QualType *, const TypeLoc *, const NestedNameSpecifier *, \ 910 } else if (const auto *NNS = State.getNode<NestedNameSpecifier>()) { in dumpNodeFromState() 1101 void matchDispatch(const NestedNameSpecifier *Node) { in matchDispatch() [all …]
|
| /freebsd-src/contrib/llvm-project/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;
|
| /freebsd-src/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGCXX.cpp | 284 NestedNameSpecifier *Qual, in BuildAppleKextVirtualCall() 286 assert((Qual->getKind() == NestedNameSpecifier::TypeSpec) && in BuildAppleKextVirtualCall()
|
| /freebsd-src/contrib/llvm-project/clang/lib/ExtractAPI/ |
| H A D | DeclarationFragments.cpp | 209 DeclarationFragmentsBuilder::getFragmentsForNNS(const NestedNameSpecifier *NNS, in getFragmentsForNNS() 217 case NestedNameSpecifier::Identifier: in getFragmentsForNNS() 222 case NestedNameSpecifier::Namespace: { in getFragmentsForNNS() 233 case NestedNameSpecifier::NamespaceAlias: { in getFragmentsForNNS() 243 case NestedNameSpecifier::Global: in getFragmentsForNNS() 247 case NestedNameSpecifier::Super: 252 case NestedNameSpecifier::TypeSpecWithTemplate: in getFragmentsForType() 259 case NestedNameSpecifier::TypeSpec: { in getFragmentsForType() 291 if (const NestedNameSpecifier *NNS = ET->getQualifier()) in getFragmentsForType()
|
| /freebsd-src/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
| H A D | Tree.cpp | 401 case NodeKind::NestedNameSpecifier: in getDelimiterTokenKind() 415 case NodeKind::NestedNameSpecifier: in getTerminationKind() 429 case NodeKind::NestedNameSpecifier: in canBeEmpty()
|
| /freebsd-src/contrib/llvm-project/clang/include/clang/Tooling/Syntax/ |
| H A D | Nodes.h | 116 class NestedNameSpecifier final : public List { 118 NestedNameSpecifier() : List(NodeKind::NestedNameSpecifier) {} in NestedNameSpecifier() function
|