Home
last modified time | relevance | path

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

12345

/llvm-project/clang/lib/AST/
H A DNestedNameSpecifier.cpp1 //===- NestedNameSpecifier.cpp - C++ nested name specifiers ---------------===//
9 // This file defines the NestedNameSpecifier class, which represents
14 #include "clang/AST/NestedNameSpecifier.h"
38 NestedNameSpecifier *
39 NestedNameSpecifier::FindOrInsert(const ASTContext &Context,
40 const NestedNameSpecifier &Mockup) {
45 NestedNameSpecifier *NNS in FindOrInsert()
49 new (Context, alignof(NestedNameSpecifier)) NestedNameSpecifier(Mockup); in FindOrInsert()
56 NestedNameSpecifier *NestedNameSpecifie in FindOrInsert()
[all...]
H A DQualTypeNames.cpp18 /// Create a NestedNameSpecifier for Namesp and its enclosing
22 /// \param[in] Namesp - the NamespaceDecl for which a NestedNameSpecifier
26 static NestedNameSpecifier *createNestedNameSpecifier(
31 /// Create a NestedNameSpecifier for TagDecl and its enclosing
35 /// \param[in] TD - the TagDecl for which a NestedNameSpecifier is
41 static NestedNameSpecifier *createNestedNameSpecifier(
45 static NestedNameSpecifier *createNestedNameSpecifierForScopeOf(
49 static NestedNameSpecifier *getFullyQualifiedNestedNameSpecifier(
50 const ASTContext &Ctx, NestedNameSpecifier *scope, bool WithGlobalNsPrefix);
56 NestedNameSpecifier *NN
[all...]
H A DODRHash.cpp18 #include "clang/AST/NestedNameSpecifier.h"
111 void ODRHash::AddNestedNameSpecifier(const NestedNameSpecifier *NNS) {
121 case NestedNameSpecifier::Identifier: in AddNestedNameSpecifier()
124 case NestedNameSpecifier::Namespace: in AddNestedNameSpecifier()
127 case NestedNameSpecifier::NamespaceAlias: in AddNestedNameSpecifier()
130 case NestedNameSpecifier::TypeSpec: in AddNestedNameSpecifier()
131 case NestedNameSpecifier::TypeSpecWithTemplate: in AddNestedNameSpecifier()
134 case NestedNameSpecifier::Global: in AddNestedNameSpecifier()
135 case NestedNameSpecifier::Super: in AddNestedNameSpecifier()
150 if (NestedNameSpecifier *NN in AddTemplateName()
[all...]
H A DASTTypeTraits.cpp194 else if (const NestedNameSpecifier *NNS = get<NestedNameSpecifier>()) in print()
197 if (const NestedNameSpecifier *NNS = NNSL->getNestedNameSpecifier()) in print()
H A DTemplateName.cpp19 #include "clang/AST/NestedNameSpecifier.h"
309 if (NestedNameSpecifier *NNS = S->getQualifier()) in print()
382 if (NestedNameSpecifier *NNS = QTN->getQualifier();
404 if (NestedNameSpecifier *NNS = DTN->getQualifier())
/llvm-project/clang/include/clang/AST/
H A DNestedNameSpecifier.h50 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 &operator=(const NestedNameSpecifier &) = delete;
125 static NestedNameSpecifier *Create(const ASTContext &Context,
126 NestedNameSpecifier *Prefix,
130 static NestedNameSpecifier *Create(const ASTContext &Context,
[all …]
H A DAbstractBasicReader.h256 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::TypeSpecWithTemplate: in readNestedNameSpecifier()
[all …]
H A DAbstractBasicWriter.h233 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::Super: in writeNestedNameSpecifier()
H A DTemplateName.h17 #include "clang/AST/NestedNameSpecifier.h"
33 class NestedNameSpecifier; variable
501 llvm::PointerIntPair<NestedNameSpecifier *, 1> Qualifier;
510 QualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword,
519 NestedNameSpecifier *getQualifier() const { return Qualifier.getPointer(); }
532 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in DependentTemplateName()
557 llvm::PointerIntPair<NestedNameSpecifier *, 1, bool> Qualifier;
580 DependentTemplateName(NestedNameSpecifier *Qualifier, in Profile()
585 DependentTemplateName(NestedNameSpecifier *Qualifier, in Profile()
591 DependentTemplateName(NestedNameSpecifier *Qualifie
[all...]
H A DODRHash.h31 class NestedNameSpecifier; variable
96 void AddNestedNameSpecifier(const NestedNameSpecifier *NNS);
/llvm-project/clang/include/clang/Sema/
H A DTypoCorrection.h38 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 DSemaInternal.h211 NestedNameSpecifier* NameSpecifier;
231 NestedNameSpecifier *&NNS);
238 /// the corresponding NestedNameSpecifier and its distance in the process.
278 NestedNameSpecifier *NNS = nullptr, bool isKeyword = false);
/llvm-project/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp17 #include "clang/AST/NestedNameSpecifier.h"
58 NestedNameSpecifier *NNS = SS.getScopeRep(); in computeDeclContext()
139 case NestedNameSpecifier::Identifier: in computeDeclContext()
142 case NestedNameSpecifier::Namespace: in computeDeclContext()
145 case NestedNameSpecifier::NamespaceAlias: in computeDeclContext()
148 case NestedNameSpecifier::TypeSpec: in computeDeclContext()
149 case NestedNameSpecifier::TypeSpecWithTemplate: { in computeDeclContext()
155 case NestedNameSpecifier::Global: in computeDeclContext()
158 case NestedNameSpecifier::Super: in computeDeclContext()
162 llvm_unreachable("Invalid NestedNameSpecifier in computeDeclContext()
[all...]
/llvm-project/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp211 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/clang/include/clang/Tooling/Refactoring/
H A DLookup.h24 class NestedNameSpecifier; variable
41 std::string replaceNestedName(const NestedNameSpecifier *Use,
/llvm-project/clang-tools-extra/clangd/
H A DHeuristicResolver.cpp
H A DDumpAST.cpp16 #include "clang/AST/NestedNameSpecifier.h"
155 case NestedNameSpecifier::X: \ in getKind()
282 case NestedNameSpecifier::Identifier: in getDetail()
284 case NestedNameSpecifier::Namespace: in getDetail()
286 case NestedNameSpecifier::NamespaceAlias: in getDetail()
401 bool TraverseNestedNameSpecifier(NestedNameSpecifier *) { return true; } in TraverseType()
427 else if (const auto *NNS = N.get<NestedNameSpecifier>()) in dumpAST()
428 V.TraverseNestedNameSpecifier(const_cast<NestedNameSpecifier *>(NNS)); in dumpAST()
400 TraverseNestedNameSpecifier(NestedNameSpecifier *) TraverseNestedNameSpecifier() argument
H A DFindTarget.cpp24 #include "clang/AST/NestedNameSpecifier.h"
486 void add(const NestedNameSpecifier *NNS, RelSet Flags) { in add()
491 case NestedNameSpecifier::Namespace: in add()
494 case NestedNameSpecifier::NamespaceAlias: in add()
497 case NestedNameSpecifier::Identifier: in add()
502 case NestedNameSpecifier::TypeSpec: in add()
503 case NestedNameSpecifier::TypeSpecWithTemplate: in add()
506 case NestedNameSpecifier::Global: in add()
509 case NestedNameSpecifier::Super: in add()
513 llvm_unreachable("unhandled NestedNameSpecifier in add()
[all...]
H A DAST.cpp21 #include "clang/AST/NestedNameSpecifier.h"
108 llvm::function_ref<bool(NestedNameSpecifier *)> IsVisible) { in getQualification()
109 std::vector<const NestedNameSpecifier *> Parents; in getQualification()
117 NestedNameSpecifier *NNS = nullptr; in getQualification()
122 NNS = NestedNameSpecifier::Create(Context, nullptr, false, in getQualification()
126 NNS = NestedNameSpecifier::Create(Context, nullptr, NSD); in getQualification()
668 [&](NestedNameSpecifier *NNS) { in getQualification()
669 if (NNS->getKind() != NestedNameSpecifier::Namespace) in getQualification()
689 [&](NestedNameSpecifier *NNS) { in getQualification()
/llvm-project/clang/lib/Tooling/Refactoring/
H A DLookup.cpp112 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/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);
715 } else if (auto *N = Node.get<NestedNameSpecifier>()) { in match()
786 const QualType *, const TypeLoc *, const NestedNameSpecifier *, \
911 } else if (const auto *NNS = State.getNode<NestedNameSpecifier>()) { in dumpNodeFromState()
1102 void matchDispatch(const NestedNameSpecifier *Nod in matchDispatch()
[all...]
/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp114 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/clang-tools-extra/clang-tidy/bugprone/
H A DMoveForwardingReferenceCheck.cpp45 NestedNameSpecifier *NNS = Callee->getQualifier(); in replaceMoveWithForward()
57 } else if (NNS->getPrefix()->getKind() == NestedNameSpecifier::Global) { in replaceMoveWithForward()
/llvm-project/clang/unittests/Tooling/Syntax/
H A DTreeTest.cpp332 NodeKind::NestedNameSpecifier));
356 NodeKind::NestedNameSpecifier));
380 NodeKind::NestedNameSpecifier));
404 NodeKind::NestedNameSpecifier));
/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
H A DAddUsing.cpp118 bool isFullyQualified(const NestedNameSpecifier *NNS) { in isFullyQualified()
121 return NNS->getKind() == NestedNameSpecifier::Global || in isFullyQualified()
234 const NestedNameSpecifier &Namespace) { in isNamespaceForbidden()

12345