Home
last modified time | relevance | path

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

12

/external/clang/tools/libclang/
DIndexTypeSourceInfo.cpp36 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument
37 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC); in TraverseNestedNameSpecifierLoc()
116 void IndexingContext::indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, in indexNestedNameSpecifierLoc() argument
119 if (!NNS) in indexNestedNameSpecifierLoc()
122 if (NestedNameSpecifierLoc Prefix = NNS.getPrefix()) in indexNestedNameSpecifierLoc()
127 SourceLocation Loc = NNS.getSourceRange().getBegin(); in indexNestedNameSpecifierLoc()
129 switch (NNS.getNestedNameSpecifier()->getKind()) { in indexNestedNameSpecifierLoc()
136 handleReference(NNS.getNestedNameSpecifier()->getAsNamespace(), in indexNestedNameSpecifierLoc()
140 handleReference(NNS.getNestedNameSpecifier()->getAsNamespaceAlias(), in indexNestedNameSpecifierLoc()
146 indexTypeLoc(NNS.getTypeLoc(), Parent, DC); in indexNestedNameSpecifierLoc()
DIndexBody.cpp36 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument
37 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC); in TraverseNestedNameSpecifierLoc()
DCursorVisitor.h244 bool VisitNestedNameSpecifier(NestedNameSpecifier *NNS, SourceRange Range);
245 bool VisitNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS);
/external/clang/include/clang/Sema/
DTypoCorrection.h43 NestedNameSpecifier *NNS = nullptr, unsigned CharDistance = 0,
45 : CorrectionName(Name), CorrectionNameSpec(NNS), in CorrectionName()
53 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr,
55 : CorrectionName(Name->getDeclName()), CorrectionNameSpec(NNS),
62 TypoCorrection(DeclarationName Name, NestedNameSpecifier *NNS = nullptr,
64 : CorrectionName(Name), CorrectionNameSpec(NNS), in CorrectionName()
83 void setCorrectionSpecifier(NestedNameSpecifier* NNS) { in setCorrectionSpecifier() argument
84 CorrectionNameSpec = NNS; in setCorrectionSpecifier()
85 ForceSpecifierReplacement = (NNS != nullptr); in setCorrectionSpecifier()
285 void setTypoNNS(NestedNameSpecifier *NNS) { TypoNNS = NNS; } in setTypoNNS() argument
DSemaInternal.h244 NestedNameSpecifier *&NNS);
291 NestedNameSpecifier *NNS = nullptr, bool isKeyword = false);
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp119 else if (const NestedNameSpecifier *NNS = in findMatch() local
121 traverse(*NNS); in findMatch()
185 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) { in TraverseNestedNameSpecifier() argument
187 return (NNS == nullptr) || traverse(*NNS); in TraverseNestedNameSpecifier()
189 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument
190 if (!NNS) in TraverseNestedNameSpecifierLoc()
193 if (!match(*NNS.getNestedNameSpecifier())) in TraverseNestedNameSpecifierLoc()
195 return traverse(NNS); in TraverseNestedNameSpecifierLoc()
231 bool baseTraverse(const NestedNameSpecifier &NNS) { in baseTraverse() argument
233 const_cast<NestedNameSpecifier*>(&NNS)); in baseTraverse()
[all …]
/external/clang/lib/Tooling/Core/
DLookup.cpp76 static bool isFullyQualified(const NestedNameSpecifier *NNS) { in isFullyQualified() argument
77 while (NNS) { in isFullyQualified()
78 if (NNS->getKind() == NestedNameSpecifier::Global) in isFullyQualified()
80 NNS = NNS->getPrefix(); in isFullyQualified()
/external/clang/lib/Sema/
DSemaCXXScopeSpec.cpp81 NestedNameSpecifier *NNS = SS.getScopeRep(); in computeDeclContext() local
82 if (NNS->isDependent()) { in computeDeclContext()
85 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS)) in computeDeclContext()
89 const Type *NNSType = NNS->getAsType(); in computeDeclContext()
132 switch (NNS->getKind()) { in computeDeclContext()
137 return NNS->getAsNamespace(); in computeDeclContext()
140 return NNS->getAsNamespaceAlias()->getNamespace(); in computeDeclContext()
144 const TagType *Tag = NNS->getAsType()->getAs<TagType>(); in computeDeclContext()
153 return NNS->getAsRecordDecl(); in computeDeclContext()
171 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) { in getCurrentInstantiationOf() argument
[all …]
DSemaLookup.cpp2107 auto *NNS = SS.getScopeRep(); in LookupQualifiedName() local
2108 if (NNS && NNS->getKind() == NestedNameSpecifier::Super) in LookupQualifiedName()
2109 return LookupInSuper(R, NNS->getAsRecordDecl()); in LookupQualifiedName()
2143 NestedNameSpecifier *NNS = SS->getScopeRep(); in LookupParsedName() local
2144 if (NNS->getKind() == NestedNameSpecifier::Super) in LookupParsedName()
2145 return LookupInSuper(R, NNS->getAsRecordDecl()); in LookupParsedName()
3730 NestedNameSpecifier *NNS, in getNestedNameSpecifierIdentifiers() argument
3732 if (NestedNameSpecifier *Prefix = NNS->getPrefix()) in getNestedNameSpecifierIdentifiers()
3739 switch (NNS->getKind()) { in getNestedNameSpecifierIdentifiers()
3741 II = NNS->getAsIdentifier(); in getNestedNameSpecifierIdentifiers()
[all …]
DSemaCoroutine.cpp89 auto *NNS = NestedNameSpecifier::Create(S.Context, nullptr, Std); in lookupPromiseType() local
90 NNS = NestedNameSpecifier::Create(S.Context, NNS, false, in lookupPromiseType()
92 PromiseType = S.Context.getElaboratedType(ETK_None, NNS, PromiseType); in lookupPromiseType()
DSemaTemplate.cpp1596 while (NestedNameSpecifier *NNS = NNSLoc.getNestedNameSpecifier()) { in getRangeOfTypeInNestedNameSpecifier() local
1597 if (const Type *CurType = NNS->getAsType()) { in getRangeOfTypeInNestedNameSpecifier()
1707 if (NestedNameSpecifier *NNS = DependentTST->getQualifier()) in MatchTemplateParametersToScopeSpecifier() local
1708 T = QualType(NNS->getAsType(), 0); in MatchTemplateParametersToScopeSpecifier()
1716 if (NestedNameSpecifier *NNS = DependentName->getQualifier()) in MatchTemplateParametersToScopeSpecifier() local
1717 T = QualType(NNS->getAsType(), 0); in MatchTemplateParametersToScopeSpecifier()
4015 bool VisitNestedNameSpecifier(NestedNameSpecifier *NNS);
4209 NestedNameSpecifier *NNS) { in VisitNestedNameSpecifier() argument
4210 if (NNS->getPrefix() && VisitNestedNameSpecifier(NNS->getPrefix())) in VisitNestedNameSpecifier()
4213 switch (NNS->getKind()) { in VisitNestedNameSpecifier()
[all …]
/external/clang/lib/AST/
DNestedNameSpecifier.cpp34 NestedNameSpecifier *NNS in FindOrInsert() local
36 if (!NNS) { in FindOrInsert()
37 NNS = new (Context, llvm::alignOf<NestedNameSpecifier>()) in FindOrInsert()
39 Context.NestedNameSpecifiers.InsertNode(NNS, InsertPos); in FindOrInsert()
42 return NNS; in FindOrInsert()
612 for (NestedNameSpecifier *NNS = Qualifier; NNS; NNS = NNS->getPrefix()) in MakeTrivial() local
613 Stack.push_back(NNS); in MakeTrivial()
615 NestedNameSpecifier *NNS = Stack.pop_back_val(); in MakeTrivial() local
616 switch (NNS->getKind()) { in MakeTrivial()
626 = Context.getTrivialTypeSourceInfo(QualType(NNS->getAsType(), 0), in MakeTrivial()
DASTTypeTraits.cpp116 else if (const NestedNameSpecifier *NNS = get<NestedNameSpecifier>()) in print() local
117 NNS->print(OS, PP); in print()
DASTContext.cpp3465 NestedNameSpecifier *NNS, in getElaboratedType() argument
3468 ElaboratedType::Profile(ID, Keyword, NNS, NamedType); in getElaboratedType()
3483 T = new (*this, TypeAlignment) ElaboratedType(Keyword, NNS, NamedType, Canon); in getElaboratedType()
3514 NestedNameSpecifier *NNS, in getDependentNameType() argument
3518 NestedNameSpecifier *CanonNNS = getCanonicalNestedNameSpecifier(NNS); in getDependentNameType()
3523 if (CanonNNS != NNS || CanonKeyword != Keyword) in getDependentNameType()
3528 DependentNameType::Profile(ID, Keyword, NNS, Name); in getDependentNameType()
3536 T = new (*this, TypeAlignment) DependentNameType(Keyword, NNS, Name, Canon); in getDependentNameType()
3545 NestedNameSpecifier *NNS, in getDependentTemplateSpecializationType() argument
3552 return getDependentTemplateSpecializationType(Keyword, NNS, Name, in getDependentTemplateSpecializationType()
[all …]
DStmtProfile.cpp55 void VisitNestedNameSpecifier(NestedNameSpecifier *NNS);
1573 void StmtProfiler::VisitNestedNameSpecifier(NestedNameSpecifier *NNS) { in VisitNestedNameSpecifier() argument
1575 NNS = Context.getCanonicalNestedNameSpecifier(NNS); in VisitNestedNameSpecifier()
1576 ID.AddPointer(NNS); in VisitNestedNameSpecifier()
DType.cpp2456 NestedNameSpecifier *NNS, const IdentifierInfo *Name, in DependentTemplateSpecializationType() argument
2461 NNS && NNS->containsUnexpandedParameterPack()), in DependentTemplateSpecializationType()
2462 NNS(NNS), Name(Name), NumArgs(NumArgs) { in DependentTemplateSpecializationType()
2463 assert((!NNS || NNS->isDependent()) && in DependentTemplateSpecializationType()
/external/clang/include/clang/AST/
DTemplateName.h399 QualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword, in QualifiedTemplateName() argument
401 : Qualifier(NNS, TemplateKeyword? 1 : 0), in QualifiedTemplateName()
424 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument
426 ID.AddPointer(NNS); in Profile()
525 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument
527 ID.AddPointer(NNS); in Profile()
532 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument
534 ID.AddPointer(NNS); in Profile()
DNestedNameSpecifier.h507 NestedNameSpecifier *NNS) {
508 DB.AddTaggedVal(reinterpret_cast<intptr_t>(NNS),
DRecursiveASTVisitor.h197 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS);
203 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS);
640 NestedNameSpecifier *NNS) {
641 if (!NNS)
644 if (NNS->getPrefix())
645 TRY_TO(TraverseNestedNameSpecifier(NNS->getPrefix()));
647 switch (NNS->getKind()) {
657 TRY_TO(TraverseType(QualType(NNS->getAsType(), 0)));
665 NestedNameSpecifierLoc NNS) {
666 if (!NNS)
[all …]
DType.h4264 NestedNameSpecifier *NNS;
4269 ElaboratedType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS,
4276 NNS(NNS), NamedType(NamedType) {
4277 assert(!(Keyword == ETK_None && NNS == nullptr) &&
4288 NestedNameSpecifier *getQualifier() const { return NNS; }
4300 Profile(ID, getKeyword(), NNS, NamedType);
4304 NestedNameSpecifier *NNS, QualType NamedType) {
4306 ID.AddPointer(NNS);
4330 NestedNameSpecifier *NNS;
4335 DependentNameType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS,
[all …]
DASTContext.h1247 NestedNameSpecifier *NNS,
1250 NestedNameSpecifier *NNS,
1255 NestedNameSpecifier *NNS,
1259 NestedNameSpecifier *NNS,
1718 TemplateName getQualifiedTemplateName(NestedNameSpecifier *NNS,
1722 TemplateName getDependentTemplateName(NestedNameSpecifier *NNS,
1724 TemplateName getDependentTemplateName(NestedNameSpecifier *NNS,
2046 getCanonicalNestedNameSpecifier(NestedNameSpecifier *NNS) const;
/external/clang/lib/Serialization/
DASTWriter.cpp5127 void ASTWriter::AddNestedNameSpecifier(NestedNameSpecifier *NNS, in AddNestedNameSpecifier() argument
5134 while (NNS) { in AddNestedNameSpecifier()
5135 NestedNames.push_back(NNS); in AddNestedNameSpecifier()
5136 NNS = NNS->getPrefix(); in AddNestedNameSpecifier()
5141 NNS = NestedNames.pop_back_val(); in AddNestedNameSpecifier()
5142 NestedNameSpecifier::SpecifierKind Kind = NNS->getKind(); in AddNestedNameSpecifier()
5146 AddIdentifierRef(NNS->getAsIdentifier(), Record); in AddNestedNameSpecifier()
5150 AddDeclRef(NNS->getAsNamespace(), Record); in AddNestedNameSpecifier()
5154 AddDeclRef(NNS->getAsNamespaceAlias(), Record); in AddNestedNameSpecifier()
5159 AddTypeRef(QualType(NNS->getAsType(), 0), Record); in AddNestedNameSpecifier()
[all …]
DASTReader.cpp5487 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord() local
5489 return Context.getElaboratedType(Keyword, NNS, NamedType); in readTypeRecord()
5571 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord() local
5576 return Context.getDependentNameType(Keyword, NNS, Name, Canon); in readTypeRecord()
5582 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord() local
5589 return Context.getDependentTemplateSpecializationType(Keyword, NNS, Name, in readTypeRecord()
7732 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx); in ReadTemplateName() local
7735 return Context.getQualifiedTemplateName(NNS, hasTemplKeyword, Template); in ReadTemplateName()
7739 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx); in ReadTemplateName() local
7741 return Context.getDependentTemplateName(NNS, in ReadTemplateName()
[all …]
/external/clang/include/clang/Serialization/
DASTWriter.h716 void AddNestedNameSpecifier(NestedNameSpecifier *NNS, RecordDataImpl &Record);
719 void AddNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS,
/external/clang/unittests/ASTMatchers/
DASTMatchersTest.cpp774 } else if (const NestedNameSpecifier *NNS = in run() local
777 NNS->print(OS, PrintingPolicy(LangOptions())); in run()
4500 TEST(NNS, MatchesNestedNameSpecifiers) { in TEST() argument
4533 TEST(NNS, MatchesTypes) { in TEST() argument
4542 TEST(NNS, MatchesNamespaceDecls) { in TEST() argument
4550 TEST(NNS, BindsNestedNameSpecifiers) { in TEST() argument
4557 TEST(NNS, BindsNestedNameSpecifierLocs) { in TEST() argument
4564 TEST(NNS, MatchesNestedNameSpecifierPrefixes) { in TEST() argument
4574 TEST(NNS, DescendantsOfNestedNameSpecifiers) { in TEST() argument
4603 TEST(NNS, NestedNameSpecifiersAsDescendants) { in TEST() argument

12