Home
last modified time | relevance | path

Searched refs:NestedNameSpecifier (Results 1 – 25 of 92) sorted by relevance

1234

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DNestedNameSpecifier.cpp38 NestedNameSpecifier *
39 NestedNameSpecifier::FindOrInsert(const ASTContext &Context, in FindOrInsert()
40 const NestedNameSpecifier &Mockup) { in FindOrInsert()
45 NestedNameSpecifier *NNS in FindOrInsert()
49 new (Context, alignof(NestedNameSpecifier)) NestedNameSpecifier(Mockup); in FindOrInsert()
56 NestedNameSpecifier *NestedNameSpecifier::Create(const ASTContext &Context, in Create()
57 NestedNameSpecifier *Prefix, in Create()
62 NestedNameSpecifier Mockup; in Create()
69 NestedNameSpecifier *
70 NestedNameSpecifier::Create(const ASTContext &Context, in Create()
[all …]
H A DQualTypeNames.cpp27 static NestedNameSpecifier *createNestedNameSpecifier(
42 static NestedNameSpecifier *createNestedNameSpecifier(
46 static NestedNameSpecifier *createNestedNameSpecifierForScopeOf(
50 static NestedNameSpecifier *getFullyQualifiedNestedNameSpecifier(
51 const ASTContext &Ctx, NestedNameSpecifier *scope, bool WithGlobalNsPrefix);
57 NestedNameSpecifier *NNS = nullptr; in getFullyQualifiedTemplateName()
68 NestedNameSpecifier *QNNS = getFullyQualifiedNestedNameSpecifier( in getFullyQualifiedTemplateName()
186 static NestedNameSpecifier *createOuterNNS(const ASTContext &Ctx, const Decl *D, in createOuterNNS()
205 return NestedNameSpecifier::GlobalSpecifier(Ctx); in createOuterNNS()
211 static NestedNameSpecifier *getFullyQualifiedNestedNameSpecifier( in getFullyQualifiedNestedNameSpecifier()
[all …]
H A DTemplateName.cpp306 NestedNameSpecifier *Qualifier, IdentifierOrOverloadedOperator Name, in DependentTemplateStorage()
315 if (NestedNameSpecifier *Qualifier = getQualifier()) in getDependence()
322 if (NestedNameSpecifier *NNS = getQualifier()) in print()
366 if (NestedNameSpecifier *NNS = S->getQualifier()) in getDependence()
373 if (NestedNameSpecifier *Qualifier = S->getQualifier()) in getDependence()
446 if (NestedNameSpecifier *NNS = QTN->getQualifier(); in print()
H A DODRHash.cpp114 void ODRHash::AddNestedNameSpecifier(const NestedNameSpecifier *NNS) { in AddNestedNameSpecifier()
124 case NestedNameSpecifier::Identifier: in AddNestedNameSpecifier()
127 case NestedNameSpecifier::Namespace: in AddNestedNameSpecifier()
130 case NestedNameSpecifier::NamespaceAlias: in AddNestedNameSpecifier()
133 case NestedNameSpecifier::TypeSpec: in AddNestedNameSpecifier()
136 case NestedNameSpecifier::Global: in AddNestedNameSpecifier()
137 case NestedNameSpecifier::Super: in AddNestedNameSpecifier()
143 if (NestedNameSpecifier *NNS = Name.getQualifier()) in AddDependentTemplateName()
162 if (NestedNameSpecifier *NNS = QTN->getQualifier()) in AddTemplateName()
895 void AddNestedNameSpecifier(const NestedNameSpecifier *NNS) { in AddNestedNameSpecifier()
H A DASTTypeTraits.cpp194 else if (const NestedNameSpecifier *NNS = get<NestedNameSpecifier>()) in print()
197 if (const NestedNameSpecifier *NNS = NNSL->getNestedNameSpecifier()) in print()
H A DItaniumMangle.cpp468 bool mangleSubstitution(NestedNameSpecifier *NNS);
482 void addSubstitution(NestedNameSpecifier *NNS) { in addSubstitution()
493 void mangleUnresolvedPrefix(NestedNameSpecifier *qualifier,
495 void mangleUnresolvedName(NestedNameSpecifier *qualifier,
545 void manglePrefix(NestedNameSpecifier *qualifier);
591 NestedNameSpecifier *qualifier,
1348 void CXXNameMangler::mangleUnresolvedPrefix(NestedNameSpecifier *qualifier, in mangleUnresolvedPrefix()
1366 case NestedNameSpecifier::Global: in mangleUnresolvedPrefix()
1376 case NestedNameSpecifier::Super: in mangleUnresolvedPrefix()
1379 case NestedNameSpecifier::Namespace: in mangleUnresolvedPrefix()
[all …]
H A DDynamicRecursiveASTVisitor.cpp175 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) { in TraverseNestedNameSpecifier()
300 FORWARD_TO_BASE(TraverseNestedNameSpecifier, NestedNameSpecifier, *)
H A DASTContext.cpp4164 NestedNameSpecifier *Qualifier, in getMemberPointerType()
4168 Qualifier = NestedNameSpecifier::Create(*this, /*Prefix=*/nullptr, in getMemberPointerType()
4183 NestedNameSpecifier *CanonicalQualifier = [&] { in getMemberPointerType()
4186 NestedNameSpecifier *R = NestedNameSpecifier::Create( in getMemberPointerType()
5812 NestedNameSpecifier *NNS, in getElaboratedType()
5903 NestedNameSpecifier *NNS, in getDependentNameType()
5915 NestedNameSpecifier *CanonNNS = getCanonicalNestedNameSpecifier(NNS); in getDependentNameType()
5954 NestedNameSpecifier *NNS = Name.getQualifier(); in getDependentTemplateSpecializationType()
5960 NestedNameSpecifier *CanonNNS = getCanonicalNestedNameSpecifier(NNS); in getDependentTemplateSpecializationType()
7174 NestedNameSpecifier *Qualifier = DTN->getQualifier(); in getCanonicalTemplateName()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DNestedNameSpecifier.h50 class NestedNameSpecifier : public llvm::FoldingSetNode {
64 llvm::PointerIntPair<NestedNameSpecifier *, 2, StoredSpecifierKind> Prefix;
101 NestedNameSpecifier() : Prefix(nullptr, StoredIdentifier) {} in NestedNameSpecifier() function
105 NestedNameSpecifier(const NestedNameSpecifier &Other) = default;
109 static NestedNameSpecifier *FindOrInsert(const ASTContext &Context,
110 const NestedNameSpecifier &Mockup);
113 NestedNameSpecifier &operator=(const NestedNameSpecifier &) = delete;
120 static NestedNameSpecifier *Create(const ASTContext &Context,
121 NestedNameSpecifier *Prefix,
125 static NestedNameSpecifier *Create(const ASTContext &Context,
[all …]
H A DAbstractBasicReader.h255 NestedNameSpecifier *readNestedNameSpecifier() { in readNestedNameSpecifier()
259 NestedNameSpecifier *cur = nullptr; in readNestedNameSpecifier()
265 case NestedNameSpecifier::Identifier: in readNestedNameSpecifier()
266 cur = NestedNameSpecifier::Create(ctx, cur, in readNestedNameSpecifier()
270 case NestedNameSpecifier::Namespace: in readNestedNameSpecifier()
271 cur = NestedNameSpecifier::Create(ctx, cur, in readNestedNameSpecifier()
275 case NestedNameSpecifier::NamespaceAlias: in readNestedNameSpecifier()
276 cur = NestedNameSpecifier::Create(ctx, cur, in readNestedNameSpecifier()
280 case NestedNameSpecifier::TypeSpec: in readNestedNameSpecifier()
281 cur = NestedNameSpecifier::Create(ctx, cur, in readNestedNameSpecifier()
[all …]
H A DAbstractBasicWriter.h232 void writeNestedNameSpecifier(NestedNameSpecifier *NNS) { in writeNestedNameSpecifier()
235 SmallVector<NestedNameSpecifier *, 8> nestedNames; in writeNestedNameSpecifier()
246 NestedNameSpecifier::SpecifierKind kind = NNS->getKind(); in writeNestedNameSpecifier()
249 case NestedNameSpecifier::Identifier: in writeNestedNameSpecifier()
253 case NestedNameSpecifier::Namespace: in writeNestedNameSpecifier()
257 case NestedNameSpecifier::NamespaceAlias: in writeNestedNameSpecifier()
261 case NestedNameSpecifier::TypeSpec: in writeNestedNameSpecifier()
265 case NestedNameSpecifier::Global: in writeNestedNameSpecifier()
269 case NestedNameSpecifier::Super: in writeNestedNameSpecifier()
H A DTemplateName.h35 class NestedNameSpecifier; variable
506 llvm::PointerIntPair<NestedNameSpecifier *, 1> Qualifier;
515 QualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword, in QualifiedTemplateName()
524 NestedNameSpecifier *getQualifier() const { return Qualifier.getPointer(); } in getQualifier()
537 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile()
588 llvm::PointerIntPair<NestedNameSpecifier *, 1, bool> Qualifier;
594 DependentTemplateStorage(NestedNameSpecifier *Qualifier,
599 NestedNameSpecifier *getQualifier() const { return Qualifier.getPointer(); } in getQualifier()
612 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile()
H A DODRHash.h31 class NestedNameSpecifier; variable
96 void AddNestedNameSpecifier(const NestedNameSpecifier *NNS);
H A DASTImporter.h407 llvm::Expected<NestedNameSpecifier *> Import(NestedNameSpecifier *FromNNS);
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp57 NestedNameSpecifier *NNS = SS.getScopeRep(); in computeDeclContext()
136 case NestedNameSpecifier::Identifier: in computeDeclContext()
139 case NestedNameSpecifier::Namespace: in computeDeclContext()
142 case NestedNameSpecifier::NamespaceAlias: in computeDeclContext()
145 case NestedNameSpecifier::TypeSpec: { in computeDeclContext()
151 case NestedNameSpecifier::Global: in computeDeclContext()
154 case NestedNameSpecifier::Super: in computeDeclContext()
168 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) { in getCurrentInstantiationOf()
354 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) { in FindFirstQualifierInScope()
361 if (NNS->getKind() != NestedNameSpecifier::Identifier) in FindFirstQualifierInScope()
[all …]
H A DHeuristicResolver.cpp47 QualType resolveNestedNameSpecifierToType(const NestedNameSpecifier *NNS);
295 if (NestedNameSpecifier *NNS = ME->getQualifier()) { in resolveMemberExpr()
402 const NestedNameSpecifier *NNS) { in resolveNestedNameSpecifierToType()
411 case NestedNameSpecifier::TypeSpec: in resolveNestedNameSpecifierToType()
413 case NestedNameSpecifier::Identifier: { in resolveNestedNameSpecifierToType()
593 const NestedNameSpecifier *NNS) const { in resolveNestedNameSpecifierToType()
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp265 case NestedNameSpecifier::Identifier: in indexNestedNameSpecifierLoc()
266 case NestedNameSpecifier::Global: in indexNestedNameSpecifierLoc()
267 case NestedNameSpecifier::Super: in indexNestedNameSpecifierLoc()
270 case NestedNameSpecifier::Namespace: in indexNestedNameSpecifierLoc()
274 case NestedNameSpecifier::NamespaceAlias: in indexNestedNameSpecifierLoc()
279 case NestedNameSpecifier::TypeSpec: in indexNestedNameSpecifierLoc()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DLookup.h24 class NestedNameSpecifier; variable
41 std::string replaceNestedName(const NestedNameSpecifier *Use,
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp124 else if (const NestedNameSpecifier *NNS = in findMatch()
125 DynNode.get<NestedNameSpecifier>()) in findMatch()
222 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) { in TraverseNestedNameSpecifier()
349 bool baseTraverse(const NestedNameSpecifier &NNS) { in baseTraverse()
351 const_cast<NestedNameSpecifier*>(&NNS)); in baseTraverse()
506 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS);
716 } else if (auto *N = Node.get<NestedNameSpecifier>()) { in match()
787 const QualType *, const TypeLoc *, const NestedNameSpecifier *, \
912 } else if (const auto *NNS = State.getNode<NestedNameSpecifier>()) { in dumpNodeFromState()
1103 void matchDispatch(const NestedNameSpecifier *Node) { in matchDispatch()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp113 NestedNameSpecifierLoc NestedNameSpecifier = in StartLocationForType() local
115 if (NestedNameSpecifier.getNestedNameSpecifier()) in StartLocationForType()
116 return NestedNameSpecifier.getBeginLoc(); in StartLocationForType()
139 NestedNameSpecifier *GetNestedNameForType(TypeLoc TL) { in GetNestedNameForType()
172 const NestedNameSpecifier *Specifier;
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaInternal.h211 NestedNameSpecifier* NameSpecifier;
231 NestedNameSpecifier *&NNS);
278 NestedNameSpecifier *NNS = nullptr, bool isKeyword = false);
H A DHeuristicResolver.h71 resolveNestedNameSpecifierToType(const NestedNameSpecifier *NNS) const;
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Syntax/
H A DNodes.h116 class NestedNameSpecifier final : public List {
118 NestedNameSpecifier() : List(NodeKind::NestedNameSpecifier) {} in NestedNameSpecifier() function
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DTree.cpp400 case NodeKind::NestedNameSpecifier: in getDelimiterTokenKind()
414 case NodeKind::NestedNameSpecifier: in getTerminationKind()
428 case NodeKind::NestedNameSpecifier: in canBeEmpty()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXX.cpp282 NestedNameSpecifier *Qual, in BuildAppleKextVirtualCall()
284 assert((Qual->getKind() == NestedNameSpecifier::TypeSpec) && in BuildAppleKextVirtualCall()

1234