| /NextBSD/contrib/llvm/tools/clang/include/clang/Sema/ |
| HD | TypoCorrection.h | 43 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
|
| HD | SemaInternal.h | 244 NestedNameSpecifier *&NNS); 291 NestedNameSpecifier *NNS = nullptr, bool isKeyword = false);
|
| /NextBSD/contrib/llvm/tools/clang/lib/ASTMatchers/ |
| HD | ASTMatchFinder.cpp | 119 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() 234 bool baseTraverse(const NestedNameSpecifier &NNS) { in baseTraverse() argument 236 const_cast<NestedNameSpecifier*>(&NNS)); in baseTraverse() [all …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/Sema/ |
| HD | SemaCXXScopeSpec.cpp | 81 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 …]
|
| HD | SemaLookup.cpp | 1944 auto *NNS = SS.getScopeRep(); in LookupQualifiedName() local 1945 if (NNS && NNS->getKind() == NestedNameSpecifier::Super) in LookupQualifiedName() 1946 return LookupInSuper(R, NNS->getAsRecordDecl()); in LookupQualifiedName() 1980 NestedNameSpecifier *NNS = SS->getScopeRep(); in LookupParsedName() local 1981 if (NNS->getKind() == NestedNameSpecifier::Super) in LookupParsedName() 1982 return LookupInSuper(R, NNS->getAsRecordDecl()); in LookupParsedName() 3554 NestedNameSpecifier *NNS, in getNestedNameSpecifierIdentifiers() argument 3556 if (NestedNameSpecifier *Prefix = NNS->getPrefix()) in getNestedNameSpecifierIdentifiers() 3563 switch (NNS->getKind()) { in getNestedNameSpecifierIdentifiers() 3565 II = NNS->getAsIdentifier(); in getNestedNameSpecifierIdentifiers() [all …]
|
| HD | SemaTemplate.cpp | 1594 while (NestedNameSpecifier *NNS = NNSLoc.getNestedNameSpecifier()) { in getRangeOfTypeInNestedNameSpecifier() local 1595 if (const Type *CurType = NNS->getAsType()) { in getRangeOfTypeInNestedNameSpecifier() 1705 if (NestedNameSpecifier *NNS = DependentTST->getQualifier()) in MatchTemplateParametersToScopeSpecifier() local 1706 T = QualType(NNS->getAsType(), 0); in MatchTemplateParametersToScopeSpecifier() 1714 if (NestedNameSpecifier *NNS = DependentName->getQualifier()) in MatchTemplateParametersToScopeSpecifier() local 1715 T = QualType(NNS->getAsType(), 0); in MatchTemplateParametersToScopeSpecifier() 3979 bool VisitNestedNameSpecifier(NestedNameSpecifier *NNS); 4173 NestedNameSpecifier *NNS) { in VisitNestedNameSpecifier() argument 4174 if (NNS->getPrefix() && VisitNestedNameSpecifier(NNS->getPrefix())) in VisitNestedNameSpecifier() 4177 switch (NNS->getKind()) { in VisitNestedNameSpecifier() [all …]
|
| HD | SemaExprCXX.cpp | 51 NestedNameSpecifier *NNS = SS.getScopeRep(); in getInheritingConstructorName() local 55 switch (NNS->getKind()) { in getInheritingConstructorName() 58 Type = QualType(NNS->getAsType(), 0); in getInheritingConstructorName() 64 assert(NNS->getAsIdentifier() == &Name && "not a constructor name"); in getInheritingConstructorName() 65 Type = Context.getDependentNameType(ETK_None, NNS->getPrefix(), in getInheritingConstructorName() 66 NNS->getAsIdentifier()); in getInheritingConstructorName() 125 NestedNameSpecifier *NNS = SS.getScopeRep(); in getDestructorName() local 154 } else if (LookAtPrefix && (Prefix = NNS->getPrefix())) { in getDestructorName() 6329 if (auto *NNS = TC.getCorrectionSpecifier()) in attemptRecovery() local 6330 NewSS.MakeTrivial(SemaRef.Context, NNS, TC.getCorrectionRange()); in attemptRecovery() [all …]
|
| HD | SemaType.cpp | 4013 NestedNameSpecifier *NNS = SS.getScopeRep(); in GetFullTypeForDeclarator() local 4014 NestedNameSpecifier *NNSPrefix = NNS->getPrefix(); in GetFullTypeForDeclarator() 4015 switch (NNS->getKind()) { in GetFullTypeForDeclarator() 4018 NNS->getAsIdentifier()); in GetFullTypeForDeclarator() 4029 ClsType = QualType(NNS->getAsType(), 0); in GetFullTypeForDeclarator() 4035 if (NNSPrefix && isa<TemplateSpecializationType>(NNS->getAsType())) in GetFullTypeForDeclarator() 6717 NestedNameSpecifier *NNS; in getElaboratedType() local 6719 NNS = SS.getScopeRep(); in getElaboratedType() 6723 NNS = nullptr; in getElaboratedType() 6725 return Context.getElaboratedType(Keyword, NNS, T); in getElaboratedType()
|
| HD | SemaTemplateInstantiate.cpp | 2688 Sema::SubstNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, in SubstNestedNameSpecifierLoc() argument 2690 if (!NNS) in SubstNestedNameSpecifierLoc() 2693 TemplateInstantiator Instantiator(*this, TemplateArgs, NNS.getBeginLoc(), in SubstNestedNameSpecifierLoc() 2695 return Instantiator.TransformNestedNameSpecifierLoc(NNS); in SubstNestedNameSpecifierLoc()
|
| HD | AnalysisBasedWarnings.cpp | 205 if (NestedNameSpecifier *NNS = DRE->getQualifier()) { in checkForFunctionCall() local 206 if (NNS->getKind() == NestedNameSpecifier::TypeSpec && in checkForFunctionCall() 207 isa<TemplateSpecializationType>(NNS->getAsType())) { in checkForFunctionCall()
|
| /NextBSD/contrib/llvm/tools/clang/lib/AST/ |
| HD | NestedNameSpecifier.cpp | 34 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()
|
| HD | ASTTypeTraits.cpp | 116 else if (const NestedNameSpecifier *NNS = get<NestedNameSpecifier>()) in print() local 117 NNS->print(OS, PP); in print()
|
| HD | ASTContext.cpp | 3397 NestedNameSpecifier *NNS, in getElaboratedType() argument 3400 ElaboratedType::Profile(ID, Keyword, NNS, NamedType); in getElaboratedType() 3415 T = new (*this, TypeAlignment) ElaboratedType(Keyword, NNS, NamedType, Canon); in getElaboratedType() 3446 NestedNameSpecifier *NNS, in getDependentNameType() argument 3450 NestedNameSpecifier *CanonNNS = getCanonicalNestedNameSpecifier(NNS); in getDependentNameType() 3455 if (CanonNNS != NNS || CanonKeyword != Keyword) in getDependentNameType() 3460 DependentNameType::Profile(ID, Keyword, NNS, Name); in getDependentNameType() 3468 T = new (*this, TypeAlignment) DependentNameType(Keyword, NNS, Name, Canon); in getDependentNameType() 3477 NestedNameSpecifier *NNS, in getDependentTemplateSpecializationType() argument 3484 return getDependentTemplateSpecializationType(Keyword, NNS, Name, in getDependentTemplateSpecializationType() [all …]
|
| HD | StmtProfile.cpp | 54 void VisitNestedNameSpecifier(NestedNameSpecifier *NNS); 1477 void StmtProfiler::VisitNestedNameSpecifier(NestedNameSpecifier *NNS) { in VisitNestedNameSpecifier() argument 1479 NNS = Context.getCanonicalNestedNameSpecifier(NNS); in VisitNestedNameSpecifier() 1480 ID.AddPointer(NNS); in VisitNestedNameSpecifier()
|
| HD | Type.cpp | 2417 NestedNameSpecifier *NNS, const IdentifierInfo *Name, in DependentTemplateSpecializationType() argument 2422 NNS && NNS->containsUnexpandedParameterPack()), in DependentTemplateSpecializationType() 2423 NNS(NNS), Name(Name), NumArgs(NumArgs) { in DependentTemplateSpecializationType() 2424 assert((!NNS || NNS->isDependent()) && in DependentTemplateSpecializationType()
|
| HD | ExprCXX.cpp | 1408 auto *NNS = getQualifier(); in getNamingClass() local 1409 if (NNS && NNS->getKind() != NestedNameSpecifier::Super) { in getNamingClass()
|
| /NextBSD/contrib/llvm/tools/clang/include/clang/AST/ |
| HD | TemplateName.h | 399 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()
|
| HD | Type.h | 4222 NestedNameSpecifier *NNS; 4227 ElaboratedType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, 4234 NNS(NNS), NamedType(NamedType) { 4235 assert(!(Keyword == ETK_None && NNS == nullptr) && 4246 NestedNameSpecifier *getQualifier() const { return NNS; } 4258 Profile(ID, getKeyword(), NNS, NamedType); 4262 NestedNameSpecifier *NNS, QualType NamedType) { 4264 ID.AddPointer(NNS); 4288 NestedNameSpecifier *NNS; 4293 DependentNameType(ElaboratedTypeKeyword Keyword, NestedNameSpecifier *NNS, [all …]
|
| HD | DataRecursiveASTVisitor.h | 191 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS); 197 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS); 612 NestedNameSpecifier *NNS) { in TraverseNestedNameSpecifier() argument 613 if (!NNS) in TraverseNestedNameSpecifier() 616 if (NNS->getPrefix()) in TraverseNestedNameSpecifier() 617 TRY_TO(TraverseNestedNameSpecifier(NNS->getPrefix())); in TraverseNestedNameSpecifier() 619 switch (NNS->getKind()) { in TraverseNestedNameSpecifier() 629 TRY_TO(TraverseType(QualType(NNS->getAsType(), 0))); in TraverseNestedNameSpecifier() 637 NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument 638 if (!NNS) in TraverseNestedNameSpecifierLoc() [all …]
|
| HD | NestedNameSpecifier.h | 507 NestedNameSpecifier *NNS) { 508 DB.AddTaggedVal(reinterpret_cast<intptr_t>(NNS),
|
| HD | RecursiveASTVisitor.h | 195 bool TraverseNestedNameSpecifier(NestedNameSpecifier *NNS); 201 bool TraverseNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS); 681 NestedNameSpecifier *NNS) { in TraverseNestedNameSpecifier() argument 682 if (!NNS) in TraverseNestedNameSpecifier() 685 if (NNS->getPrefix()) in TraverseNestedNameSpecifier() 686 TRY_TO(TraverseNestedNameSpecifier(NNS->getPrefix())); in TraverseNestedNameSpecifier() 688 switch (NNS->getKind()) { in TraverseNestedNameSpecifier() 698 TRY_TO(TraverseType(QualType(NNS->getAsType(), 0))); in TraverseNestedNameSpecifier() 706 NestedNameSpecifierLoc NNS) { in TraverseNestedNameSpecifierLoc() argument 707 if (!NNS) in TraverseNestedNameSpecifierLoc() [all …]
|
| HD | ASTContext.h | 1175 NestedNameSpecifier *NNS, 1178 NestedNameSpecifier *NNS, 1183 NestedNameSpecifier *NNS, 1187 NestedNameSpecifier *NNS, 1631 TemplateName getQualifiedTemplateName(NestedNameSpecifier *NNS, 1635 TemplateName getDependentTemplateName(NestedNameSpecifier *NNS, 1637 TemplateName getDependentTemplateName(NestedNameSpecifier *NNS, 1960 getCanonicalNestedNameSpecifier(NestedNameSpecifier *NNS) const;
|
| /NextBSD/contrib/llvm/tools/clang/lib/Serialization/ |
| HD | ASTWriter.cpp | 5138 void ASTWriter::AddNestedNameSpecifier(NestedNameSpecifier *NNS, in AddNestedNameSpecifier() argument 5145 while (NNS) { in AddNestedNameSpecifier() 5146 NestedNames.push_back(NNS); in AddNestedNameSpecifier() 5147 NNS = NNS->getPrefix(); in AddNestedNameSpecifier() 5152 NNS = NestedNames.pop_back_val(); in AddNestedNameSpecifier() 5153 NestedNameSpecifier::SpecifierKind Kind = NNS->getKind(); in AddNestedNameSpecifier() 5157 AddIdentifierRef(NNS->getAsIdentifier(), Record); in AddNestedNameSpecifier() 5161 AddDeclRef(NNS->getAsNamespace(), Record); in AddNestedNameSpecifier() 5165 AddDeclRef(NNS->getAsNamespaceAlias(), Record); in AddNestedNameSpecifier() 5170 AddTypeRef(QualType(NNS->getAsType(), 0), Record); in AddNestedNameSpecifier() [all …]
|
| HD | ASTReader.cpp | 5253 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord() local 5255 return Context.getElaboratedType(Keyword, NNS, NamedType); in readTypeRecord() 5337 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord() local 5342 return Context.getDependentNameType(Keyword, NNS, Name, Canon); in readTypeRecord() 5348 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(*Loc.F, Record, Idx); in readTypeRecord() local 5355 return Context.getDependentTemplateSpecializationType(Keyword, NNS, Name, in readTypeRecord() 7581 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx); in ReadTemplateName() local 7584 return Context.getQualifiedTemplateName(NNS, hasTemplKeyword, Template); in ReadTemplateName() 7588 NestedNameSpecifier *NNS = ReadNestedNameSpecifier(F, Record, Idx); in ReadTemplateName() local 7590 return Context.getDependentTemplateName(NNS, in ReadTemplateName() [all …]
|
| /NextBSD/contrib/llvm/tools/clang/include/clang/Serialization/ |
| HD | ASTWriter.h | 690 void AddNestedNameSpecifier(NestedNameSpecifier *NNS, RecordDataImpl &Record); 693 void AddNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS,
|