| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaTemplateInstantiateDecl.cpp | 56 SemaRef, in SubstQualifier() 942 DI = SemaRef.Context.getTrivialTypeSourceInfo(SemaRef.Context.IntTy); in InstantiateTypedefNameDecl() 1135 if (SemaRef.getLangOpts().OpenCL) in VisitVarDecl() 1446 SemaRef.Context.setManglingNumber(Enum, SemaRef.Context.getManglingNumber(D)); in VisitEnumDecl() 2553 SemaRef.Context, in VisitCXXMethodDecl() 2910 T = SemaRef.Context.IntTy; in VisitNonTypeTemplateParmDecl() 3077 SemaRef.Context, in VisitTemplateTemplateParmDecl() 3182 SemaRef.Context.getCanonicalType(SemaRef.Context.getRecordType(RD)))); in VisitUsingDecl() 3875 if (SemaRef.getLangOpts().OpenCL) in VisitVarTemplateSpecializationDecl() 4646 atTemplateEnd(SemaRef.TemplateInstCallbacks, SemaRef, ActiveInst); in InitFunctionInstantiation() [all …]
|
| H A D | SemaTemplateInstantiate.cpp | 234 : SemaRef(SemaRef) { in InstantiatingTemplate() 260 atTemplateBegin(SemaRef.TemplateInstCallbacks, SemaRef, Inst); in InstantiatingTemplate() 283 SemaRef, in InstantiatingTemplate() 308 SemaRef, in InstantiatingTemplate() 319 SemaRef, in InstantiatingTemplate() 330 SemaRef, in InstantiatingTemplate() 339 SemaRef, in InstantiatingTemplate() 349 SemaRef, in InstantiatingTemplate() 359 SemaRef, in InstantiatingTemplate() 480 atTemplateEnd(SemaRef.TemplateInstCallbacks, SemaRef, in Clear() [all …]
|
| H A D | SemaOpenMP.cpp | 232 Sema &SemaRef; member in __anon296aa5740111::DSAStackTy 2933 Sema &SemaRef; member in __anon296aa5741d11::VarDeclFilterCCC 2954 Sema &SemaRef; member in __anon296aa5741d11::VarOrFuncDeclFilterCCC 3115 Sema &SemaRef; member in __anon296aa5741e11::LocalVarRefChecker 3138 explicit LocalVarRefChecker(Sema &SemaRef) : SemaRef(SemaRef) {} in LocalVarRefChecker() argument 3611 Sema &SemaRef; member in __anon296aa5742011::DSAAttrChecker 8056 : SemaRef(SemaRef), Stack(Stack), CurLCDecl(CurLCDecl), in LoopCounterRefChecker() 9572 SemaRef in checkOpenMPLoop() 9577 SemaRef); in checkOpenMPLoop() 9806 SemaRef in checkOpenMPLoop() [all …]
|
| H A D | SemaAvailability.cpp | 651 Sema &SemaRef; member in __anon8b6ebe000411::DiagnoseUnguardedAvailability 662 DiagnoseUnguardedAvailability(Sema &SemaRef, Decl *Ctx) in DiagnoseUnguardedAvailability() argument 663 : SemaRef(SemaRef), Ctx(Ctx) { in DiagnoseUnguardedAvailability() 714 << (!SemaRef.getLangOpts().ObjC); in VisitObjCAvailabilityCheckExpr() 752 SemaRef.Context, in DiagnoseDeclAvailability() 760 SemaRef.Diag(Range.getBegin(), DiagKind) in DiagnoseDeclAvailability() 763 SemaRef.Diag(OffendingDecl->getLocation(), in DiagnoseDeclAvailability() 766 << SemaRef.Context.getTargetInfo() in DiagnoseDeclAvailability() 773 << (SemaRef.getLangOpts().ObjC ? /*@available*/ 0 in DiagnoseDeclAvailability() 804 const SourceManager &SM = SemaRef.getSourceManager(); in DiagnoseDeclAvailability() [all …]
|
| H A D | SemaInit.cpp | 286 Sema &SemaRef; member in __anona51cf9f90111::InitListChecker 296 DummyExpr = new (SemaRef.Context) NoInitExpr(SemaRef.Context.VoidTy); in getDummyInit() 559 SemaRef, Entity, in PerformEmptyInit() 1306 SemaRef.Context.getTypeSize(SemaRef.Context.getSizeType()), in CheckListElementTypes() 1587 SemaRef.Diag(expr->getBeginLoc(), in CheckScalarType() 1637 SemaRef.Diag(IList->getBeginLoc(), in CheckReferenceType() 1699 if (!SemaRef.getLangOpts().OpenCL && !SemaRef.getLangOpts().HLSL ) { in CheckVectorType() 1765 SemaRef.Diag(IList->getBeginLoc(), in CheckVectorType() 1780 SemaRef.Diag(IList->getBeginLoc(), in CheckVectorType() 2607 SemaRef.diagnoseTypo( in CheckDesignatedInitializer() [all …]
|
| H A D | SemaLookup.cpp | 94 Sema &SemaRef; member in __anon5c0384df0111::UnqualUsingDirectiveSet 102 UnqualUsingDirectiveSet(Sema &SemaRef) : SemaRef(SemaRef) {} in UnqualUsingDirectiveSet() argument 121 if (SemaRef.isVisible(I)) in visitScopeChain() 1857 return isReachableSlow(SemaRef, D); in isAcceptableSlow() 1924 if (SemaRef.getCurrentModule() && in isReachableSlow() 2098 if (isVisible(SemaRef, ND)) in isAvailableForLookup() 5033 if (SemaRef.getLangOpts().C99) in AddKeywordsToConsumer() 5035 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) in AddKeywordsToConsumer() 5074 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer() 5097 if (SemaRef.getLangOpts().C11) { in AddKeywordsToConsumer() [all …]
|
| H A D | TreeTransform.h | 120 Sema &SemaRef; 129 TreeTransform(Sema &SemaRef) : SemaRef(SemaRef) { } in TreeTransform() argument 3723 SemaRef.Context, in RebuildPackExpansion() 11000 assert(SemaRef.Context.hasSameType(D->getType(), SemaRef.Context.IntTy) && in TransformOMPIteratorExpr() 12275 = SemaRef.Context.getTrivialTypeSourceInfo(SemaRef.GetTypeFromParser(T), in TransformCXXPseudoDestructorExpr() 14537 SemaRef.Context.UnsignedCharTy, SemaRef.Context.UnsignedShortTy, in RebuildArrayType() 14538 SemaRef.Context.UnsignedIntTy, SemaRef.Context.UnsignedLongTy, in RebuildArrayType() 14539 SemaRef.Context.UnsignedLongLongTy, SemaRef.Context.UnsignedInt128Ty in RebuildArrayType() 14632 llvm::APInt numElements(SemaRef.Context.getIntWidth(SemaRef.Context.IntTy), in RebuildExtVectorType() 14635 = IntegerLiteral::Create(SemaRef.Context, numElements, SemaRef.Context.IntTy, in RebuildExtVectorType() [all …]
|
| H A D | SemaExprMember.cpp | 134 switch (SemaRef.ExprEvalContexts.back().Context) { in ClassifyImplicitMemberAccess() 137 if (isField && SemaRef.getLangOpts().CPlusPlus11) in ClassifyImplicitMemberAccess() 197 static void diagnoseInstanceReference(Sema &SemaRef, in diagnoseInstanceReference() argument 668 DC = SemaRef.computeDeclContext(SS, false); in LookupMemberExprInRecord() 670 if (SemaRef.RequireCompleteDeclContext(SS, DC)) { in LookupMemberExprInRecord() 686 SemaRef.LookupQualifiedName(R, DC, SS); in LookupMemberExprInRecord() 695 Sema &SemaRef; in LookupMemberExprInRecord() member 703 TE = SemaRef.CorrectTypoDelayed( in LookupMemberExprInRecord() 705 [=, &SemaRef](const TypoCorrection &TC) { in LookupMemberExprInRecord() 712 SemaRef.diagnoseTypo(TC, SemaRef.PDiag(diag::err_no_member_suggest) in LookupMemberExprInRecord() [all …]
|
| H A D | SemaStmt.cpp | 867 Sema &SemaRef; member in __anonb6e159cd0a11::CommaVisitor 869 CommaVisitor(Sema &SemaRef) : Inherited(SemaRef.Context), SemaRef(SemaRef) {} in CommaVisitor() argument 2397 SemaRef.FinalizeDeclaration(Decl); in FinishForRangeVarDecl() 2439 DeclContext *DC = SemaRef.CurContext; in BuildForRangeVarDecl() 2591 *BeginExpr = SemaRef.ActOnCoawaitExpr(SemaRef.getCurScope(), ColonLoc, in BuildNonArrayForRange() 2707 Sema::SFINAETrap Trap(SemaRef); in RebuildForRangeWithDereference() 2725 return SemaRef.ActOnCXXForRangeStmt( in RebuildForRangeWithDereference() 3130 SemaRef.Diag(VD->getLocation(), in DiagnoseForRangeReferenceVariableCopies() 3188 ASTContext &Ctx = SemaRef.Context; in DiagnoseForRangeConstVariableCopies() 3214 if (SemaRef.inTemplateInstantiation()) in DiagnoseForRangeVariableCopies() [all …]
|
| H A D | SemaDeclCXX.cpp | 1918 SemaRef.Diag( in CheckConstexprDeclStmt() 2280 SemaRef.Diag( in CheckConstexprFunctionBody() 2358 SemaRef.Diag( in CheckConstexprFunctionBody() 4761 new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, in BuildImplicitBaseInitializer() 4886 CXXMemberInit = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, in BuildImplicitMemberInitializer() 4892 CXXMemberInit = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, in BuildImplicitMemberInitializer() 4925 = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, Field, in BuildImplicitMemberInitializer() 5454 SemaRef.getSourceManager(), SemaRef.getLangOpts())); in DiagnoseBaseOrMemInitializerOrder() 15820 SemaRef.Context.getCanonicalType(SemaRef.Context.getSizeType()); in CheckOperatorNewDeclaration() 15858 ? SemaRef.Context.getCanonicalType(SemaRef.Context.getPointerType( in CheckOperatorDeleteDeclaration() [all …]
|
| H A D | SemaCodeComplete.cpp | 157 Sema &SemaRef; member in __anon3bc9fbb90111::ResultBuilder 216 : SemaRef(SemaRef), Allocator(Allocator), CCTUInfo(CCTUInfo), in ResultBuilder() 245 return SemaRef.CodeCompleter && in includeCodePatterns() 2094 if (SemaRef.getLangOpts().ObjC) in AddOrdinaryNameResults() 2221 if (SemaRef.getLangOpts().ObjC) in AddOrdinaryNameResults() 2261 if (SemaRef.getCurFunction() && in AddOrdinaryNameResults() 2313 if (SemaRef.getLangOpts().CPlusPlus || SemaRef.getLangOpts().C99) in AddOrdinaryNameResults() 2332 if (SemaRef.getLangOpts().CPlusPlus11 || SemaRef.getLangOpts().ObjC) { in AddOrdinaryNameResults() 2376 else if (SemaRef.getCurBlock() && in AddOrdinaryNameResults() 2613 if (SemaRef.getLangOpts().ObjC) { in AddOrdinaryNameResults() [all …]
|
| H A D | CodeCompleteConsumer.cpp | 641 Sema &SemaRef, CodeCompletionContext Context, CodeCompletionResult *Results, in ProcessCodeCompleteResults() argument 648 StringRef Filter = SemaRef.getPreprocessor().getCodeCompletionFilter(); in ProcessCodeCompleteResults() 670 SemaRef, Context, getAllocator(), CCTUInfo, in ProcessCodeCompleteResults() 685 SemaRef, Context, getAllocator(), CCTUInfo, in ProcessCodeCompleteResults() 699 SourceManager &SM = SemaRef.SourceMgr; in ProcessCodeCompleteResults() 704 EInfo.second += Lexer::MeasureTokenLength(ELoc, SM, SemaRef.LangOpts); in ProcessCodeCompleteResults() 749 Sema &SemaRef, unsigned CurrentArg, OverloadCandidate *Candidates, in ProcessOverloadCandidates() argument 752 OpenParLoc.print(OS, SemaRef.getSourceManager()); in ProcessOverloadCandidates() 757 CurrentArg, SemaRef, getAllocator(), CCTUInfo, in ProcessOverloadCandidates()
|
| H A D | SemaSYCL.cpp | 52 static bool isZeroSizedArray(Sema &SemaRef, QualType Ty) { in isZeroSizedArray() argument 53 if (const auto *CAT = SemaRef.getASTContext().getAsConstantArrayType(Ty)) in isZeroSizedArray()
|
| H A D | SemaTemplate.cpp | 948 SemaRef.Context, TArg, in translateTemplateArgument() 969 NamedDecl *PrevDecl = SemaRef.LookupSingleName( in maybeDiagnoseTemplateParameterShadow() 2097 Sema &SemaRef, in ExtractTypeForDeductionGuide() argument 2140 : SemaRef(S), Template(Template) {} in ConvertConstructorToDeductionGuideTransform() 2142 Sema &SemaRef; member 2161 LocalInstantiationScope Scope(SemaRef); in transformConstructor() 2410 NewDefArg = new (SemaRef.Context) in transformFunctionTypeParam() 5146 SubstDefaultTemplateArgument(Sema &SemaRef, in SubstDefaultTemplateArgument() argument 5207 SubstDefaultTemplateArgument(Sema &SemaRef, in SubstDefaultTemplateArgument() argument 5259 SubstDefaultTemplateArgument(Sema &SemaRef, in SubstDefaultTemplateArgument() argument [all …]
|
| H A D | SemaOverload.cpp | 5990 if (SemaRef.isSFINAEContext()) in diagnoseNoViableConversion() 6017 if (SemaRef.isSFINAEContext()) in recordConversion() 7898 Sema &SemaRef; member in __anon85f2cfc10b11::BuiltinCandidateTypeSet 7911 BuiltinCandidateTypeSet(Sema &SemaRef) in BuiltinCandidateTypeSet() argument 7915 SemaRef(SemaRef), in BuiltinCandidateTypeSet() 7916 Context(SemaRef.Context) { } in BuiltinCandidateTypeSet() 8118 if (!SemaRef.isCompleteType(Loc, Ty)) in AddTypesConvertedFrom() 12899 SemaRef.LookupQualifiedName(R, DC); in DiagnoseTwoPhaseLookup() 13009 Sema &SemaRef; member in __anon85f2cfc12011::BuildRecoveryCallExprRAII 13042 if (SemaRef.IsBuildingRecoveryCallExpr) in BuildRecoveryCallExpr() [all …]
|
| H A D | SemaExprCXX.cpp | 704 getUuidAttrOfType(Sema &SemaRef, QualType QT, in getUuidAttrOfType() argument 3456 SemaRef.getLangOpts(), true); in DiagnoseMismatchedNewDelete() 8324 static ExprResult attemptRecovery(Sema &SemaRef, in attemptRecovery() argument 8434 SemaRef.clearDelayedTypo(TE); in EmitAllDiagnostics() 8482 Sema::SFINAETrap Trap(SemaRef); in TryTransform() 8522 SemaRef.clearDelayedTypo(TE); in CheckForRecursiveTypos() 8551 SemaRef.TypoExprs.clear(); in RecursiveTransformLoop() 8619 auto &SemaTypoExprs = SemaRef.TypoExprs; in RecursiveTransformLoop() 8627 SemaRef.clearDelayedTypo(TE); in RecursiveTransformLoop() 8682 auto &State = SemaRef.getTypoExprState(E); in TransformTypoExpr() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Template.h | 312 Sema &SemaRef; 368 : SemaRef(SemaRef), Outer(SemaRef.CurrentInstantiationScope), in SemaRef() function 370 SemaRef.CurrentInstantiationScope = this; in SemaRef() 381 const Sema &getSema() const { return SemaRef; } in getSema() 391 SemaRef.CurrentInstantiationScope = Outer; in Exit() 431 SemaRef.CurrentInstantiationScope = oldScope; in cloneScopes() 500 Sema &SemaRef; variable 523 TemplateDeclInstantiator(Sema &SemaRef, DeclContext *Owner, in TemplateDeclInstantiator() argument 525 : SemaRef(SemaRef), in TemplateDeclInstantiator() 526 SubstIndex(SemaRef, SemaRef.ArgumentPackSubstitutionIndex), in TemplateDeclInstantiator() [all …]
|
| H A D | Lookup.h | 145 LookupResult(Sema &SemaRef, const DeclarationNameInfo &NameInfo, 148 : SemaPtr(&SemaRef), NameInfo(NameInfo), LookupKind(LookupKind), 158 LookupResult(Sema &SemaRef, DeclarationName Name, 161 : SemaPtr(&SemaRef), NameInfo(Name, NameLoc), LookupKind(LookupKind), 349 static bool isVisible(Sema &SemaRef, NamedDecl *D); 351 static bool isReachable(Sema &SemaRef, NamedDecl *D); 353 static bool isAcceptable(Sema &SemaRef, NamedDecl *D, in isAcceptable() argument 355 return Kind == Sema::AcceptableKind::Visible ? isVisible(SemaRef, D) in isAcceptable() 381 static bool isAvailableForLookup(Sema &SemaRef, NamedDecl *ND); 396 static bool isAcceptableSlow(Sema &SemaRef, NamedDecl *D, [all …]
|
| H A D | SemaInternal.h | 91 TypoCorrectionConsumer(Sema &SemaRef, in TypoCorrectionConsumer() argument 99 SavedTCIndex(0), SemaRef(SemaRef), S(S), in TypoCorrectionConsumer() 102 Result(SemaRef, TypoName, LookupKind), in TypoCorrectionConsumer() 103 Namespaces(SemaRef.Context, SemaRef.CurContext, SS), in TypoCorrectionConsumer() 201 ASTContext &getContext() const { return SemaRef.Context; } in getContext() 309 Sema &SemaRef; variable
|
| /llvm-project-15.0.7/clang/include/clang/Serialization/ |
| H A D | ASTWriter.h | 496 void WriteSelectors(Sema &SemaRef); 497 void WriteReferencedSelectorsPool(Sema &SemaRef); 503 void WriteOpenCLExtensions(Sema &SemaRef); 504 void WriteCUDAPragmas(Sema &SemaRef); 506 void WriteLateParsedTemplates(Sema &SemaRef); 507 void WriteOptimizePragmaOptions(Sema &SemaRef); 508 void WriteMSStructPragmaOptions(Sema &SemaRef); 509 void WriteMSPointersToMembersPragmaOptions(Sema &SemaRef); 510 void WritePackPragmaOptions(Sema &SemaRef); 511 void WriteFloatControlPragmaOptions(Sema &SemaRef); [all …]
|
| H A D | ModuleFileExtension.h | 132 virtual void writeExtensionContents(Sema &SemaRef,
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTWriter.cpp | 4501 Context = &SemaRef.Context; in WriteAST() 4502 PP = &SemaRef.PP; in WriteAST() 4542 Preprocessor &PP = SemaRef.PP; in WriteASTCore() 4616 if (!SemaRef.VTableUses.empty()) { in WriteASTCore() 4620 VTableUses.push_back(SemaRef.VTablesUsed[SemaRef.VTableUses[I].first]); in WriteASTCore() 4640 if (SemaRef.StdNamespace || SemaRef.StdBadAlloc || SemaRef.StdAlignValT) { in WriteASTCore() 4908 WriteSelectors(SemaRef); in WriteASTCore() 4910 WriteLateParsedTemplates(SemaRef); in WriteASTCore() 4913 WriteOpenCLExtensions(SemaRef); in WriteASTCore() 4914 WriteCUDAPragmas(SemaRef); in WriteASTCore() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Interpreter/ |
| H A D | InterpreterTest.cpp | 246 Sema &SemaRef = Interp.getCompilerInstance()->getSema(); local 247 ASTContext &C = SemaRef.getASTContext(); 249 LookupResult R(SemaRef, DeclName, SourceLocation(), Sema::LookupOrdinaryName); 250 SemaRef.LookupName(R, SemaRef.TUScope);
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | Internals.h | 151 Sema &SemaRef; variable 160 : Ctx(Ctx), OrigGCMode(OrigGCMode), SemaRef(sema), TA(TA), in MigrationPass()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | TestModuleFileExtension.h | 33 void writeExtensionContents(Sema &SemaRef,
|