Searched refs:NNS (Results 1 - 25 of 37) sorted by relevance

12

/external/clang/tools/libclang/
H A DIndexTypeSourceInfo.cpp36 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { argument
37 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC);
116 void IndexingContext::indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, argument
119 if (!NNS)
122 if (NestedNameSpecifierLoc Prefix = NNS.getPrefix())
127 SourceLocation Loc = NNS.getSourceRange().getBegin();
129 switch (NNS.getNestedNameSpecifier()->getKind()) {
135 handleReference(NNS.getNestedNameSpecifier()->getAsNamespace(),
139 handleReference(NNS.getNestedNameSpecifier()->getAsNamespaceAlias(),
145 indexTypeLoc(NNS
[all...]
H A DIndexBody.cpp36 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { argument
37 IndexCtx.indexNestedNameSpecifierLoc(NNS, Parent, ParentDC);
H A DCursorVisitor.h241 bool VisitNestedNameSpecifier(NestedNameSpecifier *NNS, SourceRange Range);
242 bool VisitNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS);
H A DIndexingContext.h384 void indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS,
/external/clang/include/clang/Sema/
H A DTypoCorrection.h42 NestedNameSpecifier *NNS = nullptr, unsigned CharDistance = 0,
44 : CorrectionName(Name), CorrectionNameSpec(NNS),
52 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr,
54 : CorrectionName(Name->getDeclName()), CorrectionNameSpec(NNS),
61 TypoCorrection(DeclarationName Name, NestedNameSpecifier *NNS = nullptr,
63 : CorrectionName(Name), CorrectionNameSpec(NNS),
82 void setCorrectionSpecifier(NestedNameSpecifier* NNS) { argument
83 CorrectionNameSpec = NNS;
84 ForceSpecifierReplacement = (NNS != nullptr);
/external/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp115 else if (const NestedNameSpecifier *NNS =
117 traverse(*NNS);
181 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) { argument
183 return (NNS == nullptr) || traverse(*NNS);
185 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS) { argument
186 if (!NNS)
189 if (!match(*NNS.getNestedNameSpecifier()))
191 return traverse(NNS);
230 bool baseTraverse(const NestedNameSpecifier &NNS) { argument
234 baseTraverse(NestedNameSpecifierLoc NNS) argument
724 TraverseNestedNameSpecifier(NestedNameSpecifier *NNS) argument
729 TraverseNestedNameSpecifierLoc( NestedNameSpecifierLoc NNS) argument
[all...]
/external/clang/include/clang/AST/
H A DTemplateName.h399 QualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword, argument
401 : Qualifier(NNS, TemplateKeyword? 1 : 0),
424 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, argument
426 ID.AddPointer(NNS);
525 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, argument
527 ID.AddPointer(NNS);
532 static void Profile(llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, argument
534 ID.AddPointer(NNS);
H A DNestedNameSpecifier.h479 NestedNameSpecifier *NNS) {
480 DB.AddTaggedVal(reinterpret_cast<intptr_t>(NNS),
478 operator <<(const DiagnosticBuilder &DB, NestedNameSpecifier *NNS) argument
H A DType.h4005 NestedNameSpecifier *NNS; member in class:clang::FunctionType::ExtInfo::FunctionProtoType::ElaboratedType
4010 ElaboratedType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, argument
4017 NNS(NNS), NamedType(NamedType) {
4018 assert(!(Keyword == ETK_None && NNS == nullptr) &&
4029 NestedNameSpecifier *getQualifier() const { return NNS; }
4041 Profile(ID, getKeyword(), NNS, NamedType);
4045 NestedNameSpecifier *NNS, QualType NamedType) {
4047 ID.AddPointer(NNS);
4071 NestedNameSpecifier *NNS; member in class:clang::FunctionType::ExtInfo::FunctionProtoType::DependentNameType
4044 Profile(llvm::FoldingSetNodeID &ID, ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, QualType NamedType) argument
4076 DependentNameType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, const IdentifierInfo *Name, QualType CanonType) argument
4107 Profile(llvm::FoldingSetNodeID &ID, ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, const IdentifierInfo *Name) argument
4126 NestedNameSpecifier *NNS; member in class:clang::FunctionType::ExtInfo::FunctionProtoType::DependentTemplateSpecializationType
[all...]
H A DDataRecursiveASTVisitor.h191 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS);
197 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS);
614 NestedNameSpecifier *NNS) {
615 if (!NNS)
618 if (NNS->getPrefix())
619 TRY_TO(TraverseNestedNameSpecifier(NNS->getPrefix()));
621 switch (NNS->getKind()) {
630 TRY_TO(TraverseType(QualType(NNS->getAsType(), 0)));
638 NestedNameSpecifierLoc NNS) {
639 if (!NNS)
613 TraverseNestedNameSpecifier( NestedNameSpecifier *NNS) argument
637 TraverseNestedNameSpecifierLoc( NestedNameSpecifierLoc NNS) argument
[all...]
H A DRecursiveASTVisitor.h195 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS);
201 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS);
680 NestedNameSpecifier *NNS) {
681 if (!NNS)
684 if (NNS->getPrefix())
685 TRY_TO(TraverseNestedNameSpecifier(NNS->getPrefix()));
687 switch (NNS->getKind()) {
696 TRY_TO(TraverseType(QualType(NNS->getAsType(), 0)));
704 NestedNameSpecifierLoc NNS) {
705 if (!NNS)
679 TraverseNestedNameSpecifier( NestedNameSpecifier *NNS) argument
703 TraverseNestedNameSpecifierLoc( NestedNameSpecifierLoc NNS) argument
[all...]
H A DASTContext.h1123 NestedNameSpecifier *NNS,
1126 NestedNameSpecifier *NNS,
1131 NestedNameSpecifier *NNS,
1135 NestedNameSpecifier *NNS,
1554 TemplateName getQualifiedTemplateName(NestedNameSpecifier *NNS,
1558 TemplateName getDependentTemplateName(NestedNameSpecifier *NNS,
1560 TemplateName getDependentTemplateName(NestedNameSpecifier *NNS,
1840 getCanonicalNestedNameSpecifier(NestedNameSpecifier *NNS) const;
/external/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp81 NestedNameSpecifier *NNS = SS.getScopeRep();
82 if (NNS->isDependent()) {
85 if (CXXRecordDecl *Record = getCurrentInstantiationOf(NNS))
89 const Type *NNSType = NNS->getAsType();
132 switch (NNS->getKind()) {
137 return NNS->getAsNamespace();
140 return NNS->getAsNamespaceAlias()->getNamespace();
144 const TagType *Tag = NNS->getAsType()->getAs<TagType>();
167 /// \param NNS a dependent nested name specifier.
168 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) { argument
283 FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) argument
887 NestedNameSpecifier *NNS; member in struct:__anon18002::NestedNameSpecifierAnnotation
[all...]
H A DSemaLookup.cpp3287 NestedNameSpecifier *NNS,
3289 if (NestedNameSpecifier *Prefix = NNS->getPrefix())
3296 switch (NNS->getKind()) {
3298 II = NNS->getAsIdentifier();
3302 if (NNS->getAsNamespace()->isAnonymousNamespace())
3304 II = NNS->getAsNamespace()->getIdentifier();
3308 II = NNS->getAsNamespaceAlias()->getIdentifier();
3313 II = QualType(NNS->getAsType(), 0).getBaseTypeIdentifier();
3419 NestedNameSpecifier *&NNS);
3438 NestedNameSpecifier *NNS
3286 getNestedNameSpecifierIdentifiers( NestedNameSpecifier *NNS, SmallVectorImpl<const IdentifierInfo*> &Identifiers) argument
3509 addName(StringRef Name, NamedDecl *ND, NestedNameSpecifier *NNS, bool isKeyword) argument
3803 buildNestedNameSpecifier( DeclContextList &DeclChain, NestedNameSpecifier *&NNS) argument
3823 NestedNameSpecifier *NNS = nullptr; local
[all...]
H A DSemaTemplate.cpp1566 while (NestedNameSpecifier *NNS = NNSLoc.getNestedNameSpecifier()) {
1567 if (const Type *CurType = NNS->getAsType()) {
1677 if (NestedNameSpecifier *NNS = DependentTST->getQualifier())
1678 T = QualType(NNS->getAsType(), 0);
1686 if (NestedNameSpecifier *NNS = DependentName->getQualifier())
1687 T = QualType(NNS->getAsType(), 0);
3054 // Suggest that the user add 'typename' before the NNS.
3924 bool VisitNestedNameSpecifier(NestedNameSpecifier *NNS);
4118 NestedNameSpecifier *NNS) {
4119 if (NNS
4117 VisitNestedNameSpecifier( NestedNameSpecifier *NNS) argument
7696 NestedNameSpecifier *NNS = SS.getScopeRep(); local
7830 isEnableIf(NestedNameSpecifierLoc NNS, const IdentifierInfo &II, SourceRange &CondRange) argument
[all...]
H A DSemaType.cpp3013 NestedNameSpecifier *NNS = SS.getScopeRep(); local
3014 NestedNameSpecifier *NNSPrefix = NNS->getPrefix();
3015 switch (NNS->getKind()) {
3018 NNS->getAsIdentifier());
3028 ClsType = QualType(NNS->getAsType(), 0);
3029 // Note: if the NNS has a prefix and ClsType is a nondependent
3030 // TemplateSpecializationType, then the NNS prefix is NOT included
3034 if (NNSPrefix && isa<TemplateSpecializationType>(NNS->getAsType()))
5462 NestedNameSpecifier *NNS;
5464 NNS
[all...]
/external/clang/lib/AST/
H A DNestedNameSpecifier.cpp34 NestedNameSpecifier *NNS local
36 if (!NNS) {
37 NNS = new (Context, llvm::alignOf<NestedNameSpecifier>())
39 Context.NestedNameSpecifiers.InsertNode(NNS, InsertPos);
42 return NNS;
140 llvm_unreachable("Invalid NNS Kind!");
180 llvm_unreachable("Invalid NNS Kind!");
201 llvm_unreachable("Invalid NNS Kind!");
219 llvm_unreachable("Invalid NNS Kind!");
386 llvm_unreachable("Invalid NNS Kin
571 NestedNameSpecifier *NNS = Stack.pop_back_val(); local
[all...]
H A DASTTypeTraits.cpp69 else if (const NestedNameSpecifier *NNS = get<NestedNameSpecifier>())
70 NNS->print(OS, PP);
H A DASTContext.cpp3266 NestedNameSpecifier *NNS,
3269 ElaboratedType::Profile(ID, Keyword, NNS, NamedType);
3284 T = new (*this) ElaboratedType(Keyword, NNS, NamedType, Canon);
3315 NestedNameSpecifier *NNS,
3319 NestedNameSpecifier *CanonNNS = getCanonicalNestedNameSpecifier(NNS);
3324 if (CanonNNS != NNS || CanonKeyword != Keyword)
3329 DependentNameType::Profile(ID, Keyword, NNS, Name);
3337 T = new (*this) DependentNameType(Keyword, NNS, Name, Canon);
3346 NestedNameSpecifier *NNS,
3353 return getDependentTemplateSpecializationType(Keyword, NNS, Nam
3265 getElaboratedType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, QualType NamedType) const argument
3314 getDependentNameType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, const IdentifierInfo *Name, QualType Canon) const argument
3344 getDependentTemplateSpecializationType( ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, const IdentifierInfo *Name, const TemplateArgumentListInfo &Args) const argument
3359 getDependentTemplateSpecializationType( ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, const IdentifierInfo *Name, unsigned NumArgs, const TemplateArgument *Args) const argument
6166 getQualifiedTemplateName(NestedNameSpecifier *NNS, bool TemplateKeyword, TemplateDecl *Template) const argument
6190 getDependentTemplateName(NestedNameSpecifier *NNS, const IdentifierInfo *Name) const argument
6226 getDependentTemplateName(NestedNameSpecifier *NNS, OverloadedOperatorKind Operator) const argument
[all...]
H A DStmtProfile.cpp54 void VisitNestedNameSpecifier(NestedNameSpecifier *NNS);
1296 void StmtProfiler::VisitNestedNameSpecifier(NestedNameSpecifier *NNS) { argument
1298 NNS = Context.getCanonicalNestedNameSpecifier(NNS);
1299 ID.AddPointer(NNS);
H A DType.cpp1450 NestedNameSpecifier *NNS, const IdentifierInfo *Name,
1455 NNS && NNS->containsUnexpandedParameterPack()),
1456 NNS(NNS), Name(Name), NumArgs(NumArgs) {
1457 assert((!NNS || NNS->isDependent()) &&
1448 DependentTemplateSpecializationType( ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, const IdentifierInfo *Name, unsigned NumArgs, const TemplateArgument *Args, QualType Canon) argument
/external/clang/lib/Serialization/
H A DASTWriter.cpp5014 void ASTWriter::AddNestedNameSpecifier(NestedNameSpecifier *NNS, argument
5020 // Push each of the NNS's onto a stack for serialization in reverse order.
5021 while (NNS) {
5022 NestedNames.push_back(NNS);
5023 NNS = NNS->getPrefix();
5028 NNS = NestedNames.pop_back_val();
5029 NestedNameSpecifier::SpecifierKind Kind = NNS->getKind();
5033 AddIdentifierRef(NNS->getAsIdentifier(), Record);
5037 AddDeclRef(NNS
5057 AddNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, RecordDataImpl &Record) argument
[all...]
H A DASTReader.cpp5360 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); local
5362 return Context.getElaboratedType(Keyword, NNS, NamedType);
5434 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); local
5439 return Context.getDependentNameType(Keyword, NNS, Name, Canon);
5445 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); local
5452 return Context.getDependentTemplateSpecializationType(Keyword, NNS, Name,
7529 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx);
7532 return Context.getQualifiedTemplateName(NNS, hasTemplKeyword, Template);
7536 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx);
7538 return Context.getDependentTemplateName(NNS,
[all...]
/external/clang/include/clang/Serialization/
H A DASTWriter.h638 void AddNestedNameSpecifier(NestedNameSpecifier *NNS, RecordDataImpl &Record);
641 void AddNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS,
/external/clang/unittests/ASTMatchers/
H A DASTMatchersTest.cpp690 } else if (const NestedNameSpecifier *NNS =
693 NNS->print(OS, PrintingPolicy(LangOptions()));
3991 TEST(NNS, MatchesNestedNameSpecifiers) {
4012 TEST(NNS, MatchesTypes) {
4021 TEST(NNS, MatchesNamespaceDecls) {
4029 TEST(NNS, BindsNestedNameSpecifiers) {
4036 TEST(NNS, BindsNestedNameSpecifierLocs) {
4043 TEST(NNS, MatchesNestedNameSpecifierPrefixes) {
4053 TEST(NNS, DescendantsOfNestedNameSpecifiers) {
4082 TEST(NNS, NestedNameSpecifiersAsDescendant
[all...]

Completed in 518 milliseconds

12