/external/clang/lib/StaticAnalyzer/Checkers/ |
D | MacOSKeychainAPIChecker.cpp | 99 const Expr *ArgExpr, 246 const Expr *ArgExpr, in generateDeallocatorMismatchReport() argument 264 Report->addRange(ArgExpr->getSourceRange()); in generateDeallocatorMismatchReport() 289 const Expr *ArgExpr = CE->getArg(paramIdx); in checkPreStmt() local 290 if (SymbolRef V = getAsPointeeSymbol(ArgExpr, C)) in checkPreStmt() 309 Report->addRange(ArgExpr->getSourceRange()); in checkPreStmt() 327 const Expr *ArgExpr = CE->getArg(paramIdx); in checkPreStmt() local 328 SVal ArgSVal = State->getSVal(ArgExpr, C.getLocationContext()); in checkPreStmt() 356 if (isEnclosingFunctionParam(ArgExpr)) in checkPreStmt() 365 Report->addRange(ArgExpr->getSourceRange()); in checkPreStmt() [all …]
|
D | ChrootChecker.cpp | 108 const Expr *ArgExpr = CE->getArg(0); in Chdir() local 109 SVal ArgVal = state->getSVal(ArgExpr, C.getLocationContext()); in Chdir()
|
D | NullabilityChecker.cpp | 685 const Expr *ArgExpr = nullptr; in checkPreCall() local 687 ArgExpr = Call.getArgExpr(Idx); in checkPreCall() 701 getNullabilityAnnotation(ArgExpr->getType()); in checkPreCall() 718 ArgExpr, /*SuppressPath=*/false); in checkPreCall() 744 Region, C, ArgExpr, /*SuppressPath=*/true); in checkPreCall() 752 C, ArgExpr, /*SuppressPath=*/true); in checkPreCall() 761 Region, NullabilityState(ArgExprTypeLevelNullability, ArgExpr)); in checkPreCall()
|
D | MallocChecker.cpp | 1311 const Expr *ArgExpr, in FreeMemAux() argument 1321 SVal ArgVal = State->getSVal(ArgExpr, C.getLocationContext()); in FreeMemAux() 1346 ReportBadFree(C, ArgVal, ArgExpr->getSourceRange(), ParentExpr); in FreeMemAux() 1354 ReportBadFree(C, ArgVal, ArgExpr->getSourceRange(), ParentExpr); in FreeMemAux() 1372 ReportFreeAlloca(C, ArgVal, ArgExpr->getSourceRange()); in FreeMemAux() 1374 ReportBadFree(C, ArgVal, ArgExpr->getSourceRange(), ParentExpr); in FreeMemAux() 1393 ReportFreeAlloca(C, ArgVal, ArgExpr->getSourceRange()); in FreeMemAux() 1413 ReportMismatchedDealloc(C, ArgExpr->getSourceRange(), in FreeMemAux() 1425 ReportOffsetFree(C, ArgVal, ArgExpr->getSourceRange(), ParentExpr, in FreeMemAux()
|
/external/clang/lib/AST/ |
D | ASTDiagnostic.cpp | 529 Expr *ArgExpr = nullptr; member 605 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetExpressionDiff() 606 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr; in SetExpressionDiff() 632 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetIntegerDiff() 633 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr; in SetIntegerDiff() 649 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetDeclarationDiff() 650 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr; in SetDeclarationDiff() 663 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetFromDeclarationAndToIntegerDiff() 667 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr; in SetFromDeclarationAndToIntegerDiff() 680 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetFromIntegerAndToDeclarationDiff() [all …]
|
/external/clang/lib/Sema/ |
D | SemaTemplate.cpp | 3142 if (DeclRefExpr *ArgExpr = dyn_cast<DeclRefExpr>(Arg.getAsExpr())) { in CheckTemplateTypeArgument() local 3143 SS.Adopt(ArgExpr->getQualifierLoc()); in CheckTemplateTypeArgument() 3144 NameInfo = ArgExpr->getNameInfo(); in CheckTemplateTypeArgument() 3145 } else if (DependentScopeDeclRefExpr *ArgExpr = in CheckTemplateTypeArgument() local 3147 SS.Adopt(ArgExpr->getQualifierLoc()); in CheckTemplateTypeArgument() 3148 NameInfo = ArgExpr->getNameInfo(); in CheckTemplateTypeArgument() 3149 } else if (CXXDependentScopeMemberExpr *ArgExpr = in CheckTemplateTypeArgument() local 3151 if (ArgExpr->isImplicitAccess()) { in CheckTemplateTypeArgument() 3152 SS.Adopt(ArgExpr->getQualifierLoc()); in CheckTemplateTypeArgument() 3153 NameInfo = ArgExpr->getMemberNameInfo(); in CheckTemplateTypeArgument() [all …]
|
D | SemaAccess.cpp | 1734 Expr *ArgExpr, in CheckMemberOperatorAccess() argument 1747 << (ArgExpr ? ArgExpr->getSourceRange() : SourceRange()); in CheckMemberOperatorAccess()
|
D | SemaChecking.cpp | 1923 const Expr *ArgExpr, in CheckNonNullArgument() argument 1925 if (CheckNonNullExpr(S, ArgExpr)) in CheckNonNullArgument() 1926 S.DiagRuntimeBehavior(CallSiteLoc, ArgExpr, in CheckNonNullArgument() 1927 S.PDiag(diag::warn_null_arg) << ArgExpr->getSourceRange()); in CheckNonNullArgument() 3779 void Diagnose(Sema &S, bool IsFunctionCall, const Expr *ArgExpr); 4405 const Expr *ArgExpr) { in Diagnose() argument 4409 if (!ArgExpr) in Diagnose() 4412 SourceLocation Loc = ArgExpr->getLocStart(); in Diagnose()
|
D | SemaDeclAttr.cpp | 331 Expr *ArgExpr = Attr.getArgAsExpr(ArgNum); in checkStringLiteralArgumentAttr() local 332 StringLiteral *Literal = dyn_cast<StringLiteral>(ArgExpr->IgnoreParenCasts()); in checkStringLiteralArgumentAttr() 334 *ArgLocation = ArgExpr->getLocStart(); in checkStringLiteralArgumentAttr() 337 Diag(ArgExpr->getLocStart(), diag::err_attribute_argument_type) in checkStringLiteralArgumentAttr()
|
D | SemaExpr.cpp | 4854 ExprResult ArgExpr = in GatherArgumentsForCall() local 4856 if (ArgExpr.isInvalid()) in GatherArgumentsForCall() 4859 Arg = ArgExpr.getAs<Expr>(); in GatherArgumentsForCall() 4922 const Expr *ArgExpr) { in CheckStaticArrayArgument() argument 4933 if (ArgExpr->isNullPointerConstant(Context, in CheckStaticArrayArgument() 4935 Diag(CallLoc, diag::warn_null_arg) << ArgExpr->getSourceRange(); in CheckStaticArrayArgument() 4945 Context.getAsConstantArrayType(ArgExpr->IgnoreParenImpCasts()->getType()); in CheckStaticArrayArgument() 4951 << ArgExpr->getSourceRange() in CheckStaticArrayArgument()
|
D | SemaDeclCXX.cpp | 2524 Expr *ArgExpr = E->getArg(0); in VisitCXXConstructExpr() local 2525 if (InitListExpr *ILE = dyn_cast<InitListExpr>(ArgExpr)) in VisitCXXConstructExpr() 2527 ArgExpr = ILE->getInit(0); in VisitCXXConstructExpr() 2528 if (ImplicitCastExpr *ICE = dyn_cast<ImplicitCastExpr>(ArgExpr)) in VisitCXXConstructExpr() 2530 ArgExpr = ICE->getSubExpr(); in VisitCXXConstructExpr() 2531 HandleValue(ArgExpr, false /*AddressOf*/); in VisitCXXConstructExpr()
|
D | SemaDecl.cpp | 9327 Expr *ArgExpr = E->getArg(0); in VisitCXXConstructExpr() local 9328 if (InitListExpr *ILE = dyn_cast<InitListExpr>(ArgExpr)) in VisitCXXConstructExpr() 9330 ArgExpr = ILE->getInit(0); in VisitCXXConstructExpr() 9331 if (ImplicitCastExpr *ICE = dyn_cast<ImplicitCastExpr>(ArgExpr)) in VisitCXXConstructExpr() 9333 ArgExpr = ICE->getSubExpr(); in VisitCXXConstructExpr() 9334 HandleValue(ArgExpr); in VisitCXXConstructExpr()
|
D | SemaOverload.cpp | 7131 static Qualifiers CollectVRQualifiers(ASTContext &Context, Expr* ArgExpr) { in CollectVRQualifiers() argument 7135 ArgExpr->getType()->getAs<MemberPointerType>()) in CollectVRQualifiers() 7138 TyRec = ArgExpr->getType()->getAs<RecordType>(); in CollectVRQualifiers()
|
/external/clang/include/clang/AST/ |
D | ExprObjC.h | 1299 void setArg(unsigned Arg, Expr *ArgExpr) { 1301 getArgs()[Arg] = ArgExpr;
|
D | ExprCXX.h | 1298 void setArg(unsigned Arg, Expr *ArgExpr) { in setArg() argument 1300 Args[Arg] = ArgExpr; in setArg()
|
D | Expr.h | 2227 void setArg(unsigned Arg, Expr *ArgExpr) { in setArg() argument 2229 SubExprs[Arg+getNumPreArgs()+PREARGS_START] = ArgExpr; in setArg()
|
/external/clang/lib/Parse/ |
D | ParseDecl.cpp | 309 ExprResult ArgExpr( in ParseAttributeArgsCommon() local 311 if (ArgExpr.isInvalid()) { in ParseAttributeArgsCommon() 315 ArgExprs.push_back(ArgExpr.get()); in ParseAttributeArgsCommon() 2523 ExprResult ArgExpr = ParseAlignArgument(T.getOpenLocation(), EllipsisLoc); in ParseAlignmentSpecifier() local 2524 if (ArgExpr.isInvalid()) { in ParseAlignmentSpecifier() 2534 ArgExprs.push_back(ArgExpr.get()); in ParseAlignmentSpecifier()
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 2679 CastExpr *ArgExpr = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr() local 2683 ClsExprs.push_back(ArgExpr); in SynthMessageExpr() 2773 CastExpr *ArgExpr = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr() local 2777 ClsExprs.push_back(ArgExpr); in SynthMessageExpr()
|
D | RewriteModernObjC.cpp | 3326 CastExpr *ArgExpr = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr() local 3329 MsgExprs.push_back(ArgExpr); in SynthMessageExpr()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 3995 const Expr *ArgExpr); 5592 Expr *ArgExpr,
|