Home
last modified time | relevance | path

Searched refs:SemaRef (Results 1 – 25 of 37) sorted by relevance

12

/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaTemplateInstantiateDecl.cpp51 SemaRef, in SubstQualifier()
563 DI = SemaRef.Context.getTrivialTypeSourceInfo(SemaRef.Context.IntTy); in InstantiateTypedefNameDecl()
1040 SemaRef.Context.setManglingNumber(Enum, SemaRef.Context.getManglingNumber(D)); in VisitEnumDecl()
1209 SemaRef.LookupQualifiedName(R, DC); in VisitClassTemplateDecl()
2053 SemaRef.Context, in VisitCXXMethodDecl()
2336 T = SemaRef.Context.IntTy; in VisitNonTypeTemplateParmDecl()
2492 SemaRef.Context, in VisitTemplateTemplateParmDecl()
2549 SemaRef.Context.getCanonicalType(SemaRef.Context.getRecordType(RD)))); in VisitUsingDecl()
2788 SemaRef.LookupQualifiedName(Previous, SemaRef.CurContext); in VisitClassScopeFunctionSpecializationDecl()
3735 atTemplateEnd(SemaRef.TemplateInstCallbacks, SemaRef, ActiveInst); in InitFunctionInstantiation()
[all …]
H A DSemaOpenMP.cpp167 Sema &SemaRef; member in __anon45dbc4930111::DSAStackTy
1827 Sema &SemaRef; member in __anon45dbc4931011::VarDeclFilterCCC
1844 Sema &SemaRef; member in __anon45dbc4931011::VarOrFuncDeclFilterCCC
1997 Sema &SemaRef; member in __anon45dbc4931111::LocalVarRefChecker
2020 explicit LocalVarRefChecker(Sema &SemaRef) : SemaRef(SemaRef) {} in LocalVarRefChecker() argument
2189 Sema &SemaRef; member in __anon45dbc4931311::DSAAttrChecker
2477 : Stack(S), SemaRef(SemaRef), ErrorFound(false), CS(CS) {} in DSAAttrChecker()
3955 Sema &SemaRef; member in __anon45dbc4932111::OpenMPIterationSpaceChecker
5229 SemaRef in checkOpenMPLoop()
5234 SemaRef); in checkOpenMPLoop()
[all …]
H A DSemaTemplateInstantiate.cpp218 : SemaRef(SemaRef) { in InstantiatingTemplate()
244 atTemplateBegin(SemaRef.TemplateInstCallbacks, SemaRef, Inst); in InstantiatingTemplate()
267 SemaRef, in InstantiatingTemplate()
292 SemaRef, in InstantiatingTemplate()
303 SemaRef, in InstantiatingTemplate()
314 SemaRef, in InstantiatingTemplate()
323 SemaRef, in InstantiatingTemplate()
333 SemaRef, in InstantiatingTemplate()
343 SemaRef, in InstantiatingTemplate()
404 atTemplateEnd(SemaRef.TemplateInstCallbacks, SemaRef, in Clear()
[all …]
H A DSemaInit.cpp249 Sema &SemaRef; member in __anon3a2dc5580111::InitListChecker
460 SemaRef, Entity, in PerformEmptyInit()
594 SemaRef.Diag(Field->getLocation(), in FillInEmptyInitForField()
821 : SemaRef(S), VerifyOnly(VerifyOnly), in InitListChecker()
1176 SemaRef.Context.getTypeSize(SemaRef.Context.getSizeType()), in CheckListElementTypes()
1258 if (SemaRef.getLangOpts().CPlusPlus) { in CheckSubElementType()
1411 SemaRef.Diag(IList->getBeginLoc(), in CheckScalarType()
1548 if (!SemaRef.getLangOpts().OpenCL) { in CheckVectorType()
2402 SemaRef.diagnoseTypo( in CheckDesignatedInitializer()
2826 SemaRef.Diag(InitRange.getBegin(), in getStructuredSubobjectInit()
[all …]
H A DTreeTransform.h115 Sema &SemaRef;
124 TreeTransform(Sema &SemaRef) : SemaRef(SemaRef) { } in TreeTransform() argument
9832 SemaRef.ActOnStartStmtExpr(); in TransformStmtExpr()
9836 SemaRef.ActOnStmtExprError(); in TransformStmtExpr()
9843 SemaRef.ActOnStmtExprError(); in TransformStmtExpr()
10440 = SemaRef.Context.getTrivialTypeSourceInfo(SemaRef.GetTypeFromParser(T), in TransformCXXPseudoDestructorExpr()
12407 SemaRef.Context.UnsignedCharTy, SemaRef.Context.UnsignedShortTy, in RebuildArrayType()
12408 SemaRef.Context.UnsignedIntTy, SemaRef.Context.UnsignedLongTy, in RebuildArrayType()
12409 SemaRef.Context.UnsignedLongLongTy, SemaRef.Context.UnsignedInt128Ty in RebuildArrayType()
12501 llvm::APInt numElements(SemaRef.Context.getIntWidth(SemaRef.Context.IntTy), in RebuildExtVectorType()
[all …]
H A DSemaExprMember.cpp135 switch (SemaRef.ExprEvalContexts.back().Context) { in ClassifyImplicitMemberAccess()
138 if (isField && SemaRef.getLangOpts().CPlusPlus11) in ClassifyImplicitMemberAccess()
197 static void diagnoseInstanceReference(Sema &SemaRef, in diagnoseInstanceReference() argument
666 DC = SemaRef.computeDeclContext(SS, false); in LookupMemberExprInRecord()
684 SemaRef.LookupQualifiedName(R, DC, SS); in LookupMemberExprInRecord()
693 Sema &SemaRef; in LookupMemberExprInRecord() member
700 TE = SemaRef.CorrectTypoDelayed( in LookupMemberExprInRecord()
703 [=, &SemaRef](const TypoCorrection &TC) { in LookupMemberExprInRecord()
710 SemaRef.diagnoseTypo(TC, SemaRef.PDiag(diag::err_no_member_suggest) in LookupMemberExprInRecord()
725 return SemaRef.BuildMemberReferenceExpr( in LookupMemberExprInRecord()
[all …]
H A DSemaStmt.cpp526 Sema &SemaRef; member in __anon4bf2252c0311::CommaVisitor
528 CommaVisitor(Sema &SemaRef) : Inherited(SemaRef.Context), SemaRef(SemaRef) {} in CommaVisitor() argument
1997 SemaRef.inferObjCARCLifetime(Decl)) in FinishForRangeVarDecl()
2001 SemaRef.FinalizeDeclaration(Decl); in FinishForRangeVarDecl()
2002 SemaRef.CurContext->addHiddenDecl(Decl); in FinishForRangeVarDecl()
2043 DeclContext *DC = SemaRef.CurContext; in BuildForRangeVarDecl()
2184 *BeginExpr = SemaRef.ActOnCoawaitExpr(SemaRef.getCurScope(), ColonLoc, in BuildNonArrayForRange()
2258 SemaRef.Diag(D->getLocation(), in BuildNonArrayForRange()
2298 Sema::SFINAETrap Trap(SemaRef); in RebuildForRangeWithDereference()
2316 return SemaRef.ActOnCXXForRangeStmt( in RebuildForRangeWithDereference()
[all …]
H A DSemaLookup.cpp91 Sema &SemaRef; member in __anon7874a3fe0111::UnqualUsingDirectiveSet
99 UnqualUsingDirectiveSet(Sema &SemaRef) : SemaRef(SemaRef) {} in UnqualUsingDirectiveSet() argument
118 if (SemaRef.isVisible(I)) in visitScopeChain()
4430 if (SemaRef.getLangOpts().C99) in AddKeywordsToConsumer()
4432 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) in AddKeywordsToConsumer()
4434 else if (SemaRef.getLangOpts().C99) in AddKeywordsToConsumer()
4437 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4471 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4494 if (SemaRef.getLangOpts().C11) { in AddKeywordsToConsumer()
4502 if (SemaRef.getCurFunctionOrMethodDecl() || SemaRef.getCurBlock()) { in AddKeywordsToConsumer()
[all …]
H A DSemaCodeComplete.cpp129 Sema &SemaRef; member in __anonc8a3b6180111::ResultBuilder
181 : SemaRef(SemaRef), Allocator(Allocator), CCTUInfo(CCTUInfo), in ResultBuilder()
210 return SemaRef.CodeCompleter && in includeCodePatterns()
1076 if (SemaRef.getLangOpts().CPlusPlus) in IsOrdinaryName()
1759 if (SemaRef.getLangOpts().ObjC) in AddOrdinaryNameResults()
1875 if (SemaRef.getLangOpts().ObjC) in AddOrdinaryNameResults()
1908 if (SemaRef.getCurFunction() && in AddOrdinaryNameResults()
1953 if (SemaRef.getLangOpts().CPlusPlus || SemaRef.getLangOpts().C99) in AddOrdinaryNameResults()
1989 else if (SemaRef.getCurBlock() && in AddOrdinaryNameResults()
2202 if (SemaRef.getLangOpts().ObjC) { in AddOrdinaryNameResults()
[all …]
H A DCodeCompleteConsumer.cpp538 Sema &SemaRef, CodeCompletionContext Context, CodeCompletionResult *Results, in ProcessCodeCompleteResults() argument
546 StringRef Filter = SemaRef.getPreprocessor().getCodeCompletionFilter(); in ProcessCodeCompleteResults()
568 SemaRef, Context, getAllocator(), CCTUInfo, in ProcessCodeCompleteResults()
578 SourceManager &SM = SemaRef.SourceMgr; in ProcessCodeCompleteResults()
583 EInfo.second += Lexer::MeasureTokenLength(ELoc, SM, SemaRef.LangOpts); in ProcessCodeCompleteResults()
602 SemaRef, Context, getAllocator(), CCTUInfo, in ProcessCodeCompleteResults()
648 Sema &SemaRef, unsigned CurrentArg, OverloadCandidate *Candidates, in ProcessOverloadCandidates() argument
651 OpenParLoc.print(OS, SemaRef.getSourceManager()); in ProcessOverloadCandidates()
656 CurrentArg, SemaRef, getAllocator(), CCTUInfo, in ProcessOverloadCandidates()
H A DSemaDeclCXX.cpp4342 new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, in BuildImplicitBaseInitializer()
4467 CXXMemberInit = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, in BuildImplicitMemberInitializer()
4473 CXXMemberInit = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, in BuildImplicitMemberInitializer()
4506 = new (SemaRef.Context) CXXCtorInitializer(SemaRef.Context, Field, in BuildImplicitMemberInitializer()
4661 Init = new (SemaRef.Context) in CollectFieldInitializer()
4665 Init = new (SemaRef.Context) in CollectFieldInitializer()
13228 SemaRef.Context.getCanonicalType(SemaRef.Context.getSizeType()); in CheckOperatorNewDeclaration()
13233 if (CheckOperatorNewDeleteTypes(SemaRef, FnDecl, SemaRef.Context.VoidPtrTy, in CheckOperatorNewDeclaration()
13266 ? SemaRef.Context.getCanonicalType(SemaRef.Context.getPointerType( in CheckOperatorDeleteDeclaration()
13273 SemaRef, FnDecl, SemaRef.Context.VoidTy, ExpectedFirstParamType, in CheckOperatorDeleteDeclaration()
[all …]
H A DSemaOverload.cpp5659 if (SemaRef.isSFINAEContext()) in diagnoseNoViableConversion()
5685 if (SemaRef.isSFINAEContext()) in recordConversion()
7406 Sema &SemaRef; member in __anon832832a00a11::BuiltinCandidateTypeSet
7419 BuiltinCandidateTypeSet(Sema &SemaRef) in BuiltinCandidateTypeSet() argument
7423 SemaRef(SemaRef), in BuiltinCandidateTypeSet()
7424 Context(SemaRef.Context) { } in BuiltinCandidateTypeSet()
7631 if (!SemaRef.isCompleteType(Loc, Ty)) in AddTypesConvertedFrom()
11780 SemaRef.LookupQualifiedName(R, DC); in DiagnoseTwoPhaseLookup()
11884 Sema &SemaRef; member in __anon832832a01a11::BuildRecoveryCallExprRAII
11923 if (SemaRef.IsBuildingRecoveryCallExpr) in BuildRecoveryCallExpr()
[all …]
H A DSemaTemplate.cpp841 NamedDecl *PrevDecl = SemaRef.LookupSingleName( in maybeDiagnoseTemplateParameterShadow()
1671 ExtractTypeForDeductionGuide(Sema &SemaRef) : Base(SemaRef) {} in ExtractTypeForDeductionGuide() argument
1687 : SemaRef(S), Template(Template) {} in ConvertConstructorToDeductionGuideTransform()
1689 Sema &SemaRef; member
1708 LocalInstantiationScope Scope(SemaRef); in transformConstructor()
1881 QualType Result = SemaRef.BuildFunctionType( in transformFunctionProtoType()
2932 ASTContext &Context = SemaRef.getASTContext(); in checkBuiltinTemplateIdType()
4458 SubstDefaultTemplateArgument(Sema &SemaRef, in SubstDefaultTemplateArgument() argument
4515 SubstDefaultTemplateArgument(Sema &SemaRef, in SubstDefaultTemplateArgument() argument
4566 SubstDefaultTemplateArgument(Sema &SemaRef, in SubstDefaultTemplateArgument() argument
[all …]
H A DSemaCoroutine.cpp275 static ExprResult buildOperatorCoawaitLookupExpr(Sema &SemaRef, Scope *S, in buildOperatorCoawaitLookupExpr() argument
278 SemaRef.Context.DeclarationNames.getCXXOperatorName(OO_Coawait); in buildOperatorCoawaitLookupExpr()
279 LookupResult Operators(SemaRef, OpName, SourceLocation(), in buildOperatorCoawaitLookupExpr()
281 SemaRef.LookupName(Operators, S); in buildOperatorCoawaitLookupExpr()
289 SemaRef.Context, /*NamingClass*/ nullptr, NestedNameSpecifierLoc(), in buildOperatorCoawaitLookupExpr()
298 static ExprResult buildOperatorCoawaitCall(Sema &SemaRef, SourceLocation Loc, in buildOperatorCoawaitCall() argument
303 return SemaRef.CreateOverloadedUnaryOp(Loc, UO_Coawait, Functions, E); in buildOperatorCoawaitCall()
306 static ExprResult buildOperatorCoawaitCall(Sema &SemaRef, Scope *S, in buildOperatorCoawaitCall() argument
308 ExprResult R = buildOperatorCoawaitLookupExpr(SemaRef, S, Loc); in buildOperatorCoawaitCall()
311 return buildOperatorCoawaitCall(SemaRef, Loc, E, in buildOperatorCoawaitCall()
H A DSemaExprCXX.cpp585 getUuidAttrOfType(Sema &SemaRef, QualType QT, in getUuidAttrOfType() argument
3172 SemaRef.getLangOpts(), true); in DiagnoseMismatchedNewDelete()
7501 static ExprResult attemptRecovery(Sema &SemaRef, in attemptRecovery() argument
7588 auto &State = SemaRef.getTypoExprState(TE); in EmitAllDiagnostics()
7604 SemaRef.clearDelayedTypo(TE); in EmitAllDiagnostics()
7619 auto &State = SemaRef.getTypoExprState(TE); in CheckAndAdvanceTypoExprCorrectionStreams()
7645 Sema::SFINAETrap Trap(SemaRef); in TryTransform()
7699 SemaRef.DisableTypoCorrection = true; in Transform()
7703 auto &State = SemaRef.getTypoExprState(TE); in Transform()
7716 SemaRef.DisableTypoCorrection = false; in Transform()
[all …]
H A DSemaDecl.cpp785 SemaRef.LookupParsedName(R, S, &SS); in isTagTypeWithMissingTag()
822 SemaRef.LookupParsedName(Result, S, &SS); in isTagTypeWithMissingTag()
7730 SemaRef.LookupName(Prev, S); in DiagnoseInvalidRedeclaration()
7777 Sema::SFINAETrap Trap(SemaRef); in DiagnoseInvalidRedeclaration()
7802 SemaRef.diagnoseTypo( in DiagnoseInvalidRedeclaration()
7804 SemaRef.PDiag(IsLocalFriend in DiagnoseInvalidRedeclaration()
7847 SemaRef.Diag(FD->getLocation(), in DiagnoseInvalidRedeclaration()
7901 if (!SemaRef.getLangOpts().CPlusPlus) { in CreateNewFunctionDecl()
7927 SemaRef.RequireNonAbstractType( in CreateNewFunctionDecl()
7956 if (SemaRef.getLangOpts().CPlusPlus11) in CreateNewFunctionDecl()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DTemplate.h236 Sema &SemaRef;
292 : SemaRef(SemaRef), Outer(SemaRef.CurrentInstantiationScope), in SemaRef() argument
294 SemaRef.CurrentInstantiationScope = this; in SemaRef()
305 const Sema &getSema() const { return SemaRef; } in getSema()
315 SemaRef.CurrentInstantiationScope = Outer; in Exit()
355 SemaRef.CurrentInstantiationScope = oldScope; in cloneScopes()
421 Sema &SemaRef; variable
444 TemplateDeclInstantiator(Sema &SemaRef, DeclContext *Owner, in TemplateDeclInstantiator() argument
446 : SemaRef(SemaRef), in TemplateDeclInstantiator()
447 SubstIndex(SemaRef, SemaRef.ArgumentPackSubstitutionIndex), in TemplateDeclInstantiator()
[all …]
H A DSemaInternal.h71 SourceLocation Loc, Sema &SemaRef, in MarkVarDeclODRUsed() argument
75 if (Var->hasDefinition(SemaRef.Context) == VarDecl::DeclarationOnly && in MarkVarDeclODRUsed()
77 SemaRef.isExternalWithNoLinkageType(Var)) && in MarkVarDeclODRUsed()
84 SemaRef.tryCaptureVariable(Var, Loc, Sema::TryCapture_Implicit, in MarkVarDeclODRUsed()
90 Var->markUsed(SemaRef.Context); in MarkVarDeclODRUsed()
131 TypoCorrectionConsumer(Sema &SemaRef, in TypoCorrectionConsumer() argument
139 SavedTCIndex(0), SemaRef(SemaRef), S(S), in TypoCorrectionConsumer()
142 Result(SemaRef, TypoName, LookupKind), in TypoCorrectionConsumer()
143 Namespaces(SemaRef.Context, SemaRef.CurContext, SS), in TypoCorrectionConsumer()
236 ASTContext &getContext() const { return SemaRef.Context; } in getContext()
[all …]
H A DLookup.h146 LookupResult(Sema &SemaRef, const DeclarationNameInfo &NameInfo,
149 : SemaPtr(&SemaRef), NameInfo(NameInfo), LookupKind(LookupKind),
159 LookupResult(Sema &SemaRef, DeclarationName Name,
162 : SemaPtr(&SemaRef), NameInfo(Name, NameLoc), LookupKind(LookupKind),
338 static bool isVisible(Sema &SemaRef, NamedDecl *D) { in isVisible() argument
345 return isVisibleSlow(SemaRef, D); in isVisible()
361 static bool isVisibleSlow(Sema &SemaRef, NamedDecl *D);
H A DSema.h1262 Sema &SemaRef; variable
1267 : DiagnosticBuilder(DB), SemaRef(SemaRef), DiagID(DiagID) { } in SemaDiagnosticBuilder()
1294 SemaRef.EmitCurrentDiagnostic(DiagID); in ~SemaDiagnosticBuilder()
7496 Sema &SemaRef;
7558 Sema &SemaRef; variable
7566 : SemaRef(SemaRef), PrevSFINAEErrors(SemaRef.NumSFINAEErrors), in SemaRef() argument
7573 if (!SemaRef.isSFINAEContext()) in SemaRef()
7580 SemaRef.InNonInstantiationSFINAEContext in ~SFINAETrap()
7598 Sema &SemaRef; variable
7604 : SemaRef(SemaRef), Trap(SemaRef, true), in TentativeAnalysisScope()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Serialization/
H A DASTWriter.h498 void WriteSelectors(Sema &SemaRef);
499 void WriteReferencedSelectorsPool(Sema &SemaRef);
505 void WriteOpenCLExtensions(Sema &SemaRef);
506 void WriteOpenCLExtensionTypes(Sema &SemaRef);
507 void WriteOpenCLExtensionDecls(Sema &SemaRef);
508 void WriteCUDAPragmas(Sema &SemaRef);
510 void WriteLateParsedTemplates(Sema &SemaRef);
511 void WriteOptimizePragmaOptions(Sema &SemaRef);
512 void WriteMSStructPragmaOptions(Sema &SemaRef);
514 void WritePackPragmaOptions(Sema &SemaRef);
[all …]
H A DModuleFileExtension.h124 virtual void writeExtensionContents(Sema &SemaRef,
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTWriter.cpp4611 Context = &SemaRef.Context; in WriteAST()
4612 PP = &SemaRef.PP; in WriteAST()
4652 Preprocessor &PP = SemaRef.PP; in WriteASTCore()
4723 if (!SemaRef.VTableUses.empty()) { in WriteASTCore()
4727 VTableUses.push_back(SemaRef.VTablesUsed[SemaRef.VTableUses[I].first]); in WriteASTCore()
4747 if (SemaRef.StdNamespace || SemaRef.StdBadAlloc || SemaRef.StdAlignValT) { in WriteASTCore()
5009 WriteSelectors(SemaRef); in WriteASTCore()
5011 WriteLateParsedTemplates(SemaRef); in WriteASTCore()
5014 WriteOpenCLExtensions(SemaRef); in WriteASTCore()
5016 WriteCUDAPragmas(SemaRef); in WriteASTCore()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DInternals.h150 Sema &SemaRef; variable
161 SemaRef(sema), TA(TA), CapturedDiags(capturedDiags), in MigrationPass()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/
H A DTestModuleFileExtension.h33 void writeExtensionContents(Sema &SemaRef,

12