/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaTemplateInstantiateDecl.cpp | 58 SemaRef, in SubstQualifier() 990 DI = SemaRef.Context.getTrivialTypeSourceInfo(SemaRef.Context.IntTy); in InstantiateTypedefNameDecl() 1183 if (SemaRef.getLangOpts().OpenCL) in VisitVarDecl() 1500 SemaRef.Context.setManglingNumber(Enum, SemaRef.Context.getManglingNumber(D)); in VisitEnumDecl() 2184 LexicalDC = SemaRef.CurContext; in VisitFunctionDecl() 2643 SemaRef.Context, in VisitCXXMethodDecl() 3040 T = SemaRef.Context.IntTy; in VisitNonTypeTemplateParmDecl() 3214 SemaRef.Context, in VisitTemplateTemplateParmDecl() 3319 SemaRef.Context.getCanonicalType(SemaRef.Context.getRecordType(RD)))); in VisitUsingDecl() 4747 atTemplateEnd(SemaRef.TemplateInstCallbacks, SemaRef, ActiveInst); in InitFunctionInstantiation() [all …]
|
H A D | SemaTemplateInstantiate.cpp | 459 : SemaRef(SemaRef) { in InstantiatingTemplate() 485 atTemplateBegin(SemaRef.TemplateInstCallbacks, SemaRef, Inst); in InstantiatingTemplate() 508 SemaRef, in InstantiatingTemplate() 533 SemaRef, in InstantiatingTemplate() 544 SemaRef, in InstantiatingTemplate() 555 SemaRef, in InstantiatingTemplate() 564 SemaRef, in InstantiatingTemplate() 574 SemaRef, in InstantiatingTemplate() 584 SemaRef, in InstantiatingTemplate() 721 atTemplateEnd(SemaRef.TemplateInstCallbacks, SemaRef, in Clear() [all …]
|
H A D | SemaOpenMP.cpp | 240 Sema &SemaRef; member in __anon61cef30c0111::DSAStackTy 3008 Sema &SemaRef; member in __anon61cef30c1e11::VarDeclFilterCCC 3029 Sema &SemaRef; member in __anon61cef30c1e11::VarOrFuncDeclFilterCCC 3190 Sema &SemaRef; member in __anon61cef30c1f11::LocalVarRefChecker 3213 explicit LocalVarRefChecker(Sema &SemaRef) : SemaRef(SemaRef) {} in LocalVarRefChecker() argument 3688 Sema &SemaRef; member in __anon61cef30c2111::DSAAttrChecker 8290 : SemaRef(SemaRef), Stack(Stack), CurLCDecl(CurLCDecl), in LoopCounterRefChecker() 9870 SemaRef in checkOpenMPLoop() 9875 SemaRef); in checkOpenMPLoop() 10104 SemaRef in checkOpenMPLoop() [all …]
|
H A D | SemaInit.cpp | 285 Sema &SemaRef; member in __anonfc6101910211::InitListChecker 296 DummyExpr = new (SemaRef.Context) NoInitExpr(SemaRef.Context.VoidTy); in getDummyInit() 391 SemaRef.getLangOpts().CPlusPlus in diagnoseInitOverride() 575 SemaRef, Entity, in PerformEmptyInit() 1335 SemaRef.Context.getTypeSize(SemaRef.Context.getSizeType()), in CheckListElementTypes() 1622 SemaRef.getLangOpts().CPlusPlus && !SemaRef.getLangOpts().CPlusPlus11; in CheckScalarType() 1641 SemaRef.Diag(expr->getBeginLoc(), in CheckScalarType() 1693 SemaRef.Diag(IList->getBeginLoc(), in CheckReferenceType() 1757 if (!SemaRef.getLangOpts().OpenCL && !SemaRef.getLangOpts().HLSL ) { in CheckVectorType() 1825 SemaRef.Diag(IList->getBeginLoc(), in CheckVectorType() [all …]
|
H A D | SemaAvailability.cpp | 690 Sema &SemaRef; member in __anon77acdd980411::DiagnoseUnguardedAvailability 701 DiagnoseUnguardedAvailability(Sema &SemaRef, Decl *Ctx) in DiagnoseUnguardedAvailability() argument 702 : SemaRef(SemaRef), Ctx(Ctx) { in DiagnoseUnguardedAvailability() 753 << (!SemaRef.getLangOpts().ObjC); in VisitObjCAvailabilityCheckExpr() 791 SemaRef.Context, in DiagnoseDeclAvailability() 799 SemaRef.Diag(Range.getBegin(), DiagKind) in DiagnoseDeclAvailability() 802 SemaRef.Diag(OffendingDecl->getLocation(), in DiagnoseDeclAvailability() 805 << SemaRef.Context.getTargetInfo() in DiagnoseDeclAvailability() 812 << (SemaRef.getLangOpts().ObjC ? /*@available*/ 0 in DiagnoseDeclAvailability() 843 const SourceManager &SM = SemaRef.getSourceManager(); in DiagnoseDeclAvailability() [all …]
|
H A D | TreeTransform.h | 122 Sema &SemaRef; 131 TreeTransform(Sema &SemaRef) : SemaRef(SemaRef) { } in TreeTransform() argument 3902 SemaRef.Context, in RebuildPackExpansion() 11383 assert(SemaRef.Context.hasSameType(D->getType(), SemaRef.Context.IntTy) && in TransformOMPIteratorExpr() 12686 = SemaRef.Context.getTrivialTypeSourceInfo(SemaRef.GetTypeFromParser(T), in TransformCXXPseudoDestructorExpr() 15009 SemaRef.Context.UnsignedCharTy, SemaRef.Context.UnsignedShortTy, in RebuildArrayType() 15010 SemaRef.Context.UnsignedIntTy, SemaRef.Context.UnsignedLongTy, in RebuildArrayType() 15011 SemaRef.Context.UnsignedLongLongTy, SemaRef.Context.UnsignedInt128Ty in RebuildArrayType() 15090 llvm::APInt numElements(SemaRef.Context.getIntWidth(SemaRef.Context.IntTy), in RebuildExtVectorType() 15093 = IntegerLiteral::Create(SemaRef.Context, numElements, SemaRef.Context.IntTy, in RebuildExtVectorType() [all …]
|
H A D | SemaExprMember.cpp | 95 SemaRef.CXXThisTypeOverride.isNull() && in ClassifyImplicitMemberAccess() 137 switch (SemaRef.ExprEvalContexts.back().Context) { in ClassifyImplicitMemberAccess() 140 if (isField && SemaRef.getLangOpts().CPlusPlus11) in ClassifyImplicitMemberAccess() 203 static void diagnoseInstanceReference(Sema &SemaRef, in diagnoseInstanceReference() argument 700 DC = SemaRef.computeDeclContext(SS, false); in LookupMemberExprInRecord() 718 SemaRef.LookupQualifiedName(R, DC, SS); in LookupMemberExprInRecord() 727 Sema &SemaRef; in LookupMemberExprInRecord() member 735 TE = SemaRef.CorrectTypoDelayed( in LookupMemberExprInRecord() 737 [=, &SemaRef](const TypoCorrection &TC) { in LookupMemberExprInRecord() 744 SemaRef.diagnoseTypo(TC, SemaRef.PDiag(diag::err_no_member_suggest) in LookupMemberExprInRecord() [all …]
|
H A D | SemaLookup.cpp | 96 Sema &SemaRef; member in __anon9467d2770111::UnqualUsingDirectiveSet 104 UnqualUsingDirectiveSet(Sema &SemaRef) : SemaRef(SemaRef) {} in UnqualUsingDirectiveSet() argument 123 if (SemaRef.isVisible(I)) in visitScopeChain() 1870 return isReachableSlow(SemaRef, D); in isAcceptableSlow() 2096 if (isVisible(SemaRef, ND)) in isAvailableForLookup() 5062 if (SemaRef.getLangOpts().C99) in AddKeywordsToConsumer() 5064 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) in AddKeywordsToConsumer() 5103 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer() 5125 if (SemaRef.getLangOpts().C11) { in AddKeywordsToConsumer() 5133 if (SemaRef.getCurFunctionOrMethodDecl() || SemaRef.getCurBlock()) { in AddKeywordsToConsumer() [all …]
|
H A D | SemaStmt.cpp | 874 Sema &SemaRef; member in __anon0e2561650a11::CommaVisitor 876 CommaVisitor(Sema &SemaRef) : Inherited(SemaRef.Context), SemaRef(SemaRef) {} in CommaVisitor() argument 2416 SemaRef.FinalizeDeclaration(Decl); in FinishForRangeVarDecl() 2458 DeclContext *DC = SemaRef.CurContext; in BuildForRangeVarDecl() 2610 *BeginExpr = SemaRef.ActOnCoawaitExpr(SemaRef.getCurScope(), ColonLoc, in BuildNonArrayForRange() 2726 Sema::SFINAETrap Trap(SemaRef); in RebuildForRangeWithDereference() 2744 return SemaRef.ActOnCXXForRangeStmt( in RebuildForRangeWithDereference() 3149 SemaRef.Diag(VD->getLocation(), in DiagnoseForRangeReferenceVariableCopies() 3207 ASTContext &Ctx = SemaRef.Context; in DiagnoseForRangeConstVariableCopies() 3233 if (SemaRef.inTemplateInstantiation()) in DiagnoseForRangeVariableCopies() [all …]
|
H A D | SemaCodeComplete.cpp | 158 Sema &SemaRef; member in __anon28081b510111::ResultBuilder 217 : SemaRef(SemaRef), Allocator(Allocator), CCTUInfo(CCTUInfo), in ResultBuilder() 247 return SemaRef.CodeCompleter && in includeCodePatterns() 2185 if (SemaRef.getLangOpts().ObjC) in AddOrdinaryNameResults() 2313 if (SemaRef.getLangOpts().ObjC) in AddOrdinaryNameResults() 2353 if (SemaRef.getCurFunction() && in AddOrdinaryNameResults() 2405 if (SemaRef.getLangOpts().CPlusPlus || SemaRef.getLangOpts().C99) in AddOrdinaryNameResults() 2424 if (SemaRef.getLangOpts().CPlusPlus11 || SemaRef.getLangOpts().ObjC) { in AddOrdinaryNameResults() 2468 else if (SemaRef.getCurBlock() && in AddOrdinaryNameResults() 2725 if (SemaRef.getLangOpts().C11) { in AddOrdinaryNameResults() [all …]
|
H A D | SemaDeclCXX.cpp | 1987 SemaRef.Diag( in CheckConstexprDeclStmt() 2349 SemaRef.Diag( in CheckConstexprFunctionBody() 2427 SemaRef.Diag( in CheckConstexprFunctionBody() 2502 Sema &SemaRef; in DiagnoseImmediateEscalatingReason() member 2510 : SemaRef(SemaRef), ImmediateFn(FD), in DiagnoseImmediateEscalatingReason() 4994 new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, in BuildImplicitBaseInitializer() 5158 = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, Field, in BuildImplicitMemberInitializer() 5687 SemaRef.getSourceManager(), SemaRef.getLangOpts())); in DiagnoseBaseOrMemInitializerOrder() 16335 SemaRef.Context.getCanonicalType(SemaRef.Context.getSizeType()); in CheckOperatorNewDeclaration() 16373 ? SemaRef.Context.getCanonicalType(SemaRef.Context.getPointerType( in CheckOperatorDeleteDeclaration() [all …]
|
H A D | CodeCompleteConsumer.cpp | 648 Sema &SemaRef, CodeCompletionContext Context, CodeCompletionResult *Results, in ProcessCodeCompleteResults() argument 655 StringRef Filter = SemaRef.getPreprocessor().getCodeCompletionFilter(); in ProcessCodeCompleteResults() 677 SemaRef, Context, getAllocator(), CCTUInfo, in ProcessCodeCompleteResults() 692 SemaRef, Context, getAllocator(), CCTUInfo, in ProcessCodeCompleteResults() 706 SourceManager &SM = SemaRef.SourceMgr; in ProcessCodeCompleteResults() 711 EInfo.second += Lexer::MeasureTokenLength(ELoc, SM, SemaRef.LangOpts); in ProcessCodeCompleteResults() 756 Sema &SemaRef, unsigned CurrentArg, OverloadCandidate *Candidates, in ProcessOverloadCandidates() argument 759 OpenParLoc.print(OS, SemaRef.getSourceManager()); in ProcessOverloadCandidates() 764 CurrentArg, SemaRef, getAllocator(), CCTUInfo, in ProcessOverloadCandidates()
|
H A D | SemaSYCL.cpp | 36 static bool isZeroSizedArray(Sema &SemaRef, QualType Ty) { in isZeroSizedArray() argument 37 if (const auto *CAT = SemaRef.getASTContext().getAsConstantArrayType(Ty)) in isZeroSizedArray()
|
H A D | SemaConcept.cpp | 69 ExprResult recreateBinOp(Sema &SemaRef, ExprResult LHS) const { in recreateBinOp() argument 70 return recreateBinOp(SemaRef, LHS, const_cast<Expr *>(getRHS())); in recreateBinOp() 73 ExprResult recreateBinOp(Sema &SemaRef, ExprResult LHS, in recreateBinOp() argument 85 SemaRef.Context.BoolTy, VK_PRValue, in recreateBinOp() 163 Sema &SemaRef; member 165 SatisfactionStackRAII(Sema &SemaRef, const NamedDecl *ND, in SatisfactionStackRAII() 167 : SemaRef(SemaRef) { in SatisfactionStackRAII() 169 SemaRef.PushSatisfactionStackEntry(ND, FSNID); in SatisfactionStackRAII() 175 SemaRef.PopSatisfactionStackEntry(); in ~SatisfactionStackRAII() 755 AdjustConstraintDepth(Sema &SemaRef, unsigned TemplateDepth) in AdjustConstraintDepth() argument [all …]
|
H A D | SemaTemplate.cpp | 950 SemaRef.Context, TArg, in translateTemplateArgument() 971 NamedDecl *PrevDecl = SemaRef.LookupSingleName( in maybeDiagnoseTemplateParameterShadow() 2239 Sema &SemaRef, in ExtractTypeForDeductionGuide() argument 2282 : SemaRef(S), Template(Template) { in ConvertConstructorToDeductionGuideTransform() 2297 Sema &SemaRef; member 2321 LocalInstantiationScope Scope(SemaRef); in transformConstructor() 2571 QualType Result = SemaRef.BuildFunctionType( in transformFunctionProtoType() 2623 NewDefArg = new (SemaRef.Context) in transformFunctionTypeParam() 3767 ASTContext &Context = SemaRef.getASTContext(); in checkBuiltinTemplateIdType() 3778 SemaRef.Diag(TemplateArgs[1].getLocation(), in checkBuiltinTemplateIdType() [all …]
|
H A D | SemaStmtAttr.cpp | 224 static bool CheckStmtInlineAttr(Sema &SemaRef, const Stmt *OrigSt, in CheckStmtInlineAttr() argument 227 CallExprFinder OrigCEF(SemaRef, OrigSt); in CheckStmtInlineAttr() 228 CallExprFinder CEF(SemaRef, CurSt); in CheckStmtInlineAttr() 241 return SemaRef.Diag(CurSt->getBeginLoc(), in CheckStmtInlineAttr() 255 SemaRef.Diag(CurSt->getBeginLoc(), in CheckStmtInlineAttr() 258 SemaRef.Diag(Callee->getBeginLoc(), diag::note_conflicting_attribute); in CheckStmtInlineAttr()
|
H A D | SemaOverload.cpp | 1392 if (SemaRef.LangOpts.CPlusPlus23) in IsOverloadOrOverrideImpl() 1416 !SemaRef.FunctionParamTypesAreEqual( in IsOverloadOrOverrideImpl() 6410 if (SemaRef.isSFINAEContext()) in diagnoseNoViableConversion() 6437 if (SemaRef.isSFINAEContext()) in recordConversion() 8397 Sema &SemaRef; member in __anon68a0e3591111::BuiltinCandidateTypeSet 8410 BuiltinCandidateTypeSet(Sema &SemaRef) in BuiltinCandidateTypeSet() argument 8414 SemaRef(SemaRef), in BuiltinCandidateTypeSet() 8415 Context(SemaRef.Context) { } in BuiltinCandidateTypeSet() 8617 if (!SemaRef.isCompleteType(Loc, Ty)) in AddTypesConvertedFrom() 13557 SemaRef.LookupQualifiedName(R, DC); in DiagnoseTwoPhaseLookup() [all …]
|
H A D | SemaExpr.cpp | 2390 SemaRef.diagnoseTypo(TC, SemaRef.PDiag(DiagnosticSuggestID) << Typo, in emitEmptyLookupTypoDiagnostic() 2393 SemaRef.diagnoseTypo(TC, SemaRef.PDiag(diag::err_no_member_suggest) in emitEmptyLookupTypoDiagnostic() 6238 : TreeTransform(SemaRef) {} in EnsureImmediateInvocationInDefaultArgs() 18133 TransformToPE(Sema &SemaRef) : BaseTransform(SemaRef) { } in TransformToPE() argument 19159 if (SemaRef.LangOpts.OpenMP) in MarkVarDeclODRUsed() 19160 SemaRef.tryCaptureOpenMPLambdas(V); in MarkVarDeclODRUsed() 19176 if (SemaRef.LangOpts.CUDAIsDevice && !SemaRef.LangOpts.HIPStdPar) { in MarkVarDeclODRUsed() 19205 V->markUsed(SemaRef.Context); in MarkVarDeclODRUsed() 20548 SemaRef.PendingInstantiations in DoMarkVarDeclReferenced() 20571 SemaRef.PendingInstantiations in DoMarkVarDeclReferenced() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Template.h | 373 Sema &SemaRef; 429 : SemaRef(SemaRef), Outer(SemaRef.CurrentInstantiationScope), in SemaRef() function 431 SemaRef.CurrentInstantiationScope = this; in SemaRef() 442 const Sema &getSema() const { return SemaRef; } in getSema() 452 SemaRef.CurrentInstantiationScope = Outer; in Exit() 492 SemaRef.CurrentInstantiationScope = oldScope; in cloneScopes() 561 Sema &SemaRef; variable 586 TemplateDeclInstantiator(Sema &SemaRef, DeclContext *Owner, in TemplateDeclInstantiator() argument 588 : SemaRef(SemaRef), in TemplateDeclInstantiator() 589 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 | 156 LookupResult(Sema &SemaRef, const DeclarationNameInfo &NameInfo, 159 : SemaPtr(&SemaRef), NameInfo(NameInfo), LookupKind(LookupKind), 170 LookupResult(Sema &SemaRef, DeclarationName Name, SourceLocation NameLoc, 173 : SemaPtr(&SemaRef), NameInfo(Name, NameLoc), LookupKind(LookupKind), 369 static bool isVisible(Sema &SemaRef, NamedDecl *D); 371 static bool isReachable(Sema &SemaRef, NamedDecl *D); 373 static bool isAcceptable(Sema &SemaRef, NamedDecl *D, in isAcceptable() argument 375 return Kind == Sema::AcceptableKind::Visible ? isVisible(SemaRef, D) in isAcceptable() 401 static bool isAvailableForLookup(Sema &SemaRef, NamedDecl *ND); 416 static bool isAcceptableSlow(Sema &SemaRef, NamedDecl *D, [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/ |
H A D | ASTWriter.h | 537 void WriteSelectors(Sema &SemaRef); 538 void WriteReferencedSelectorsPool(Sema &SemaRef); 544 void WriteOpenCLExtensions(Sema &SemaRef); 545 void WriteCUDAPragmas(Sema &SemaRef); 547 void WriteLateParsedTemplates(Sema &SemaRef); 548 void WriteOptimizePragmaOptions(Sema &SemaRef); 549 void WriteMSStructPragmaOptions(Sema &SemaRef); 550 void WriteMSPointersToMembersPragmaOptions(Sema &SemaRef); 551 void WritePackPragmaOptions(Sema &SemaRef); 552 void WriteFloatControlPragmaOptions(Sema &SemaRef); [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTWriter.cpp | 4642 Context = &SemaRef.Context; in WriteAST() 4643 PP = &SemaRef.PP; in WriteAST() 4743 Preprocessor &PP = SemaRef.PP; in WriteASTCore() 4823 if (!SemaRef.VTableUses.empty()) { in WriteASTCore() 4827 VTableUses.push_back(SemaRef.VTablesUsed[SemaRef.VTableUses[I].first]); in WriteASTCore() 4847 if (SemaRef.StdNamespace || SemaRef.StdBadAlloc || SemaRef.StdAlignValT) { in WriteASTCore() 5111 WriteSelectors(SemaRef); in WriteASTCore() 5113 WriteLateParsedTemplates(SemaRef); in WriteASTCore() 5116 WriteOpenCLExtensions(SemaRef); in WriteASTCore() 5117 WriteCUDAPragmas(SemaRef); in WriteASTCore() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | Internals.h | 151 Sema &SemaRef; variable 160 : Ctx(Ctx), OrigGCMode(OrigGCMode), SemaRef(sema), TA(TA), in MigrationPass()
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | TestModuleFileExtension.h | 33 void writeExtensionContents(Sema &SemaRef,
|