Home
last modified time | relevance | path

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

12

/external/clang/tools/libclang/
DIndexTypeSourceInfo.cpp37 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument
38 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC); in TraverseNestedNameSpecifierLoc()
117 void IndexingContext::indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, in indexNestedNameSpecifierLoc() argument
120 if (!NNS) in indexNestedNameSpecifierLoc()
123 if (NestedNameSpecifierLoc Prefix = NNS.getPrefix()) in indexNestedNameSpecifierLoc()
128 SourceLocation Loc = NNS.getSourceRange().getBegin(); in indexNestedNameSpecifierLoc()
130 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.cpp37 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument
38 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC); in TraverseNestedNameSpecifierLoc()
DRecursiveASTVisitor.h186 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS);
192 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS);
571 NestedNameSpecifier *NNS) { in TraverseNestedNameSpecifier() argument
572 if (!NNS) in TraverseNestedNameSpecifier()
575 if (NNS->getPrefix()) in TraverseNestedNameSpecifier()
576 TRY_TO(TraverseNestedNameSpecifier(NNS->getPrefix())); in TraverseNestedNameSpecifier()
578 switch (NNS->getKind()) { in TraverseNestedNameSpecifier()
587 TRY_TO(TraverseType(QualType(NNS->getAsType(), 0))); in TraverseNestedNameSpecifier()
595 NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument
596 if (!NNS) in TraverseNestedNameSpecifierLoc()
[all …]
DCursorVisitor.h241 bool VisitNestedNameSpecifier(NestedNameSpecifier *NNS, SourceRange Range);
242 bool VisitNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS);
DCIndex.cpp1175 bool CursorVisitor::VisitNestedNameSpecifier(NestedNameSpecifier *NNS, in VisitNestedNameSpecifier() argument
1181 if (!NNS) in VisitNestedNameSpecifier()
1185 while (NestedNameSpecifier *Prefix = NNS->getPrefix()) in VisitNestedNameSpecifier()
1186 NNS = Prefix; in VisitNestedNameSpecifier()
1188 switch (NNS->getKind()) { in VisitNestedNameSpecifier()
1190 return Visit(MakeCursorNamespaceRef(NNS->getAsNamespace(), Range.getBegin(), in VisitNestedNameSpecifier()
1194 return Visit(MakeCursorNamespaceRef(NNS->getAsNamespaceAlias(), in VisitNestedNameSpecifier()
1201 const Type *T = NNS->getAsType(); in VisitNestedNameSpecifier()
1229 NestedNameSpecifier *NNS = Q.getNestedNameSpecifier(); in VisitNestedNameSpecifierLoc() local
1230 switch (NNS->getKind()) { in VisitNestedNameSpecifierLoc()
[all …]
DIndexingContext.h395 void indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS,
/external/clang/lib/Sema/
DSemaCXXScopeSpec.cpp87 NestedNameSpecifier *NNS in computeDeclContext() local
89 if (NNS->isDependent()) { in computeDeclContext()
92 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS)) in computeDeclContext()
96 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()
167 NestedNameSpecifier *NNS in isDependentScopeSpecifier() local
169 return NNS->isDependent(); in isDependentScopeSpecifier()
[all …]
DSemaLookup.cpp3169 NestedNameSpecifier *NNS=NULL, bool isKeyword=false);
3241 NestedNameSpecifier *NNS, in addName() argument
3243 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, Distance); in addName()
3281 NestedNameSpecifier *NNS, in getNestedNameSpecifierIdentifiers() argument
3283 if (NestedNameSpecifier *Prefix = NNS->getPrefix()) in getNestedNameSpecifierIdentifiers()
3290 switch (NNS->getKind()) { in getNestedNameSpecifierIdentifiers()
3292 II = NNS->getAsIdentifier(); in getNestedNameSpecifierIdentifiers()
3296 if (NNS->getAsNamespace()->isAnonymousNamespace()) in getNestedNameSpecifierIdentifiers()
3298 II = NNS->getAsNamespace()->getIdentifier(); in getNestedNameSpecifierIdentifiers()
3302 II = NNS->getAsNamespaceAlias()->getIdentifier(); in getNestedNameSpecifierIdentifiers()
[all …]
DSemaTemplate.cpp1557 while (NestedNameSpecifier *NNS = NNSLoc.getNestedNameSpecifier()) { in getRangeOfTypeInNestedNameSpecifier() local
1558 if (const Type *CurType = NNS->getAsType()) { in getRangeOfTypeInNestedNameSpecifier()
1671 if (NestedNameSpecifier *NNS = DependentTST->getQualifier()) in MatchTemplateParametersToScopeSpecifier() local
1672 T = QualType(NNS->getAsType(), 0); in MatchTemplateParametersToScopeSpecifier()
1680 if (NestedNameSpecifier *NNS = DependentName->getQualifier()) in MatchTemplateParametersToScopeSpecifier() local
1681 T = QualType(NNS->getAsType(), 0); in MatchTemplateParametersToScopeSpecifier()
3320 bool VisitNestedNameSpecifier(NestedNameSpecifier *NNS);
3516 NestedNameSpecifier *NNS) { in VisitNestedNameSpecifier() argument
3517 if (NNS->getPrefix() && VisitNestedNameSpecifier(NNS->getPrefix())) in VisitNestedNameSpecifier()
3520 switch (NNS->getKind()) { in VisitNestedNameSpecifier()
[all …]
DSemaType.cpp2583 NestedNameSpecifier *NNS in GetFullTypeForDeclarator() local
2585 NestedNameSpecifier *NNSPrefix = NNS->getPrefix(); in GetFullTypeForDeclarator()
2586 switch (NNS->getKind()) { in GetFullTypeForDeclarator()
2589 NNS->getAsIdentifier()); in GetFullTypeForDeclarator()
2599 ClsType = QualType(NNS->getAsType(), 0); in GetFullTypeForDeclarator()
2605 if (NNSPrefix && isa<TemplateSpecializationType>(NNS->getAsType())) in GetFullTypeForDeclarator()
4560 NestedNameSpecifier *NNS; in getElaboratedType() local
4562 NNS = static_cast<NestedNameSpecifier *>(SS.getScopeRep()); in getElaboratedType()
4566 NNS = 0; in getElaboratedType()
4568 return Context.getElaboratedType(Keyword, NNS, T); in getElaboratedType()
DSemaTemplateInstantiate.cpp2507 Sema::SubstNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, in SubstNestedNameSpecifierLoc() argument
2509 if (!NNS) in SubstNestedNameSpecifierLoc()
2512 TemplateInstantiator Instantiator(*this, TemplateArgs, NNS.getBeginLoc(), in SubstNestedNameSpecifierLoc()
2514 return Instantiator.TransformNestedNameSpecifierLoc(NNS); in SubstNestedNameSpecifierLoc()
DSemaTemplateDeduction.cpp4217 NestedNameSpecifier *NNS, in MarkUsedTemplateParameters() argument
4221 if (!NNS) in MarkUsedTemplateParameters()
4224 MarkUsedTemplateParameters(Ctx, NNS->getPrefix(), OnlyDeduced, Depth, in MarkUsedTemplateParameters()
4226 MarkUsedTemplateParameters(Ctx, QualType(NNS->getAsType(), 0), in MarkUsedTemplateParameters()
/external/clang/include/clang/Sema/
DTypoCorrection.h41 NestedNameSpecifier *NNS=0, unsigned CharDistance=0,
43 : CorrectionName(Name), CorrectionNameSpec(NNS), in CorrectionName()
50 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS=0,
52 : CorrectionName(Name->getDeclName()), CorrectionNameSpec(NNS),
58 TypoCorrection(DeclarationName Name, NestedNameSpecifier *NNS=0,
60 : CorrectionName(Name), CorrectionNameSpec(NNS), in CorrectionName()
77 void setCorrectionSpecifier(NestedNameSpecifier* NNS) { in setCorrectionSpecifier() argument
78 CorrectionNameSpec = NNS; in setCorrectionSpecifier()
/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()
569 for (NestedNameSpecifier *NNS = Qualifier; NNS; NNS = NNS->getPrefix()) in MakeTrivial() local
570 Stack.push_back(NNS); in MakeTrivial()
572 NestedNameSpecifier *NNS = Stack.back(); in MakeTrivial() local
574 switch (NNS->getKind()) { in MakeTrivial()
584 = Context.getTrivialTypeSourceInfo(QualType(NNS->getAsType(), 0), in MakeTrivial()
DASTContext.cpp2931 NestedNameSpecifier *NNS, in getElaboratedType() argument
2934 ElaboratedType::Profile(ID, Keyword, NNS, NamedType); in getElaboratedType()
2949 T = new (*this) ElaboratedType(Keyword, NNS, NamedType, Canon); in getElaboratedType()
2980 NestedNameSpecifier *NNS, in getDependentNameType() argument
2983 assert(NNS->isDependent() && "nested-name-specifier must be dependent"); in getDependentNameType()
2986 NestedNameSpecifier *CanonNNS = getCanonicalNestedNameSpecifier(NNS); in getDependentNameType()
2991 if (CanonNNS != NNS || CanonKeyword != Keyword) in getDependentNameType()
2996 DependentNameType::Profile(ID, Keyword, NNS, Name); in getDependentNameType()
3004 T = new (*this) DependentNameType(Keyword, NNS, Name, Canon); in getDependentNameType()
3013 NestedNameSpecifier *NNS, in getDependentTemplateSpecializationType() argument
[all …]
DStmtProfile.cpp54 void VisitNestedNameSpecifier(NestedNameSpecifier *NNS);
1128 void StmtProfiler::VisitNestedNameSpecifier(NestedNameSpecifier *NNS) { in VisitNestedNameSpecifier() argument
1130 NNS = Context.getCanonicalNestedNameSpecifier(NNS); in VisitNestedNameSpecifier()
1131 ID.AddPointer(NNS); in VisitNestedNameSpecifier()
DType.cpp1403 NestedNameSpecifier *NNS, const IdentifierInfo *Name, in DependentTemplateSpecializationType() argument
1408 NNS && NNS->containsUnexpandedParameterPack()), in DependentTemplateSpecializationType()
1409 NNS(NNS), Name(Name), NumArgs(NumArgs) { in DependentTemplateSpecializationType()
1410 assert((!NNS || NNS->isDependent()) && in DependentTemplateSpecializationType()
/external/clang/include/clang/AST/
DTemplateName.h395 QualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword, in QualifiedTemplateName() argument
397 : Qualifier(NNS, TemplateKeyword? 1 : 0), in QualifiedTemplateName()
420 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument
422 ID.AddPointer(NNS); in Profile()
521 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument
523 ID.AddPointer(NNS); in Profile()
528 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, in Profile() argument
530 ID.AddPointer(NNS); in Profile()
DRecursiveASTVisitor.h193 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS);
199 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS);
635 NestedNameSpecifier *NNS) { in TraverseNestedNameSpecifier() argument
636 if (!NNS) in TraverseNestedNameSpecifier()
639 if (NNS->getPrefix()) in TraverseNestedNameSpecifier()
640 TRY_TO(TraverseNestedNameSpecifier(NNS->getPrefix())); in TraverseNestedNameSpecifier()
642 switch (NNS->getKind()) { in TraverseNestedNameSpecifier()
651 TRY_TO(TraverseType(QualType(NNS->getAsType(), 0))); in TraverseNestedNameSpecifier()
659 NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument
660 if (!NNS) in TraverseNestedNameSpecifierLoc()
[all …]
DType.h3891 NestedNameSpecifier *NNS;
3896 ElaboratedType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS,
3903 NNS(NNS), NamedType(NamedType) {
3904 assert(!(Keyword == ETK_None && NNS == 0) &&
3915 NestedNameSpecifier *getQualifier() const { return NNS; }
3927 Profile(ID, getKeyword(), NNS, NamedType);
3931 NestedNameSpecifier *NNS, QualType NamedType) {
3933 ID.AddPointer(NNS);
3955 NestedNameSpecifier *NNS;
3960 DependentNameType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS,
[all …]
DNestedNameSpecifier.h474 NestedNameSpecifier *NNS) {
475 DB.AddTaggedVal(reinterpret_cast<intptr_t>(NNS),
DASTContext.h988 NestedNameSpecifier *NNS,
991 NestedNameSpecifier *NNS,
996 NestedNameSpecifier *NNS,
1000 NestedNameSpecifier *NNS,
1372 TemplateName getQualifiedTemplateName(NestedNameSpecifier *NNS,
1376 TemplateName getDependentTemplateName(NestedNameSpecifier *NNS,
1378 TemplateName getDependentTemplateName(NestedNameSpecifier *NNS,
1625 getCanonicalNestedNameSpecifier(NestedNameSpecifier *NNS) const;
/external/clang/lib/Serialization/
DASTWriter.cpp4038 void ASTWriter::AddNestedNameSpecifier(NestedNameSpecifier *NNS, in AddNestedNameSpecifier() argument
4045 while (NNS) { in AddNestedNameSpecifier()
4046 NestedNames.push_back(NNS); in AddNestedNameSpecifier()
4047 NNS = NNS->getPrefix(); in AddNestedNameSpecifier()
4052 NNS = NestedNames.pop_back_val(); in AddNestedNameSpecifier()
4053 NestedNameSpecifier::SpecifierKind Kind = NNS->getKind(); in AddNestedNameSpecifier()
4057 AddIdentifierRef(NNS->getAsIdentifier(), Record); in AddNestedNameSpecifier()
4061 AddDeclRef(NNS->getAsNamespace(), Record); in AddNestedNameSpecifier()
4065 AddDeclRef(NNS->getAsNamespaceAlias(), Record); in AddNestedNameSpecifier()
4070 AddTypeRef(QualType(NNS->getAsType(), 0), Record); in AddNestedNameSpecifier()
[all …]
DASTReader.cpp4025 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord() local
4027 return Context.getElaboratedType(Keyword, NNS, NamedType); in readTypeRecord()
4093 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord() local
4098 return Context.getDependentNameType(Keyword, NNS, Name, Canon); in readTypeRecord()
4104 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord() local
4111 return Context.getDependentTemplateSpecializationType(Keyword, NNS, Name, in readTypeRecord()
5882 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx); in ReadTemplateName() local
5885 return Context.getQualifiedTemplateName(NNS, hasTemplKeyword, Template); in ReadTemplateName()
5889 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx); in ReadTemplateName() local
5891 return Context.getDependentTemplateName(NNS, in ReadTemplateName()
[all …]
/external/clang/include/clang/Serialization/
DASTWriter.h582 void AddNestedNameSpecifier(NestedNameSpecifier *NNS, RecordDataImpl &Record);
585 void AddNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS,

12