Home
last modified time | relevance | path

Searched refs:NNS (Results 1 – 25 of 53) sorted by relevance

123

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DAbstractBasicWriter.h233 void writeNestedNameSpecifier(NestedNameSpecifier *NNS) { in writeNestedNameSpecifier() argument
239 while (NNS) { in writeNestedNameSpecifier()
240 nestedNames.push_back(NNS); in writeNestedNameSpecifier()
241 NNS = NNS->getPrefix(); in writeNestedNameSpecifier()
246 NNS = nestedNames.pop_back_val(); in writeNestedNameSpecifier()
247 NestedNameSpecifier::SpecifierKind kind = NNS->getKind(); in writeNestedNameSpecifier()
251 asImpl().writeIdentifier(NNS->getAsIdentifier()); in writeNestedNameSpecifier()
255 asImpl().writeNamespaceDeclRef(NNS->getAsNamespace()); in writeNestedNameSpecifier()
259 asImpl().writeNamespaceAliasDeclRef(NNS->getAsNamespaceAlias()); in writeNestedNameSpecifier()
264 asImpl().writeQualType(QualType(NNS->getAsType(), 0)); in writeNestedNameSpecifier()
[all …]
H A DTemplateName.h451 QualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword, in QualifiedTemplateName() argument
453 : Qualifier(NNS, TemplateKeyword ? 1 : 0), UnderlyingTemplate(Template) { in QualifiedTemplateName()
473 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument
475 ID.AddPointer(NNS); in Profile()
574 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument
576 ID.AddPointer(NNS); in Profile()
581 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument
583 ID.AddPointer(NNS); in Profile()
H A DASTConcept.h149 ConceptReference(NestedNameSpecifierLoc NNS, SourceLocation TemplateKWLoc, in ConceptReference() argument
153 : NestedNameSpec(NNS), TemplateKWLoc(TemplateKWLoc), in ConceptReference()
159 Create(const ASTContext &C, NestedNameSpecifierLoc NNS,
H A DNestedNameSpecifier.h523 NestedNameSpecifier *NNS) {
524 DB.AddTaggedVal(reinterpret_cast<uint64_t>(NNS),
H A DType.h6763 NestedNameSpecifier *NNS;
6772 ElaboratedType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS,
6780 (NNS ? toSyntacticDependence(
6781 toTypeDependence(NNS->getDependence()))
6783 NNS(NNS), NamedType(NamedType) {
6793 NestedNameSpecifier *getQualifier() const { return NNS; }
6812 Profile(ID, getKeyword(), NNS, NamedType, getOwnedTagDecl());
6816 NestedNameSpecifier *NNS, QualType NamedType,
6819 ID.AddPointer(NNS);
6843 NestedNameSpecifier *NNS;
[all …]
H A DRecursiveASTVisitor.h243 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS);
249 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS);
778 NestedNameSpecifier *NNS) {
779 if (!NNS)
782 if (NNS->getPrefix())
783 TRY_TO(TraverseNestedNameSpecifier(NNS->getPrefix()));
785 switch (NNS->getKind()) {
795 TRY_TO(TraverseType(QualType(NNS->getAsType(), 0)));
803 NestedNameSpecifierLoc NNS) {
804 if (!NNS)
[all …]
H A DASTContext.h1707 NestedNameSpecifier *NNS, QualType NamedType,
1710 NestedNameSpecifier *NNS,
1715 ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS,
1718 ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS,
2267 TemplateName getQualifiedTemplateName(NestedNameSpecifier *NNS,
2271 TemplateName getDependentTemplateName(NestedNameSpecifier *NNS,
2273 TemplateName getDependentTemplateName(NestedNameSpecifier *NNS,
2742 getCanonicalNestedNameSpecifier(NestedNameSpecifier *NNS) const;
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp113 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument
114 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC); in TraverseNestedNameSpecifierLoc()
211 const NestedNameSpecifier *NNS = DNT->getQualifier(); in VisitDependentNameTypeLoc() local
212 const Type *T = NNS->getAsType(); in VisitDependentNameTypeLoc()
269 void IndexingContext::indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, in indexNestedNameSpecifierLoc() argument
272 if (!NNS) in indexNestedNameSpecifierLoc()
275 if (NestedNameSpecifierLoc Prefix = NNS.getPrefix()) in indexNestedNameSpecifierLoc()
280 SourceLocation Loc = NNS.getLocalBeginLoc(); in indexNestedNameSpecifierLoc()
282 switch (NNS.getNestedNameSpecifier()->getKind()) { in indexNestedNameSpecifierLoc()
289 handleReference(NNS.getNestedNameSpecifier()->getAsNamespace(), in indexNestedNameSpecifierLoc()
[all …]
H A DIndexBody.cpp56 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument
57 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC); in TraverseNestedNameSpecifierLoc()
209 const NestedNameSpecifier *NNS = E->getQualifier(); in VisitDependentScopeDeclRefExpr() local
211 E, NNS->getAsType(), Info, in VisitDependentScopeDeclRefExpr()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h114 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()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp59 NestedNameSpecifier *NNS = SS.getScopeRep(); in computeDeclContext() local
60 if (NNS->isDependent()) { in computeDeclContext()
63 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS)) in computeDeclContext()
67 const Type *NNSType = NNS->getAsType(); in computeDeclContext()
139 switch (NNS->getKind()) { in computeDeclContext()
144 return NNS->getAsNamespace(); in computeDeclContext()
147 return NNS->getAsNamespaceAlias()->getNamespace(); in computeDeclContext()
151 const TagType *Tag = NNS->getAsType()->getAs<TagType>(); in computeDeclContext()
160 return NNS->getAsRecordDecl(); in computeDeclContext()
173 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) { in getCurrentInstantiationOf() argument
[all …]
H A DSemaLookup.cpp2668 auto *NNS = SS.getScopeRep(); in LookupQualifiedName() local
2669 if (NNS && NNS->getKind() == NestedNameSpecifier::Super) in LookupQualifiedName()
2670 return LookupInSuper(R, NNS->getAsRecordDecl()); in LookupQualifiedName()
2708 if (NestedNameSpecifier *NNS = SS->getScopeRep(); in LookupParsedName() local
2709 NNS->getKind() == NestedNameSpecifier::Super) in LookupParsedName()
2710 return LookupInSuper(R, NNS->getAsRecordDecl()); in LookupParsedName()
4453 NestedNameSpecifier *NNS, in getNestedNameSpecifierIdentifiers() argument
4455 if (NestedNameSpecifier *Prefix = NNS->getPrefix()) in getNestedNameSpecifierIdentifiers()
4462 switch (NNS->getKind()) { in getNestedNameSpecifierIdentifiers()
4464 II = NNS->getAsIdentifier(); in getNestedNameSpecifierIdentifiers()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DNestedNameSpecifier.cpp47 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()
640 for (NestedNameSpecifier *NNS = Qualifier; NNS; NNS = NNS->getPrefix()) in MakeTrivial() local
641 Stack.push_back(NNS); in MakeTrivial()
643 NestedNameSpecifier *NNS = Stack.pop_back_val(); in MakeTrivial() local
644 switch (NNS->getKind()) { in MakeTrivial()
654 = Context.getTrivialTypeSourceInfo(QualType(NNS->getAsType(), 0), in MakeTrivial()
H A DQualTypeNames.cpp60 NestedNameSpecifier *NNS = nullptr; in getFullyQualifiedTemplateName() local
70 (NNS = QTName->getQualifier())) { in getFullyQualifiedTemplateName()
72 Ctx, NNS, WithGlobalNsPrefix); in getFullyQualifiedTemplateName()
73 if (QNNS != NNS) { in getFullyQualifiedTemplateName()
75 NNS = QNNS; in getFullyQualifiedTemplateName()
77 NNS = nullptr; in getFullyQualifiedTemplateName()
80 NNS = createNestedNameSpecifierForScopeOf( in getFullyQualifiedTemplateName()
83 if (NNS) { in getFullyQualifiedTemplateName()
88 Ctx.getQualifiedTemplateName(NNS, in getFullyQualifiedTemplateName()
H A DTemplateName.cpp221 if (NestedNameSpecifier *NNS = getAsQualifiedTemplateName()->getQualifier()) in getDependence() local
222 D |= toTemplateNameDependence(NNS->getDependence()); in getDependence()
305 if (NestedNameSpecifier *NNS = QTN->getQualifier(); in print() local
306 Qual != Qualified::None && NNS) in print()
307 NNS->print(OS, Policy); in print()
327 if (NestedNameSpecifier *NNS = DTN->getQualifier()) in print() local
328 NNS->print(OS, Policy); in print()
H A DODRHash.cpp112 void ODRHash::AddNestedNameSpecifier(const NestedNameSpecifier *NNS) { in AddNestedNameSpecifier() argument
113 assert(NNS && "Expecting non-null pointer."); in AddNestedNameSpecifier()
114 const auto *Prefix = NNS->getPrefix(); in AddNestedNameSpecifier()
119 auto Kind = NNS->getKind(); in AddNestedNameSpecifier()
123 AddIdentifierInfo(NNS->getAsIdentifier()); in AddNestedNameSpecifier()
126 AddDecl(NNS->getAsNamespace()); in AddNestedNameSpecifier()
129 AddDecl(NNS->getAsNamespaceAlias()); in AddNestedNameSpecifier()
133 AddType(NNS->getAsType()); in AddNestedNameSpecifier()
151 if (NestedNameSpecifier *NNS = QTN->getQualifier()) in AddTemplateName() local
152 AddNestedNameSpecifier(NNS); in AddTemplateName()
[all …]
H A DASTTypeTraits.cpp194 else if (const NestedNameSpecifier *NNS = get<NestedNameSpecifier>()) in print() local
195 NNS->print(OS, PP); in print()
197 if (const NestedNameSpecifier *NNS = NNSL->getNestedNameSpecifier()) in print() local
198 NNS->print(OS, PP); in print()
H A DASTConcept.cpp88 ConceptReference::Create(const ASTContext &C, NestedNameSpecifierLoc NNS, in Create() argument
93 return new (C) ConceptReference(NNS, TemplateKWLoc, ConceptNameInfo, in Create()
H A DStmtProfile.cpp68 virtual void VisitNestedNameSpecifier(NestedNameSpecifier *NNS) = 0;
170 void VisitNestedNameSpecifier(NestedNameSpecifier *NNS) override { in VisitNestedNameSpecifier() argument
172 NNS = Context.getCanonicalNestedNameSpecifier(NNS); in VisitNestedNameSpecifier()
173 ID.AddPointer(NNS); in VisitNestedNameSpecifier()
229 void VisitNestedNameSpecifier(NestedNameSpecifier *NNS) override { in VisitNestedNameSpecifier() argument
230 ID.AddBoolean(NNS); in VisitNestedNameSpecifier()
231 if (NNS) { in VisitNestedNameSpecifier()
232 Hash.AddNestedNameSpecifier(NNS); in VisitNestedNameSpecifier()
H A DTextNodeDumper.cpp902 void clang::TextNodeDumper::dumpNestedNameSpecifier(const NestedNameSpecifier *NNS) { in dumpNestedNameSpecifier() argument
903 if (!NNS) in dumpNestedNameSpecifier()
909 switch (NNS->getKind()) { in dumpNestedNameSpecifier()
912 OS << " '" << NNS->getAsIdentifier()->getName() << "'"; in dumpNestedNameSpecifier()
916 dumpBareDeclRef(NNS->getAsNamespace()); in dumpNestedNameSpecifier()
920 dumpBareDeclRef(NNS->getAsNamespaceAlias()); in dumpNestedNameSpecifier()
924 dumpType(QualType(NNS->getAsType(), 0)); in dumpNestedNameSpecifier()
928 dumpType(QualType(NNS->getAsType(), 0)); in dumpNestedNameSpecifier()
938 dumpNestedNameSpecifier(NNS->getPrefix()); in dumpNestedNameSpecifier()
H A DComputeDependence.cpp501 if (auto *NNS = E->getQualifier()) in computeDependence() local
502 Deps |= toExprDependence(NNS->getDependence() & in computeDependence()
675 if (auto *NNS = E->getQualifier()) in computeDependence() local
676 D |= toExprDependence(NNS->getDependence() & in computeDependence()
H A DASTContext.cpp5422 NestedNameSpecifier *NNS, in getElaboratedType() argument
5426 ElaboratedType::Profile(ID, Keyword, NNS, NamedType, OwnedTagDecl); in getElaboratedType()
5444 T = new (Mem) ElaboratedType(Keyword, NNS, NamedType, Canon, OwnedTagDecl); in getElaboratedType()
5489 NestedNameSpecifier *NNS, in getDependentNameType() argument
5493 NestedNameSpecifier *CanonNNS = getCanonicalNestedNameSpecifier(NNS); in getDependentNameType()
5494 if (CanonNNS != NNS) in getDependentNameType()
5499 DependentNameType::Profile(ID, Keyword, NNS, Name); in getDependentNameType()
5508 DependentNameType(Keyword, NNS, Name, Canon); in getDependentNameType()
5515 ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, in getDependentTemplateSpecializationType() argument
5521 return getDependentTemplateSpecializationType(Keyword, NNS, Name, ArgCopy); in getDependentTemplateSpecializationType()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTRecordWriter.h255 void AddNestedNameSpecifier(NestedNameSpecifier *NNS) { in AddNestedNameSpecifier() argument
256 writeNestedNameSpecifier(NNS); in AddNestedNameSpecifier()
260 void AddNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS);
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp209 DeclarationFragmentsBuilder::getFragmentsForNNS(const NestedNameSpecifier *NNS, in getFragmentsForNNS() argument
213 if (NNS->getPrefix()) in getFragmentsForNNS()
214 Fragments.append(getFragmentsForNNS(NNS->getPrefix(), Context, After)); in getFragmentsForNNS()
216 switch (NNS->getKind()) { in getFragmentsForNNS()
218 Fragments.append(NNS->getAsIdentifier()->getName(), in getFragmentsForNNS()
223 const NamespaceDecl *NS = NNS->getAsNamespace(); in getFragmentsForNNS()
234 const NamespaceAliasDecl *Alias = NNS->getAsNamespaceAlias(); in getFragmentsForNNS()
260 const Type *T = NNS->getAsType(); in getFragmentsForNNS()
291 if (const NestedNameSpecifier *NNS = ET->getQualifier()) in getFragmentsForType() local
292 Fragments.append(getFragmentsForNNS(NNS, Context, After)); in getFragmentsForType()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaInternal.h231 NestedNameSpecifier *&NNS);
278 NestedNameSpecifier *NNS = nullptr, bool isKeyword = false);

123