Home
last modified time | relevance | path

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

123

/external/clang/lib/Sema/
DSemaOpenMP.cpp602 Context, CurContext, DE->getLocStart(), DE->getExprLoc(), in EndOpenMPDSABlock()
825 SourceLocation ILoc = DE->getExprLoc(); in CheckOMPThreadPrivateDecl()
895 SemaRef.Diag(DVar.RefExpr->getExprLoc(), diag::note_omp_explicit_dsa) in ReportOriginalDSA()
965 auto ELoc = E->getExprLoc(); in VisitDeclRefExpr()
1882 Diag(P.second->getExprLoc(), diag::err_omp_no_dsa_for_variable) in ActOnOpenMPExecutableDirective()
2077 SemaRef.Diag(NewStep->getExprLoc(), in SetStep()
2086 NewStep = SemaRef.CreateBuiltinUnaryOp(NewStep->getExprLoc(), UO_Minus, in SetStep()
2437 SemaRef.Diag(NestedLoopCountExpr->getExprLoc(), in CheckOpenMPIterationSpace()
3407 ErrorLoc = AtomicInnerBinOp->getExprLoc(); in checkBinaryOperation()
3409 NoteLoc = X->getExprLoc(); in checkBinaryOperation()
[all …]
DSemaPseudoObject.cpp631 S.Diag(RefExpr->getExprLoc(), diag::error_property_setter_ambiguous_use) in findSetter()
1039 Diag(FromE->getExprLoc(), diag::err_objc_subscript_pointer) in CheckSubscriptingKind()
1040 << T << FixItHint::CreateInsertion(FromE->getExprLoc(), "@"); in CheckSubscriptingKind()
1042 Diag(FromE->getExprLoc(), diag::err_objc_subscript_type_conversion) in CheckSubscriptingKind()
1048 if (RequireCompleteType(FromE->getExprLoc(), T, in CheckSubscriptingKind()
1078 Diag(FromE->getExprLoc(), diag::err_objc_subscript_type_conversion) in CheckSubscriptingKind()
1082 Diag(FromE->getExprLoc(), diag::err_objc_multiple_subscript_type_conversion) in CheckSubscriptingKind()
1137 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type) in findAtIndexGetter()
1188 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_method_not_found) in findAtIndexGetter()
1202 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
[all …]
DSemaChecking.cpp219 SemaRef.Diag(TheCall->getExprLoc(), DiagID) in SemaBuiltinSEHScopeCheck()
459 Diag(TheCall->getExprLoc(), diag::err_builtin_requires_language) in CheckBuiltinFunctionCall()
1121 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInCFAPI()
3251 S.Diag(IsStringLocation ? ArgumentExpr->getExprLoc() : Loc, PDiag) in EmitFormatDiagnostic()
4605 Diag(Call->getExprLoc(), diag::warn_unsigned_abs) << ArgType << ParamType; in CheckAbsoluteValueFunction()
4606 Diag(Call->getExprLoc(), diag::note_remove_abs) in CheckAbsoluteValueFunction()
4627 Diag(Call->getExprLoc(), diag::warn_abs_too_small) in CheckAbsoluteValueFunction()
4633 emitReplacement(*this, Call->getExprLoc(), in CheckAbsoluteValueFunction()
4646 Diag(Call->getExprLoc(), diag::warn_wrong_absolute_value_type) in CheckAbsoluteValueFunction()
4649 emitReplacement(*this, Call->getExprLoc(), in CheckAbsoluteValueFunction()
[all …]
DSemaStmt.cpp46 FE = ActOnFinishFullExpr(FE.get(), FE.get()->getExprLoc(), in ActOnExprStmt()
197 SourceLocation ExprLoc = E->IgnoreParens()->getExprLoc(); in DiagnoseUnusedExprResult()
409 LHS = ActOnFinishFullExpr(LHSVal, LHSVal->getExprLoc(), false, in ActOnCaseStmt()
414 auto RHS = RHSVal ? ActOnFinishFullExpr(RHSVal, RHSVal->getExprLoc(), false, in ActOnCaseStmt()
1048 Diag(CondExpr->getExprLoc(), diag::warn_missing_case_for_condition) in ActOnFinishSwitchStmt()
1082 Diag(CaseExpr->getExprLoc(), diag::warn_not_in_enum) in ActOnFinishSwitchStmt()
1093 Diag(CaseExpr->getExprLoc(), diag::warn_not_in_enum) in ActOnFinishSwitchStmt()
1103 Diag(CaseExpr->getExprLoc(), diag::warn_not_in_enum) in ActOnFinishSwitchStmt()
1142 DiagnosticBuilder DB = Diag(CondExpr->getExprLoc(), in ActOnFinishSwitchStmt()
1172 if (Diags.isIgnored(diag::warn_not_in_enum_assignment, SrcExpr->getExprLoc())) in DiagnoseAssignmentEnum()
[all …]
DSemaExprCXX.cpp456 Diag(E->getExprLoc(), WasEvaluated in BuildCXXTypeId()
775 MarkFunctionReferenced(E->getExprLoc(), Destructor); in CheckCXXThrowOperand()
776 CheckDestructorAccess(E->getExprLoc(), Destructor, in CheckCXXThrowOperand()
778 if (DiagnoseUseOfDecl(Destructor, E->getExprLoc())) in CheckCXXThrowOperand()
803 MarkFunctionReferenced(E->getExprLoc(), CD); in CheckCXXThrowOperand()
2541 CheckDestructorAccess(Ex.get()->getExprLoc(), Dtor, in ActOnCXXDelete()
2776 ICS.DiagnoseAmbiguousConversion(*this, From->getExprLoc(), in PerformImplicitConversion()
3047 RequireCompleteType(From->getExprLoc(), FromType, 0); in PerformImplicitConversion()
5115 MarkFunctionReferenced(E->getExprLoc(), Destructor); in MaybeBindToTemporary()
5116 CheckDestructorAccess(E->getExprLoc(), Destructor, in MaybeBindToTemporary()
[all …]
DSemaExpr.cpp496 Diag(E->getExprLoc(), diag::err_opencl_taking_function_address); in DefaultFunctionArrayConversion()
568 S.Diag(OIRE->getExprLoc(), diag::warn_objc_isa_assign) << in DiagnoseDirectIsaAccess()
582 S.Diag(OIRE->getExprLoc(), diag::warn_objc_isa_use) << in DiagnoseDirectIsaAccess()
630 Diag(E->getExprLoc(), diag::err_opencl_half_load_store) in DefaultLvalueConversion()
641 Diag(E->getExprLoc(), diag::warn_objc_isa_use) << in DefaultLvalueConversion()
646 Diag(E->getExprLoc(), diag::warn_objc_isa_use); in DefaultLvalueConversion()
800 E->getExprLoc(), E); in DefaultArgumentPromotion()
956 RequireCompleteType(E->getExprLoc(), E->getType(), in DefaultVariadicArgumentPromotion()
1342 Diag(ControllingExpr->getExprLoc(), in CreateGenericSelectionExpr()
3162 Diag(E->getExprLoc(), diag::err_pragma_loop_invalid_argument_type) << QT; in CheckLoopHintExpr()
[all …]
DSemaCast.cpp1708 Self.Diag(SrcExpr.get()->getExprLoc(), in DiagnoseCastOfObjCSEL()
2174 SrcExpr.get()->getExprLoc())) in DiagnoseBadFunctionCast()
2199 Self.Diag(SrcExpr.get()->getExprLoc(), in DiagnoseBadFunctionCast()
2302 Self.Diag(SrcExpr.get()->getExprLoc(), in CheckCStyleCast()
2336 Self.Diag(SrcExpr.get()->getExprLoc(), diag::err_cast_selector_expr); in CheckCStyleCast()
2345 Self.Diag(SrcExpr.get()->getExprLoc(), in CheckCStyleCast()
DSemaTemplateInstantiate.cpp1230 ValueDecl *VD = cast_or_null<ValueDecl>(TransformDecl(E->getExprLoc(), D)); in TransformFunctionParmPackExpr()
1233 return RebuildParmVarDeclRefExpr(cast<ParmVarDecl>(VD), E->getExprLoc()); in TransformFunctionParmPackExpr()
1247 cast_or_null<ParmVarDecl>(TransformDecl(E->getExprLoc(), *I)); in TransformFunctionParmPackExpr()
1275 E->getExprLoc(), *Pack); in TransformFunctionParmPackRefExpr()
1285 E->getExprLoc()); in TransformFunctionParmPackRefExpr()
/external/clang/lib/ARCMigrate/
DTransUnusedInitDelegate.cpp54 ME->getExprLoc())) { in VisitObjCMessageExpr()
57 ME->getExprLoc()); in VisitObjCMessageExpr()
DTransARCAssign.cpp47 SourceLocation OrigLoc = E->getExprLoc(); in VisitBinaryOperator()
DTransUnbridgedCasts.cpp109 SourceLocation loc = castExpr->getExprLoc(); in VisitCastExpr()
284 SourceLocation Loc = E->getExprLoc(); in getBlockMacroRanges()
339 SourceLocation CastLoc = E->getExprLoc(); in transformObjCToNonObjCCast()
DTransRetainReleaseDealloc.cpp333 SourceLocation Loc = Msg->getExprLoc(); in checkForGCDOrXPC()
/external/clang/lib/CodeGen/
DCGExprComplex.cpp77 return EmitLoadOfLValue(CGF.EmitLValue(E), E->getExprLoc()); in EmitLoadOfLValue()
122 E->getExprLoc()); in VisitDeclRefExpr()
140 return EmitLoadOfLValue(CGF.getOpaqueLValueMapping(E), E->getExprLoc()); in VisitOpaqueValueExpr()
391 E->getExprLoc()); in VisitStmtExpr()
442 Op->getExprLoc()); in EmitCast()
850 ComplexPairTy LHSVal = EmitLoadOfLValue(LHS, E->getExprLoc()); in EmitCompoundAssignLValue()
853 llvm::Value *LHSVal = CGF.EmitLoadOfScalar(LHS, E->getExprLoc()); in EmitCompoundAssignLValue()
898 return EmitLoadOfLValue(LV, E->getExprLoc()); in EmitCompoundAssign()
933 return EmitLoadOfLValue(LV, E->getExprLoc()); in VisitBinAssign()
1025 E->getExprLoc()); in VisitVAArgExpr()
DCGAtomic.cpp812 E->getExprLoc(), sizeChars); in EmitAtomicExpr()
824 E->getExprLoc(), sizeChars); in EmitAtomicExpr()
835 E->getExprLoc(), sizeChars); in EmitAtomicExpr()
849 E->getExprLoc(), sizeChars); in EmitAtomicExpr()
856 E->getExprLoc(), sizeChars); in EmitAtomicExpr()
863 E->getExprLoc(), sizeChars); in EmitAtomicExpr()
870 E->getExprLoc(), sizeChars); in EmitAtomicExpr()
877 E->getExprLoc(), sizeChars); in EmitAtomicExpr()
918 return convertTempToRValue(Dest, RValTy, E->getExprLoc()); in EmitAtomicExpr()
975 return convertTempToRValue(OrigDest, RValTy, E->getExprLoc()); in EmitAtomicExpr()
[all …]
DCGExprScalar.cpp132 E->getExprLoc()); in EmitLoadOfLValue()
258 return EmitLoadOfLValue(CGF.getOpaqueLValueMapping(E), E->getExprLoc()); in VisitOpaqueValueExpr()
269 E->getExprLoc()); in VisitDeclRefExpr()
293 Value *V = CGF.EmitLoadOfLValue(LV, E->getExprLoc()).getScalarVal(); in VisitObjCIsaExpr()
930 StaticData.push_back(CGF.EmitCheckSourceLocation(Info.E->getExprLoc())); in EmitBinOpCheck()
1371 CE->getExprLoc()); in VisitCastExpr()
1419 CGF.EmitTypeCheck(CodeGenFunction::TCK_DowncastPointer, CE->getExprLoc(), in VisitCastExpr()
1436 ShouldNullCheckClassCastValue(CE), CE->getExprLoc()); in VisitCastExpr()
1606 E->getExprLoc()); in VisitStmtExpr()
1682 value = EmitLoadOfLValue(LV, E->getExprLoc()); in EmitScalarPrePostIncDec()
[all …]
DCGExpr.cpp416 /*NullCheckValue=*/ false, E->getExprLoc()); in EmitMaterializeTemporaryExpr()
454 EmitTypeCheck(TCK_ReferenceBinding, E->getExprLoc(), Value, Ty); in EmitReferenceBindingToExpr()
716 EmitCheckSourceLocation(E->getExprLoc()), in EmitBoundsCheck()
730 ComplexPairTy InVal = EmitLoadOfComplex(LV, E->getExprLoc()); in EmitComplexPrePostIncDec()
810 EmitTypeCheck(TCK, E->getExprLoc(), LV.getAddress(), in EmitCheckedLValue()
1860 E->getExprLoc()); in EmitGlobalVarDeclLValue()
1996 Alignment, E->getExprLoc()); in EmitDeclRefLValue()
2635 EmitTypeCheck(TCK_MemberAccess, E->getExprLoc(), Ptr, PtrTy); in EmitMemberExpr()
3012 /*NullCheckValue=*/false, E->getExprLoc()); in EmitCastLValue()
3033 EmitTypeCheck(TCK_DowncastReference, E->getExprLoc(), in EmitCastLValue()
/external/clang/unittests/Tooling/
DRecursiveASTVisitorTestCallVisitor.cpp105 Match(getOperatorSpelling(CE->getOperator()), CE->getExprLoc()); in TraverseCXXOperatorCallExpr()
DRecursiveASTVisitorTestExprVisitor.cpp20 Match("", Parens->getExprLoc()); in VisitParenExpr()
/external/clang/lib/Analysis/
DThreadSafety.cpp64 Loc = DeclExp->getExprLoc(); in warnInvalidLock()
1445 SourceLocation Loc = Exp->getExprLoc(); in getEdgeLockset()
1580 DiagKind, D->getNameAsString(), Cp.toString(), Exp->getExprLoc()); in warnIfMutexHeld()
1593 SourceLocation Loc = Exp->getExprLoc(); in checkAccess()
1673 Exp->getExprLoc()); in checkPtAccess()
1677 ClassifyDiagnostic(I), Exp->getExprLoc()); in checkPtAccess()
1691 SourceLocation Loc = Exp->getExprLoc(); in handleCall()
1769 Exp->getExprLoc()); in handleCall()
DConsumed.cpp636 Call->getArg(Index)->getExprLoc(), in handleCall()
661 checkCallability(PInfo, FunD, Call->getExprLoc()); in handleCall()
1403 BTE->getExprLoc()); in run()
/external/clang/lib/StaticAnalyzer/Checkers/
DIdenticalExprChecker.cpp310 if ((Expr1->getExprLoc().isMacroID()) || (Expr2->getExprLoc().isMacroID())) in isIdenticalStmt()
/external/clang/lib/AST/
DExprConstant.cpp626 return Diag(E->getExprLoc(), DiagId, ExtraNotes); in Diag()
1239 Info.Note(Base.get<const Expr*>()->getExprLoc(), in NoteLValueLocation()
1633 Info.Ctx.getDiagnostics().Report(E->getExprLoc(), in CheckedIntArithmetic()
1908 if (!HandleSizeof(Info, E->getExprLoc(), EltTy, SizeOfPointee)) in HandleLValueArrayAdjustment()
1927 if (!HandleSizeof(Info, E->getExprLoc(), EltTy, SizeOfComponent)) in HandleLValueComplexElement()
2648 Info.Note(MTE->getExprLoc(), diag::note_constexpr_temporary_here); in findCompleteObject()
2668 Info.Note(Base->getExprLoc(), diag::note_constexpr_temporary_here); in findCompleteObject()
4167 if (!CheckConstexprFunction(Info, E->getExprLoc(), FD, Definition) || in VisitCallExpr()
4168 !HandleFunctionCall(E->getExprLoc(), Definition, This, Args, Body, in VisitCallExpr()
4570 !CheckConstantExpression(Info, E->getExprLoc(), Type, *Value))) { in VisitMaterializeTemporaryExpr()
[all …]
DExpr.cpp179 return static_cast<const E*>(expr)->getExprLoc(); in getExprLocImpl()
193 SourceLocation Expr::getExprLoc() const { in getExprLoc() function in Expr
200 case Stmt::type##Class: return getExprLocImpl<type>(this, &type::getExprLoc); in getExprLoc()
2025 Loc = getExprLoc(); in isUnusedResultAWarning()
2213 Loc = getExprLoc(); in isUnusedResultAWarning()
2221 Loc = getExprLoc(); in isUnusedResultAWarning()
2230 Loc = getExprLoc(); in isUnusedResultAWarning()
2243 Loc = getExprLoc(); in isUnusedResultAWarning()
2889 if (!IncludePossibleEffects && getExprLoc().isMacroID()) in HasSideEffects()
/external/clang/include/clang/AST/
DExpr.h227 SourceLocation getExprLoc() const LLVM_READONLY;
852 SourceLocation getExprLoc() const LLVM_READONLY { in getExprLoc() function
853 if (SourceExpr) return SourceExpr->getExprLoc(); in getExprLoc()
1759 SourceLocation getExprLoc() const LLVM_READONLY { return Loc; } in getExprLoc() function
2129 SourceLocation getExprLoc() const LLVM_READONLY { in getExprLoc() function
2130 return getBase()->getExprLoc(); in getExprLoc()
2557 SourceLocation getExprLoc() const LLVM_READONLY { return MemberLoc; } in getExprLoc() function
2955 SourceLocation getExprLoc() const LLVM_READONLY { return OpLoc; } in getExprLoc() function
4724 SourceLocation getExprLoc() const LLVM_READONLY { in getExprLoc() function
4725 return getSyntacticForm()->getExprLoc(); in getExprLoc()
DExprObjC.h1448 SourceLocation getExprLoc() const LLVM_READONLY { return IsaMemberLoc; }
1521 SourceLocation getExprLoc() const LLVM_READONLY {
1522 return getSubExpr()->getExprLoc();

123