| /freebsd-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaTemplateInstantiateDecl.cpp | 56 SemaRef, in SubstQualifier() 889 DI = SemaRef.Context.getTrivialTypeSourceInfo(SemaRef.Context.IntTy); in InstantiateTypedefNameDecl() 1081 if (SemaRef.getLangOpts().OpenCL) in VisitVarDecl() 1392 SemaRef.Context.setManglingNumber(Enum, SemaRef.Context.getManglingNumber(D)); in VisitEnumDecl() 2485 SemaRef.Context, in VisitCXXMethodDecl() 2859 T = SemaRef.Context.IntTy; in VisitNonTypeTemplateParmDecl() 3026 SemaRef.Context, in VisitTemplateTemplateParmDecl() 3131 SemaRef.Context.getCanonicalType(SemaRef.Context.getRecordType(RD)))); in VisitUsingDecl() 3812 if (SemaRef.getLangOpts().OpenCL) in VisitVarTemplateSpecializationDecl() 4634 atTemplateEnd(SemaRef.TemplateInstCallbacks, SemaRef, ActiveInst); in InitFunctionInstantiation() [all …]
|
| H A D | SemaTemplateInstantiate.cpp | 240 : SemaRef(SemaRef) { in InstantiatingTemplate() 266 atTemplateBegin(SemaRef.TemplateInstCallbacks, SemaRef, Inst); in InstantiatingTemplate() 289 SemaRef, in InstantiatingTemplate() 314 SemaRef, in InstantiatingTemplate() 325 SemaRef, in InstantiatingTemplate() 336 SemaRef, in InstantiatingTemplate() 345 SemaRef, in InstantiatingTemplate() 355 SemaRef, in InstantiatingTemplate() 365 SemaRef, in InstantiatingTemplate() 486 atTemplateEnd(SemaRef.TemplateInstCallbacks, SemaRef, in Clear() [all …]
|
| H A D | SemaOpenMP.cpp | 212 Sema &SemaRef; member in __anon4581b7f80111::DSAStackTy 2747 Sema &SemaRef; member in __anon4581b7f81811::VarDeclFilterCCC 2769 Sema &SemaRef; member in __anon4581b7f81811::VarOrFuncDeclFilterCCC 2930 Sema &SemaRef; member in __anon4581b7f81911::LocalVarRefChecker 2953 explicit LocalVarRefChecker(Sema &SemaRef) : SemaRef(SemaRef) {} in LocalVarRefChecker() argument 3413 Sema &SemaRef; member in __anon4581b7f81b11::DSAAttrChecker 7526 : SemaRef(SemaRef), Stack(Stack), CurLCDecl(CurLCDecl), in LoopCounterRefChecker() 9042 SemaRef in checkOpenMPLoop() 9047 SemaRef); in checkOpenMPLoop() 9273 SemaRef in checkOpenMPLoop() [all …]
|
| H A D | SemaAvailability.cpp | 652 Sema &SemaRef; member in __anon6612a3840411::DiagnoseUnguardedAvailability 663 DiagnoseUnguardedAvailability(Sema &SemaRef, Decl *Ctx) in DiagnoseUnguardedAvailability() argument 664 : SemaRef(SemaRef), Ctx(Ctx) { in DiagnoseUnguardedAvailability() 715 << (!SemaRef.getLangOpts().ObjC); in VisitObjCAvailabilityCheckExpr() 753 SemaRef.Context, in DiagnoseDeclAvailability() 761 SemaRef.Diag(Range.getBegin(), DiagKind) in DiagnoseDeclAvailability() 764 SemaRef.Diag(OffendingDecl->getLocation(), in DiagnoseDeclAvailability() 767 << SemaRef.Context.getTargetInfo() in DiagnoseDeclAvailability() 774 << (SemaRef.getLangOpts().ObjC ? /*@available*/ 0 in DiagnoseDeclAvailability() 805 const SourceManager &SM = SemaRef.getSourceManager(); in DiagnoseDeclAvailability() [all …]
|
| H A D | SemaInit.cpp | 286 Sema &SemaRef; member in __anon44859b7d0111::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) { in CheckVectorType() 1765 SemaRef.Diag(IList->getBeginLoc(), in CheckVectorType() 1780 SemaRef.Diag(IList->getBeginLoc(), in CheckVectorType() 2579 SemaRef.diagnoseTypo( in CheckDesignatedInitializer() [all …]
|
| H A D | TreeTransform.h | 120 Sema &SemaRef; 129 TreeTransform(Sema &SemaRef) : SemaRef(SemaRef) { } in TreeTransform() argument 3660 SemaRef.Context, in RebuildPackExpansion() 10737 assert(SemaRef.Context.hasSameType(D->getType(), SemaRef.Context.IntTy) && in TransformOMPIteratorExpr() 11994 = SemaRef.Context.getTrivialTypeSourceInfo(SemaRef.GetTypeFromParser(T), in TransformCXXPseudoDestructorExpr() 14242 SemaRef.Context.UnsignedCharTy, SemaRef.Context.UnsignedShortTy, in RebuildArrayType() 14243 SemaRef.Context.UnsignedIntTy, SemaRef.Context.UnsignedLongTy, in RebuildArrayType() 14244 SemaRef.Context.UnsignedLongLongTy, SemaRef.Context.UnsignedInt128Ty in RebuildArrayType() 14337 llvm::APInt numElements(SemaRef.Context.getIntWidth(SemaRef.Context.IntTy), in RebuildExtVectorType() 14340 = 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() 196 static void diagnoseInstanceReference(Sema &SemaRef, in diagnoseInstanceReference() argument 667 DC = SemaRef.computeDeclContext(SS, false); in LookupMemberExprInRecord() 669 if (SemaRef.RequireCompleteDeclContext(SS, DC)) { in LookupMemberExprInRecord() 685 SemaRef.LookupQualifiedName(R, DC, SS); in LookupMemberExprInRecord() 694 Sema &SemaRef; in LookupMemberExprInRecord() member 702 TE = SemaRef.CorrectTypoDelayed( in LookupMemberExprInRecord() 704 [=, &SemaRef](const TypoCorrection &TC) { in LookupMemberExprInRecord() 711 SemaRef.diagnoseTypo(TC, SemaRef.PDiag(diag::err_no_member_suggest) in LookupMemberExprInRecord() [all …]
|
| H A D | SemaLookup.cpp | 93 Sema &SemaRef; member in __anon781a97630111::UnqualUsingDirectiveSet 101 UnqualUsingDirectiveSet(Sema &SemaRef) : SemaRef(SemaRef) {} in UnqualUsingDirectiveSet() argument 120 if (SemaRef.isVisible(I)) in visitScopeChain() 3760 if (SemaRef.getLangOpts().CPlusPlus) { in lookupVisibleDecls() 4718 if (SemaRef.getLangOpts().C99) in AddKeywordsToConsumer() 4720 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) in AddKeywordsToConsumer() 4722 else if (SemaRef.getLangOpts().C99) in AddKeywordsToConsumer() 4759 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer() 4782 if (SemaRef.getLangOpts().C11) { in AddKeywordsToConsumer() 4790 if (SemaRef.getCurFunctionOrMethodDecl() || SemaRef.getCurBlock()) { in AddKeywordsToConsumer() [all …]
|
| H A D | SemaStmt.cpp | 850 Sema &SemaRef; member in __anon5649fb510a11::CommaVisitor 852 CommaVisitor(Sema &SemaRef) : Inherited(SemaRef.Context), SemaRef(SemaRef) {} in CommaVisitor() argument 2360 SemaRef.FinalizeDeclaration(Decl); in FinishForRangeVarDecl() 2402 DeclContext *DC = SemaRef.CurContext; in BuildForRangeVarDecl() 2553 *BeginExpr = SemaRef.ActOnCoawaitExpr(SemaRef.getCurScope(), ColonLoc, in BuildNonArrayForRange() 2669 Sema::SFINAETrap Trap(SemaRef); in RebuildForRangeWithDereference() 2687 return SemaRef.ActOnCXXForRangeStmt( in RebuildForRangeWithDereference() 3092 SemaRef.Diag(VD->getLocation(), in DiagnoseForRangeReferenceVariableCopies() 3150 ASTContext &Ctx = SemaRef.Context; in DiagnoseForRangeConstVariableCopies() 3176 if (SemaRef.inTemplateInstantiation()) in DiagnoseForRangeVariableCopies() [all …]
|
| H A D | SemaCodeComplete.cpp | 153 Sema &SemaRef; member in __anon166de13d0111::ResultBuilder 212 : SemaRef(SemaRef), Allocator(Allocator), CCTUInfo(CCTUInfo), in ResultBuilder() 241 return SemaRef.CodeCompleter && in includeCodePatterns() 2088 if (SemaRef.getLangOpts().ObjC) in AddOrdinaryNameResults() 2216 if (SemaRef.getLangOpts().ObjC) in AddOrdinaryNameResults() 2256 if (SemaRef.getCurFunction() && in AddOrdinaryNameResults() 2308 if (SemaRef.getLangOpts().CPlusPlus || SemaRef.getLangOpts().C99) in AddOrdinaryNameResults() 2327 if (SemaRef.getLangOpts().CPlusPlus11 || SemaRef.getLangOpts().ObjC) { in AddOrdinaryNameResults() 2371 else if (SemaRef.getCurBlock() && in AddOrdinaryNameResults() 2608 if (SemaRef.getLangOpts().ObjC) { in AddOrdinaryNameResults() [all …]
|
| H A D | CodeCompleteConsumer.cpp | 536 Sema &SemaRef, CodeCompletionContext Context, CodeCompletionResult *Results, in ProcessCodeCompleteResults() argument 544 StringRef Filter = SemaRef.getPreprocessor().getCodeCompletionFilter(); in ProcessCodeCompleteResults() 566 SemaRef, Context, getAllocator(), CCTUInfo, in ProcessCodeCompleteResults() 581 SemaRef, Context, getAllocator(), CCTUInfo, in ProcessCodeCompleteResults() 595 SourceManager &SM = SemaRef.SourceMgr; in ProcessCodeCompleteResults() 600 EInfo.second += Lexer::MeasureTokenLength(ELoc, SM, SemaRef.LangOpts); in ProcessCodeCompleteResults() 645 Sema &SemaRef, unsigned CurrentArg, OverloadCandidate *Candidates, in ProcessOverloadCandidates() argument 648 OpenParLoc.print(OS, SemaRef.getSourceManager()); in ProcessOverloadCandidates() 653 CurrentArg, SemaRef, getAllocator(), CCTUInfo, in ProcessOverloadCandidates()
|
| H A D | SemaDeclCXX.cpp | 1908 SemaRef.Diag( in CheckConstexprDeclStmt() 2246 SemaRef.Diag( in CheckConstexprFunctionBody() 2324 SemaRef.Diag( in CheckConstexprFunctionBody() 4681 new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, in BuildImplicitBaseInitializer() 4806 CXXMemberInit = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, in BuildImplicitMemberInitializer() 4812 CXXMemberInit = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, in BuildImplicitMemberInitializer() 4845 = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, Field, in BuildImplicitMemberInitializer() 5375 SemaRef.getSourceManager(), SemaRef.getLangOpts())); in DiagnoseBaseOrMemInitializerOrder() 15621 SemaRef.Context.getCanonicalType(SemaRef.Context.getSizeType()); in CheckOperatorNewDeclaration() 15659 ? SemaRef.Context.getCanonicalType(SemaRef.Context.getPointerType( in CheckOperatorDeleteDeclaration() [all …]
|
| H A D | SemaTemplate.cpp | 943 SemaRef.Context, TArg, in translateTemplateArgument() 2092 Sema &SemaRef, in ExtractTypeForDeductionGuide() argument 2135 : SemaRef(S), Template(Template) {} in ConvertConstructorToDeductionGuideTransform() 2137 Sema &SemaRef; member 2156 LocalInstantiationScope Scope(SemaRef); in transformConstructor() 2277 SemaRef.AttachTypeConstraint( in transformTemplateParameter() 2405 NewDefArg = new (SemaRef.Context) in transformFunctionTypeParam() 5088 SubstDefaultTemplateArgument(Sema &SemaRef, in SubstDefaultTemplateArgument() argument 5145 SubstDefaultTemplateArgument(Sema &SemaRef, in SubstDefaultTemplateArgument() argument 5197 SubstDefaultTemplateArgument(Sema &SemaRef, in SubstDefaultTemplateArgument() argument [all …]
|
| H A D | SemaOverload.cpp | 5928 if (SemaRef.isSFINAEContext()) in diagnoseNoViableConversion() 5955 if (SemaRef.isSFINAEContext()) in recordConversion() 7813 Sema &SemaRef; member in __anon041893450b11::BuiltinCandidateTypeSet 7826 BuiltinCandidateTypeSet(Sema &SemaRef) in BuiltinCandidateTypeSet() argument 7830 SemaRef(SemaRef), in BuiltinCandidateTypeSet() 7831 Context(SemaRef.Context) { } in BuiltinCandidateTypeSet() 8033 if (!SemaRef.isCompleteType(Loc, Ty)) in AddTypesConvertedFrom() 12728 SemaRef.LookupQualifiedName(R, DC); in DiagnoseTwoPhaseLookup() 12838 Sema &SemaRef; member in __anon041893451e11::BuildRecoveryCallExprRAII 12871 if (SemaRef.IsBuildingRecoveryCallExpr) in BuildRecoveryCallExpr() [all …]
|
| H A D | SemaCoroutine.cpp | 254 static ExprResult buildOperatorCoawaitLookupExpr(Sema &SemaRef, Scope *S, in buildOperatorCoawaitLookupExpr() argument 257 SemaRef.Context.DeclarationNames.getCXXOperatorName(OO_Coawait); in buildOperatorCoawaitLookupExpr() 258 LookupResult Operators(SemaRef, OpName, SourceLocation(), in buildOperatorCoawaitLookupExpr() 260 SemaRef.LookupName(Operators, S); in buildOperatorCoawaitLookupExpr() 268 SemaRef.Context, /*NamingClass*/ nullptr, NestedNameSpecifierLoc(), in buildOperatorCoawaitLookupExpr() 277 static ExprResult buildOperatorCoawaitCall(Sema &SemaRef, SourceLocation Loc, in buildOperatorCoawaitCall() argument 282 return SemaRef.CreateOverloadedUnaryOp(Loc, UO_Coawait, Functions, E); in buildOperatorCoawaitCall() 285 static ExprResult buildOperatorCoawaitCall(Sema &SemaRef, Scope *S, in buildOperatorCoawaitCall() argument 287 ExprResult R = buildOperatorCoawaitLookupExpr(SemaRef, S, Loc); in buildOperatorCoawaitCall() 290 return buildOperatorCoawaitCall(SemaRef, Loc, E, in buildOperatorCoawaitCall()
|
| H A D | SemaExprCXX.cpp | 701 getUuidAttrOfType(Sema &SemaRef, QualType QT, in getUuidAttrOfType() argument 3410 SemaRef.getLangOpts(), true); in DiagnoseMismatchedNewDelete() 8069 static ExprResult attemptRecovery(Sema &SemaRef, in attemptRecovery() argument 8179 SemaRef.clearDelayedTypo(TE); in EmitAllDiagnostics() 8227 Sema::SFINAETrap Trap(SemaRef); in TryTransform() 8267 SemaRef.clearDelayedTypo(TE); in CheckForRecursiveTypos() 8296 SemaRef.TypoExprs.clear(); in RecursiveTransformLoop() 8364 auto &SemaTypoExprs = SemaRef.TypoExprs; in RecursiveTransformLoop() 8372 SemaRef.clearDelayedTypo(TE); in RecursiveTransformLoop() 8427 auto &State = SemaRef.getTypoExprState(E); in TransformTypoExpr() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Template.h | 278 Sema &SemaRef; 334 : SemaRef(SemaRef), Outer(SemaRef.CurrentInstantiationScope), in SemaRef() argument 336 SemaRef.CurrentInstantiationScope = this; in SemaRef() 347 const Sema &getSema() const { return SemaRef; } in getSema() 357 SemaRef.CurrentInstantiationScope = Outer; in Exit() 397 SemaRef.CurrentInstantiationScope = oldScope; in cloneScopes() 466 Sema &SemaRef; variable 489 TemplateDeclInstantiator(Sema &SemaRef, DeclContext *Owner, in TemplateDeclInstantiator() argument 491 : SemaRef(SemaRef), in TemplateDeclInstantiator() 492 SubstIndex(SemaRef, SemaRef.ArgumentPackSubstitutionIndex), in TemplateDeclInstantiator() [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
|
| 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) { in isVisible() argument 356 return isVisibleSlow(SemaRef, D); in isVisible() 372 static bool isVisibleSlow(Sema &SemaRef, NamedDecl *D);
|
| H A D | Sema.h | 1591 Sema &SemaRef; variable 1596 : DiagnosticBuilder(DB), SemaRef(SemaRef), DiagID(DiagID) {} in ImmediateDiagBuilder() 1598 : DiagnosticBuilder(DB), SemaRef(SemaRef), DiagID(DiagID) {} in ImmediateDiagBuilder() 1623 SemaRef.EmitCurrentDiagnostic(DiagID); in ~ImmediateDiagBuilder() 9033 Sema &SemaRef; 9095 Sema &SemaRef; variable 9103 : SemaRef(SemaRef), PrevSFINAEErrors(SemaRef.NumSFINAEErrors), in SemaRef() argument 9110 if (!SemaRef.isSFINAEContext()) in SemaRef() 9135 Sema &SemaRef; variable 9141 : SemaRef(SemaRef), Trap(SemaRef, true), in TentativeAnalysisScope() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Serialization/ |
| H A D | ASTWriter.h | 505 void WriteSelectors(Sema &SemaRef); 506 void WriteReferencedSelectorsPool(Sema &SemaRef); 512 void WriteOpenCLExtensions(Sema &SemaRef); 513 void WriteCUDAPragmas(Sema &SemaRef); 515 void WriteLateParsedTemplates(Sema &SemaRef); 516 void WriteOptimizePragmaOptions(Sema &SemaRef); 517 void WriteMSStructPragmaOptions(Sema &SemaRef); 518 void WriteMSPointersToMembersPragmaOptions(Sema &SemaRef); 519 void WritePackPragmaOptions(Sema &SemaRef); 520 void WriteFloatControlPragmaOptions(Sema &SemaRef); [all …]
|
| H A D | ModuleFileExtension.h | 130 virtual void writeExtensionContents(Sema &SemaRef,
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTWriter.cpp | 4300 Context = &SemaRef.Context; in WriteAST() 4301 PP = &SemaRef.PP; in WriteAST() 4341 Preprocessor &PP = SemaRef.PP; in WriteASTCore() 4414 if (!SemaRef.VTableUses.empty()) { in WriteASTCore() 4418 VTableUses.push_back(SemaRef.VTablesUsed[SemaRef.VTableUses[I].first]); in WriteASTCore() 4438 if (SemaRef.StdNamespace || SemaRef.StdBadAlloc || SemaRef.StdAlignValT) { in WriteASTCore() 4706 WriteSelectors(SemaRef); in WriteASTCore() 4708 WriteLateParsedTemplates(SemaRef); in WriteASTCore() 4711 WriteOpenCLExtensions(SemaRef); in WriteASTCore() 4712 WriteCUDAPragmas(SemaRef); in WriteASTCore() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/ARCMigrate/ |
| H A D | Internals.h | 151 Sema &SemaRef; variable 162 SemaRef(sema), TA(TA), CapturedDiags(capturedDiags), in MigrationPass()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | TestModuleFileExtension.h | 33 void writeExtensionContents(Sema &SemaRef,
|