Home
last modified time | relevance | path

Searched refs:getExprLoc (Results 1 – 25 of 87) sorted by relevance

1234

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaOpenACC.cpp1171 Diag(VarExpr->getExprLoc(), diag::err_acc_reduction_type) in CheckReductionVar()
1177 Diag(VarExpr->getExprLoc(), diag::err_acc_reduction_composite_type) in CheckReductionVar()
1183 Diag(VarExpr->getExprLoc(), diag::err_acc_reduction_composite_type) in CheckReductionVar()
1189 Diag(VarExpr->getExprLoc(), diag::err_acc_reduction_composite_type) in CheckReductionVar()
1196 Diag(VarExpr->getExprLoc(), in CheckReductionVar()
1203 Diag(VarExpr->getExprLoc(), diag::err_acc_reduction_type) in CheckReductionVar()
1343 Diag(VarExpr->getExprLoc(), diag::err_array_section_use) << /*OpenACC=*/0; in CheckVarIsPointerType()
1344 Diag(VarExpr->getExprLoc(), diag::note_acc_expected_pointer_var); in CheckVarIsPointerType()
1356 return Diag(VarExpr->getExprLoc(), diag::err_acc_var_not_pointer_type) in CheckVarIsPointerType()
1408 Diag(VarExpr->getExprLoc(), diag::err_acc_not_a_var_ref) in ActOnVar()
[all …]
H A DSemaOpenMP.cpp2866 S.Diag(Ref->getExprLoc(), in checkReductionClauses()
2912 SemaRef, DE->getExprLoc(), Type.getUnqualifiedType(), in EndOpenMPDSABlock()
2920 SemaRef, VDPrivate, DE->getType(), DE->getExprLoc())); in EndOpenMPDSABlock()
2987 Diag(D.Allocator->getExprLoc(), in EndOpenMPDSABlock()
2993 Diag(MapExpr->getExprLoc(), diag::note_used_here) in EndOpenMPDSABlock()
3263 SourceLocation ILoc = DE->getExprLoc(); in CheckOMPThreadPrivateDecl()
3396 Allocator ? Allocator->getExprLoc() : RefExpr->getExprLoc(); in checkPreviousOMPAllocateAttribute()
3400 PrevAllocator ? PrevAllocator->getExprLoc() : A->getLocation(); in checkPreviousOMPAllocateAttribute()
3487 Diag(Allocator->getExprLoc(), in ActOnOpenMPAllocateDirective()
3630 SemaRef.Diag(DVar.RefExpr->getExprLoc(), diag::note_omp_explicit_dsa) in reportOriginalDsa()
[all …]
H A DSemaAMDGPU.cpp43 Diag(ArgExpr->getExprLoc(), in CheckAMDGCNBuiltinFunctionCall()
46 Diag(ArgExpr->getExprLoc(), in CheckAMDGCNBuiltinFunctionCall()
75 return Diag(ArgExpr->getExprLoc(), diag::err_typecheck_expect_int) in CheckAMDGCNBuiltinFunctionCall()
105 return Diag(ArgExpr->getExprLoc(), diag::err_expr_not_string_literal) in CheckAMDGCNBuiltinFunctionCall()
H A DSemaChecking.cpp339 S.Diag(Source->getExprLoc(), diag::err_typecheck_expect_scalar_operand) in BuiltinAlignment()
346 S.Diag(AlignOp->getExprLoc(), diag::err_typecheck_expect_int) in BuiltinAlignment()
360 S.Diag(AlignOp->getExprLoc(), diag::err_alignment_too_small) << 1; in BuiltinAlignment()
364 S.Diag(AlignOp->getExprLoc(), diag::err_alignment_too_big) in BuiltinAlignment()
369 S.Diag(AlignOp->getExprLoc(), diag::err_alignment_not_power_of_two); in BuiltinAlignment()
373 S.Diag(AlignOp->getExprLoc(), diag::warn_alignment_builtin_useless) in BuiltinAlignment()
410 return BuiltinID == P.first && TheCall->getExprLoc().isMacroID() && in BuiltinOverflow()
411 Lexer::getImmediateMacroName(TheCall->getExprLoc(), in BuiltinOverflow()
1472 SemaRef.Diag(TheCall->getExprLoc(), DiagID) in BuiltinSEHScopeCheck()
1501 return S.checkPointerAuthEnabled(E->getExprLoc(), E->getSourceRange()); in checkPointerAuthEnabled()
[all …]
H A DSemaPseudoObject.cpp678 S.Diag(RefExpr->getExprLoc(), diag::err_property_setter_ambiguous_use) in findSetter()
1093 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type) in findAtIndexGetter()
1139 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_method_not_found) in findAtIndexGetter()
1151 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
1160 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
1193 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type) in findAtIndexSetter()
1251 S.Diag(BaseExpr->getExprLoc(), in findAtIndexSetter()
1264 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexSetter()
1272 S.Diag(RefExpr->getBaseExpr()->getExprLoc(), in findAtIndexSetter()
1284 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexSetter()
[all …]
H A DSemaStmt.cpp56 FE = ActOnFinishFullExpr(FE.get(), FE.get()->getExprLoc(), DiscardedValue); in ActOnExprStmt()
238 SourceLocation ExprLoc = E->IgnoreParenImpCasts()->getExprLoc(); in DiagnoseUnusedExprResult()
474 return ActOnFinishFullExpr(Val.get(), Val.get()->getExprLoc(), false, in ActOnCaseExpr()
503 ER = ActOnFinishFullExpr(ER.get(), ER.get()->getExprLoc(), false); in ActOnCaseExpr()
902 SemaRef.DiagnoseCommaOperator(E->getLHS(), E->getExprLoc()); in VisitBinaryOperator()
926 !Diags.isIgnored(diag::warn_comma_operator, CondExpr->getExprLoc())) in ActOnIfStmt()
1239 S.Diag(Case->getExprLoc(), diag::warn_comparison_of_mixed_enum_types_switch) in checkEnumTypesInSwitchStmt()
1522 Diag(CondExpr->getExprLoc(), diag::warn_missing_case_for_condition) in ActOnFinishSwitchStmt()
1558 Diag(CaseExpr->getExprLoc(), diag::warn_not_in_enum) in ActOnFinishSwitchStmt()
1569 Diag(CaseExpr->getExprLoc(), diag::warn_not_in_enum) in ActOnFinishSwitchStmt()
[all …]
H A DSemaObjC.cpp764 Loc = e->getExprLoc(); in setLocsFrom()
967 S.Diag(capturer->getExprLoc(), diag::warn_arc_retain_cycle) in diagnoseRetainCycle()
1395 Diag(FromE->getExprLoc(), diag::err_objc_subscript_pointer) in CheckSubscriptingKind()
1396 << T << FixItHint::CreateInsertion(FromE->getExprLoc(), "@"); in CheckSubscriptingKind()
1398 Diag(FromE->getExprLoc(), diag::err_objc_subscript_type_conversion) << T; in CheckSubscriptingKind()
1403 if (SemaRef.RequireCompleteType(FromE->getExprLoc(), T, in CheckSubscriptingKind()
1433 Diag(FromE->getExprLoc(), diag::err_objc_subscript_type_conversion) in CheckSubscriptingKind()
1437 Diag(FromE->getExprLoc(), diag::err_objc_multiple_subscript_type_conversion) in CheckSubscriptingKind()
2300 Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInCFAPI()
H A DSemaExpr.cpp525 if (!checkAddressOfFunctionIsAvailable(FD, Diagnose, E->getExprLoc())) in DefaultFunctionArrayConversion()
607 S.Diag(OIRE->getExprLoc(), diag::warn_objc_isa_assign) in DiagnoseDirectIsaAccess()
622 S.Diag(OIRE->getExprLoc(), diag::warn_objc_isa_use) in DiagnoseDirectIsaAccess()
677 Diag(E->getExprLoc(), diag::err_opencl_half_load_store) in DefaultLvalueConversion()
688 Diag(E->getExprLoc(), diag::warn_objc_isa_use) in DefaultLvalueConversion()
693 Diag(E->getExprLoc(), diag::warn_objc_isa_use); in DefaultLvalueConversion()
714 (void)isCompleteType(E->getExprLoc(), T); in DefaultLvalueConversion()
915 E->getExprLoc(), E); in DefaultArgumentPromotion()
1080 RequireCompleteType(E->getExprLoc(), E->getType(), in DefaultVariadicArgumentPromotion()
1695 Diag(ControllingExpr->getExprLoc(), in CreateGenericSelectionExpr()
[all …]
H A DSemaExprCXX.cpp636 Diag(E->getExprLoc(), WasEvaluated in BuildCXXTypeId()
1035 MarkFunctionReferenced(E->getExprLoc(), Destructor); in CheckCXXThrowOperand()
1036 CheckDestructorAccess(E->getExprLoc(), Destructor, in CheckCXXThrowOperand()
1038 if (DiagnoseUseOfDecl(Destructor, E->getExprLoc())) in CheckCXXThrowOperand()
1063 MarkFunctionReferenced(E->getExprLoc(), CD); in CheckCXXThrowOperand()
1455 CheckCXXThisCapture(This->getExprLoc()); in MarkThisReferenced()
1599 TemplateDeductionInfo Info(Deduce->getExprLoc()); in BuildCXXTypeConstructExpr()
2091 Diag(*ArraySize ? (*ArraySize)->getExprLoc() : TypeRange.getBegin(), in BuildCXXNew()
2128 TemplateDeductionInfo Info(Deduce->getExprLoc()); in BuildCXXNew()
3581 SemaRef.Diag(NE->getExprLoc(), diag::note_allocated_here) in DiagnoseMismatchedNewDelete()
[all …]
H A DAnalysisBasedWarnings.cpp149 if (E->getExprLoc().isMacroID()) in HasMacroID()
169 S.Diag(B->getExprLoc(), DiagID) << DiagRange; in logicAlwaysTrue()
177 S.Diag(B->getExprLoc(), diag::warn_tautological_overlap_comparison) in compareAlwaysTrue()
187 S.Diag(B->getExprLoc(), diag::warn_comparison_bitwise_always) in compareBitwiseEquality()
196 S.Diag(B->getExprLoc(), diag::warn_comparison_bitwise_or) << DiagRange; in compareBitwiseOr()
2235 Loc = ASE->getBase()->getExprLoc(); in handleUnsafeOperation()
2243 Loc = BO->getLHS()->getExprLoc(); in handleUnsafeOperation()
2246 Loc = BO->getRHS()->getExprLoc(); in handleUnsafeOperation()
2255 Loc = UO->getSubExpr()->getExprLoc(); in handleUnsafeOperation()
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransUnusedInitDelegate.cpp53 ME->getExprLoc())) { in VisitObjCMessageExpr()
56 ME->getExprLoc()); in VisitObjCMessageExpr()
H A DTransUnbridgedCasts.cpp108 SourceLocation loc = castExpr->getExprLoc(); in VisitCastExpr()
282 SourceLocation Loc = E->getExprLoc(); in getBlockMacroRanges()
336 SourceLocation CastLoc = E->getExprLoc(); in transformObjCToNonObjCCast()
H A DTransARCAssign.cpp46 SourceLocation OrigLoc = E->getExprLoc(); in VisitBinaryOperator()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DEvaluationResult.cpp134 S.FFDiag(BasePtr.getDeclDesc()->asExpr()->getExprLoc(), in CheckFieldsInitialized()
163 InitLoc = cast<VarDecl>(D)->getAnyInitializer()->getExprLoc(); in checkFullyInitialized()
165 InitLoc = E->getExprLoc(); in checkFullyInitialized()
234 S.Note(B->getDescriptor()->asExpr()->getExprLoc(), in checkReturnValue()
H A DState.cpp29 return diag(E->getExprLoc(), DiagId, ExtraNotes, false); in FFDiag()
55 return CCEDiag(E->getExprLoc(), DiagId, ExtraNotes); in CCEDiag()
H A DSource.cpp17 return E->getExprLoc(); in getLoc()
H A DInterpState.cpp97 CCEDiag(Source->getExprLoc(), diag::note_constexpr_memory_leak) in maybeDiagnoseDanglingAllocations()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp304 E->getExprLoc()); in EmitLoadOfLValue()
442 /*Volatile*/ false, E->getType(), E->getExprLoc()); in VisitConstantExpr()
515 E->getExprLoc()); in VisitOpaqueValueExpr()
546 Value *V = CGF.EmitLoadOfLValue(LV, E->getExprLoc()).getScalarVal(); in VisitObjCIsaExpr()
1741 StaticData.push_back(CGF.EmitCheckSourceLocation(Info.E->getExprLoc())); in EmitBinOpCheck()
2245 return EmitLoadOfLValue(LV, CE->getExprLoc()); in VisitCastExpr()
2254 return EmitLoadOfLValue(DestLV, CE->getExprLoc()); in VisitCastExpr()
2307 CE->getExprLoc()); in VisitCastExpr()
2375 return EmitLoadOfLValue(DestLV, CE->getExprLoc()); in VisitCastExpr()
2422 CGF.EmitTypeCheck(CodeGenFunction::TCK_DowncastPointer, CE->getExprLoc(), in VisitCastExpr()
[all …]
H A DCGExprComplex.cpp80 return EmitLoadOfLValue(CGF.EmitLValue(E), E->getExprLoc()); in EmitLoadOfLValue()
140 E->getExprLoc()); in emitConstant()
171 E->getExprLoc()); in VisitOpaqueValueExpr()
512 E->getExprLoc()); in VisitStmtExpr()
563 return EmitLoadOfLValue(CGF.MakeAddrLValue(V, DestTy), Op->getExprLoc()); in EmitCast()
572 return EmitLoadOfLValue(DestLV, Op->getExprLoc()); in EmitCast()
634 DestTy, Op->getExprLoc()); in EmitCast()
643 Op->getExprLoc()); in EmitCast()
1269 SourceLocation Loc = E->getExprLoc(); in EmitCompoundAssignLValue()
1337 return EmitLoadOfLValue(LV, E->getExprLoc()); in EmitCompoundAssign()
[all …]
H A DCGExprCXX.cpp98 CE ? CE->getExprLoc() : SourceLocation()); in EmitCXXMemberOrOperatorCall()
124 CE ? CE->getExprLoc() : SourceLocation{}); in EmitCXXDestructorCall()
302 AggValueSlot::DoesNotOverlap, CE->getExprLoc(), in EmitCXXMemberOrOperatorMemberCallExpr()
346 CallLoc = CE->getExprLoc(); in EmitCXXMemberOrOperatorMemberCallExpr()
461 EmitTypeCheck(TCK_MemberCall, E->getExprLoc(), This.emitRawPointer(*this), in EmitCXXMemberPointerCallExpr()
488 E->getExprLoc()); in EmitCXXMemberPointerCallExpr()
1676 E->getExprLoc()); in EmitCXXNewExpr()
1928 CGF.EmitTypeCheck(CodeGenFunction::TCK_MemberCall, DE->getExprLoc(), Ptr, in EmitObjectDelete()
2158 CGF.EmitTypeCheck(CodeGenFunction::TCK_DynamicOperation, E->getExprLoc(), in EmitTypeidFromVTable()
2262 EmitTypeCheck(TCK_DynamicOperation, DCE->getExprLoc(), ThisAddr, SrcRecordTy); in EmitDynamicCast()
H A DCGExpr.cpp192 SourceLocation Loc = E->getExprLoc(); in EvaluateExprAsBool()
601 /*NullCheckValue=*/ false, E->getExprLoc()); in EmitMaterializeTemporaryExpr()
639 EmitTypeCheck(TCK_ReferenceBinding, E->getExprLoc(), Value, Ty); in EmitReferenceBindingToExpr()
916 C.getSizeType(), E->getExprLoc()); in LoadPassedObjectSize()
1195 EmitCheckSourceLocation(E->getExprLoc()), in EmitBoundsCheckImpl()
1208 ComplexPairTy InVal = EmitLoadOfComplex(LV, E->getExprLoc()); in EmitComplexPrePostIncDec()
1341 CGF.ShouldNullCheckClassCastValue(CE), CE->getExprLoc()); in EmitPointerWithAlignment()
1483 EmitTypeCheck(TCK, E->getExprLoc(), LV, E->getType(), SkippedChecks); in EmitCheckedLValue()
1818 /*RefersToEnclosingVariableOrCapture=*/false, ME->getExprLoc(), in tryToConvertMemberExprToDeclRefExpr()
1836 E->getExprLoc()) in emitScalarConstant()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedCallArgsChecker.cpp151 if (BR->getSourceManager().isInSystemHeader(CE->getExprLoc())) in shouldSkipCall()
259 isa<CXXDefaultArgExpr>(CallArg) ? Param->getDefaultArg()->getExprLoc() in reportBug()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMallocOverflowSecurityChecker.cpp163 E->getExprLoc(), c.call->getExprLoc()); in CheckExpr()
H A DIdenticalExprChecker.cpp328 if ((Expr1->getExprLoc().isMacroID()) || (Expr2->getExprLoc().isMacroID())) in isIdenticalStmt()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp730 Loc = E->getExprLoc(); in endLifetime()
2181 Info.Note(E->getExprLoc(), diag::note_constexpr_temporary_here); in NoteLValueLocation()
2185 Info.Note((*Alloc)->AllocExpr->getExprLoc(), in NoteLValueLocation()
2343 Info.FFDiag(MTE->getExprLoc(), in CheckLValueConstantExpression()
2352 Info, MTE->getExprLoc(), TempType, *V, Kind, in CheckLValueConstantExpression()
2786 Info.Ctx.getDiagnostics().Report(E->getExprLoc(), in CheckedIntArithmetic()
3277 if (!HandleSizeof(Info, E->getExprLoc(), EltTy, SizeOfPointee)) in HandleLValueArrayAdjustment()
3301 if (!HandleSizeof(Info, E->getExprLoc(), EltTy, SizeOfComponent)) in HandleLValueComplexElement()
3767 Loc = E->getExprLoc(); in findSubobject()
3823 if (!CheckArraySize(Info, CAT, E->getExprLoc())) in findSubobject()
[all …]

1234