Home
last modified time | relevance | path

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

12

/external/clang/lib/ARCMigrate/
DTransUnusedInitDelegate.cpp54 ME->getExprLoc())) { in VisitObjCMessageExpr()
57 ME->getExprLoc()); in VisitObjCMessageExpr()
DTransARCAssign.cpp47 SourceLocation OrigLoc = E->getExprLoc(); in VisitBinaryOperator()
DTransUnbridgedCasts.cpp101 SourceLocation loc = castExpr->getExprLoc(); in VisitCastExpr()
276 SourceLocation Loc = E->getExprLoc(); in getBlockMacroRanges()
331 SourceLocation CastLoc = E->getExprLoc(); in transformObjCToNonObjCCast()
DTransRetainReleaseDealloc.cpp333 SourceLocation Loc = Msg->getExprLoc(); in checkForGCDOrXPC()
/external/clang/lib/Sema/
DSemaPseudoObject.cpp623 S.Diag(RefExpr->getExprLoc(), diag::error_property_setter_ambiguous_use) in findSetter()
989 Diag(FromE->getExprLoc(), diag::err_objc_subscript_pointer) in CheckSubscriptingKind()
990 << T << FixItHint::CreateInsertion(FromE->getExprLoc(), "@"); in CheckSubscriptingKind()
992 Diag(FromE->getExprLoc(), diag::err_objc_subscript_type_conversion) in CheckSubscriptingKind()
998 if (RequireCompleteType(FromE->getExprLoc(), T, in CheckSubscriptingKind()
1034 Diag(FromE->getExprLoc(), diag::err_objc_subscript_type_conversion) in CheckSubscriptingKind()
1038 Diag(FromE->getExprLoc(), diag::err_objc_multiple_subscript_type_conversion) in CheckSubscriptingKind()
1093 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type) in findAtIndexGetter()
1144 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_method_not_found) in findAtIndexGetter()
1158 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
[all …]
DSemaStmt.cpp42 FE = ActOnFinishFullExpr(FE.get(), FE.get()->getExprLoc(), in ActOnExprStmt()
174 SourceLocation ExprLoc = E->IgnoreParens()->getExprLoc(); in DiagnoseUnusedExprResult()
368 LHSVal = ActOnFinishFullExpr(LHSVal, LHSVal->getExprLoc(), false, in ActOnCaseStmt()
371 RHSVal = ActOnFinishFullExpr(RHSVal, RHSVal->getExprLoc(), false, in ActOnCaseStmt()
978 Diag(CondExpr->getExprLoc(), diag::warn_missing_case_for_condition) in ActOnFinishSwitchStmt()
1016 Diag(CI->second->getLHS()->getExprLoc(), diag::warn_not_in_enum) in ActOnFinishSwitchStmt()
1027 Diag(RI->second->getLHS()->getExprLoc(), diag::warn_not_in_enum) in ActOnFinishSwitchStmt()
1037 Diag(RI->second->getRHS()->getExprLoc(), diag::warn_not_in_enum) in ActOnFinishSwitchStmt()
1079 Diag(CondExpr->getExprLoc(), TheDefaultStmt in ActOnFinishSwitchStmt()
1084 Diag(CondExpr->getExprLoc(), TheDefaultStmt in ActOnFinishSwitchStmt()
[all …]
DSemaOpenMP.cpp162 SourceLocation ILoc = DE->getExprLoc(); in CheckOMPThreadPrivateDecl()
318 SourceLocation ELoc = (*I)->getExprLoc(); in ActOnOpenMPPrivateClause()
DSemaChecking.cpp2627 S.Diag(IsStringLocation ? ArgumentExpr->getExprLoc() : Loc, PDiag) in EmitFormatDiagnostic()
3566 SizeOfArg->getExprLoc())) { in CheckMemaccessArguments()
3589 SourceLocation SL = SizeOfArg->getExprLoc(); in CheckMemaccessArguments()
3625 DiagRuntimeBehavior(LenExpr->getExprLoc(), Dest, in CheckMemaccessArguments()
3650 Dest->getExprLoc(), Dest, in CheckMemaccessArguments()
3659 Dest->getExprLoc(), Dest, in CheckMemaccessArguments()
3667 Dest->getExprLoc(), Dest, in CheckMemaccessArguments()
5029 S.DiagRuntimeBehavior(E->getExprLoc(), E, in DiagnoseImpCast()
5035 S.Diag(E->getExprLoc(), diag) in DiagnoseImpCast()
5068 S.Diag(FL->getExprLoc(), diag::warn_impcast_literal_float_to_integer) in DiagnoseFloatingLiteralImpCast()
[all …]
DSemaExprCXX.cpp684 MarkFunctionReferenced(E->getExprLoc(), Destructor); in CheckCXXThrowOperand()
685 CheckDestructorAccess(E->getExprLoc(), Destructor, in CheckCXXThrowOperand()
687 if (DiagnoseUseOfDecl(Destructor, E->getExprLoc())) in CheckCXXThrowOperand()
2299 CheckDestructorAccess(Ex.get()->getExprLoc(), Dtor, in ActOnCXXDelete()
2537 ICS.DiagnoseAmbiguousConversion(*this, From->getExprLoc(), in PerformImplicitConversion()
4876 MarkFunctionReferenced(E->getExprLoc(), Destructor); in MaybeBindToTemporary()
4877 CheckDestructorAccess(E->getExprLoc(), Destructor, in MaybeBindToTemporary()
4880 if (DiagnoseUseOfDecl(Destructor, E->getExprLoc())) in MaybeBindToTemporary()
5032 MarkFunctionReferenced(Bind->getExprLoc(), Destructor); in ActOnDecltypeExpression()
5033 CheckDestructorAccess(Bind->getExprLoc(), Destructor, in ActOnDecltypeExpression()
[all …]
DSemaCast.cpp1651 Self.Diag(SrcExpr.get()->getExprLoc(), in DiagnoseCastOfObjCSEL()
2103 SrcExpr.get()->getExprLoc()) in DiagnoseBadFunctionCast()
2129 Self.Diag(SrcExpr.get()->getExprLoc(), in DiagnoseBadFunctionCast()
2217 Self.Diag(SrcExpr.get()->getExprLoc(), in CheckCStyleCast()
2251 Self.Diag(SrcExpr.get()->getExprLoc(), diag::err_cast_selector_expr); in CheckCStyleCast()
2260 Self.Diag(SrcExpr.get()->getExprLoc(), in CheckCStyleCast()
DSemaExpr.cpp516 S.Diag(OIRE->getExprLoc(), diag::warn_objc_isa_assign) << in DiagnoseDirectIsaAccess()
530 S.Diag(OIRE->getExprLoc(), diag::warn_objc_isa_use) << in DiagnoseDirectIsaAccess()
578 Diag(E->getExprLoc(), diag::err_opencl_half_load_store) in DefaultLvalueConversion()
589 Diag(E->getExprLoc(), diag::warn_objc_isa_use) << in DefaultLvalueConversion()
594 Diag(E->getExprLoc(), diag::warn_objc_isa_use); in DefaultLvalueConversion()
730 E->getExprLoc(), in DefaultArgumentPromotion()
877 RequireCompleteType(E->getExprLoc(), E->getType(), in DefaultVariadicArgumentPromotion()
3244 return CheckVecStepTraitOperandType(*this, ExprTy, E->getExprLoc(), in CheckUnaryExprOrTypeTraitOperand()
3248 if (!CheckExtensionTraitOperandType(*this, ExprTy, E->getExprLoc(), in CheckUnaryExprOrTypeTraitOperand()
3261 if (CheckObjCTraitOperandConstraints(*this, ExprTy, E->getExprLoc(), in CheckUnaryExprOrTypeTraitOperand()
[all …]
DSemaTemplateInstantiate.cpp1302 ValueDecl *VD = cast_or_null<ValueDecl>(TransformDecl(E->getExprLoc(), D)); in TransformFunctionParmPackExpr()
1305 return RebuildParmVarDeclRefExpr(cast<ParmVarDecl>(VD), E->getExprLoc()); in TransformFunctionParmPackExpr()
1319 cast_or_null<ParmVarDecl>(TransformDecl(E->getExprLoc(), *I)); in TransformFunctionParmPackExpr()
1347 E->getExprLoc(), *Pack); in TransformFunctionParmPackRefExpr()
1357 E->getExprLoc()); in TransformFunctionParmPackRefExpr()
DSemaOverload.cpp1109 OverloadCandidateSet Conversions(From->getExprLoc()); in TryUserDefinedConversion()
2614 DiagRuntimeBehavior(From->getExprLoc(), From, in CheckPointerConversion()
2618 Diag(From->getExprLoc(), diag::warn_non_literal_null_pointer) in CheckPointerConversion()
2631 From->getExprLoc(), in CheckPointerConversion()
2751 Diag(From->getExprLoc(), diag::err_ambiguous_memptr_conv) in CheckMemberPointerConversion()
2757 Diag(From->getExprLoc(), diag::err_memptr_conv_via_virtual) in CheckMemberPointerConversion()
2764 CheckBaseClassAccess(From->getExprLoc(), FromClass, ToClass, in CheckMemberPointerConversion()
3004 S.RequireCompleteType(From->getExprLoc(), ToType, 0); in IsUserDefinedConversion()
3198 OverloadCandidateSet CandidateSet(From->getExprLoc()); in DiagnoseMultipleUserDefinedConversion()
5121 SemaRef.CheckMemberOperatorAccess(From->getExprLoc(), From, 0, Found); in diagnoseNoViableConversion()
[all …]
DSemaExprObjC.cpp1951 SourceLocation MsgLoc = Msg->getExprLoc(); in applyCocoaAPICheck()
2530 Diag(Args[0]->getExprLoc(), diag::note_used_here); in BuildInstanceMessage()
3045 (castRange.isValid() ? castRange.getBegin() : castExpr->getExprLoc()); in diagnoseObjCARCConversion()
3101 S.Diag(br ? castExpr->getExprLoc() : noteLoc, in diagnoseObjCARCConversion()
3140 S.Diag(br ? castExpr->getExprLoc() : noteLoc, in diagnoseObjCARCConversion()
3193 : castExpr->getExprLoc()); in CheckObjCARCConversion()
DSemaInit.cpp2105 Context, CodeUnit, PromotedCharTy, SubExpr->getExprLoc()); in CheckDesignatedInitializer()
2127 Context, CodeUnit, PromotedCharTy, SubExpr->getExprLoc()); in CheckDesignatedInitializer()
2967 if (S.RequireCompleteType(List->getExprLoc(), E, 0)) { in TryInitializerListConstruction()
2980 InitializationKind::CreateDirectList(List->getExprLoc()); in TryInitializerListConstruction()
4162 S.getSourceManager().isInSystemHeader(Init->getExprLoc()); in isLibstdcxxPointerReturnFalseHack()
4247 S.Diag(src->getExprLoc(), diag::err_arc_nonlocal_writeback) in checkIndirectCopyRestoreSource()
5408 S.Diag(Init->getExprLoc(), diag::warn_dangling_std_initializer_list) in warnOnLifetimeExtension()
5421 S.Diag(Init->getExprLoc(), in warnOnLifetimeExtension()
5912 S.Diag(InitList->getExprLoc(), diag::warn_cxx98_compat_ctor_list_init) in Perform()
6076 S.Diag(CurInit.get()->getExprLoc(), in Perform()
/external/clang/unittests/Tooling/
DRecursiveASTVisitorTest.cpp70 Match(getOperatorSpelling(CE->getOperator()), CE->getExprLoc()); in TraverseCXXOperatorCallExpr()
79 Match("", Parens->getExprLoc()); in VisitParenExpr()
/external/clang/lib/Analysis/
DThreadSafety.cpp581 Loc = DeclExp->getExprLoc(); in warnInvalidLock()
1731 SourceLocation Loc = Exp->getExprLoc(); in getEdgeLockset()
1826 Exp->getExprLoc(), &PartMatchName); in warnIfMutexNotHeld()
1830 Exp->getExprLoc()); in warnIfMutexNotHeld()
1837 Exp->getExprLoc()); in warnIfMutexNotHeld()
1854 Exp->getExprLoc()); in warnIfMutexHeld()
1887 Exp->getExprLoc()); in checkAccess()
1905 Exp->getExprLoc()); in checkPtAccess()
1925 SourceLocation Loc = Exp->getExprLoc(); in handleCall()
/external/clang/include/clang/AST/
DExpr.h227 SourceLocation getExprLoc() const LLVM_READONLY;
823 SourceLocation getExprLoc() const LLVM_READONLY { in getExprLoc() function
824 if (SourceExpr) return SourceExpr->getExprLoc(); in getExprLoc()
1725 SourceLocation getExprLoc() const LLVM_READONLY { return Loc; } in getExprLoc() function
2106 SourceLocation getExprLoc() const LLVM_READONLY { in getExprLoc() function
2107 return getBase()->getExprLoc(); in getExprLoc()
2523 SourceLocation getExprLoc() const LLVM_READONLY { return MemberLoc; } in getExprLoc() function
2921 SourceLocation getExprLoc() const LLVM_READONLY { return OpLoc; } in getExprLoc() function
4614 SourceLocation getExprLoc() const LLVM_READONLY { in getExprLoc() function
4615 return getSyntacticForm()->getExprLoc(); in getExprLoc()
DExprObjC.h1438 SourceLocation getExprLoc() const LLVM_READONLY { return IsaMemberLoc; }
1511 SourceLocation getExprLoc() const LLVM_READONLY {
1512 return getSubExpr()->getExprLoc();
/external/clang/lib/AST/
DExprConstant.cpp549 return Diag(E->getExprLoc(), DiagId, ExtraNotes); in Diag()
1110 Info.Note(Base.get<const Expr*>()->getExprLoc(), in NoteLValueLocation()
1471 Info.Ctx.getDiagnostics().Report(E->getExprLoc(), in CheckedIntArithmetic()
1747 if (!HandleSizeof(Info, E->getExprLoc(), EltTy, SizeOfPointee)) in HandleLValueArrayAdjustment()
1766 if (!HandleSizeof(Info, E->getExprLoc(), EltTy, SizeOfComponent)) in HandleLValueComplexElement()
2418 Info.Note(MTE->getExprLoc(), diag::note_constexpr_temporary_here); in findCompleteObject()
2438 Info.Note(Base->getExprLoc(), diag::note_constexpr_temporary_here); in findCompleteObject()
3902 if (!CheckConstexprFunction(Info, E->getExprLoc(), FD, Definition) || in VisitCallExpr()
3903 !HandleFunctionCall(E->getExprLoc(), Definition, This, Args, Body, in VisitCallExpr()
4305 !CheckConstantExpression(Info, E->getExprLoc(), Type, *Value))) { in VisitMaterializeTemporaryExpr()
[all …]
DExpr.cpp207 return static_cast<const E*>(expr)->getExprLoc(); in getExprLocImpl()
221 SourceLocation Expr::getExprLoc() const { in getExprLoc() function in Expr
228 case Stmt::type##Class: return getExprLocImpl<type>(this, &type::getExprLoc); in getExprLoc()
1923 Loc = getExprLoc(); in isUnusedResultAWarning()
2097 Loc = getExprLoc(); in isUnusedResultAWarning()
2105 Loc = getExprLoc(); in isUnusedResultAWarning()
2113 Loc = getExprLoc(); in isUnusedResultAWarning()
2126 Loc = getExprLoc(); in isUnusedResultAWarning()
DMicrosoftMangle.cpp862 Diags.Report(E->getExprLoc(), DiagID) in mangleExpression()
1499 Diags.Report(VAT->getSizeExpr()->getExprLoc(), DiagID) in mangleArrayType()
1509 Diags.Report(DSAT->getSizeExpr()->getExprLoc(), DiagID) in mangleArrayType()
/external/clang/lib/CodeGen/
DCGExprCXX.cpp280 CE->getExprLoc(), This); in EmitCXXMemberCallExpr()
293 EmitCXXMemberCall(MD, CE->getExprLoc(), Callee, ReturnValue, This, in EmitCXXMemberCallExpr()
315 return EmitCXXMemberCall(MD, CE->getExprLoc(), Callee, ReturnValue, This, in EmitCXXMemberCallExpr()
347 EmitTypeCheck(TCK_MemberCall, E->getExprLoc(), This, in EmitCXXMemberPointerCallExpr()
388 return EmitCXXMemberCall(MD, E->getExprLoc(), Callee, ReturnValue, This, in EmitCXXOperatorMemberCallExpr()
DCGDeclCXX.cpp394 FunctionArgList(), D->getInit()->getExprLoc()); in GenerateCXXGlobalVarDeclInitFunc()
DCGExpr.cpp414 EmitTypeCheck(TCK_ReferenceBinding, E->getExprLoc(), Value, Ty); in EmitReferenceBindingToExpr()
653 EmitCheckSourceLocation(E->getExprLoc()), in EmitBoundsCheck()
747 EmitTypeCheck(TCK, E->getExprLoc(), LV.getAddress(), in EmitCheckedLValue()
2405 EmitTypeCheck(TCK_MemberAccess, E->getExprLoc(), Ptr, PtrTy); in EmitMemberExpr()
2770 EmitTypeCheck(TCK_DowncastReference, E->getExprLoc(), in EmitCastLValue()

12