Home
last modified time | relevance | path

Searched refs:ArgExpr (Results 1 – 18 of 18) sorted by relevance

/external/clang/lib/StaticAnalyzer/Checkers/
DMacOSKeychainAPIChecker.cpp99 const Expr *ArgExpr,
256 const Expr *ArgExpr, in generateDeallocatorMismatchReport() argument
274 Report->addRange(ArgExpr->getSourceRange()); in generateDeallocatorMismatchReport()
295 const Expr *ArgExpr = CE->getArg(FunctionsToTrack[idx].Param); in checkPreStmt() local
296 if (SymbolRef V = getAsPointeeSymbol(ArgExpr, C)) in checkPreStmt()
315 Report->addRange(ArgExpr->getSourceRange()); in checkPreStmt()
329 const Expr *ArgExpr = CE->getArg(FunctionsToTrack[idx].Param); in checkPreStmt() local
330 SVal ArgSVal = State->getSVal(ArgExpr, C.getLocationContext()); in checkPreStmt()
358 if (isEnclosingFunctionParam(ArgExpr)) in checkPreStmt()
367 Report->addRange(ArgExpr->getSourceRange()); in checkPreStmt()
[all …]
DChrootChecker.cpp107 const Expr *ArgExpr = CE->getArg(0); in Chdir() local
108 SVal ArgVal = state->getSVal(ArgExpr, C.getLocationContext()); in Chdir()
DMallocChecker.cpp1066 const Expr *ArgExpr, in FreeMemAux() argument
1073 SVal ArgVal = State->getSVal(ArgExpr, C.getLocationContext()); in FreeMemAux()
1098 ReportBadFree(C, ArgVal, ArgExpr->getSourceRange(), ParentExpr); in FreeMemAux()
1106 ReportBadFree(C, ArgVal, ArgExpr->getSourceRange(), ParentExpr); in FreeMemAux()
1123 ReportBadFree(C, ArgVal, ArgExpr->getSourceRange(), ParentExpr); in FreeMemAux()
1154 ReportMismatchedDealloc(C, ArgExpr->getSourceRange(), in FreeMemAux()
1166 ReportOffsetFree(C, ArgVal, ArgExpr->getSourceRange(), ParentExpr, in FreeMemAux()
/external/clang/lib/AST/
DASTDiagnostic.cpp1108 Expr *ArgExpr = nullptr; in GetExpr() local
1112 ArgExpr = Iter->getAsExpr(); in GetExpr()
1114 ArgExpr = DefaultNTTPD->getDefaultArgument(); in GetExpr()
1116 if (ArgExpr) in GetExpr()
1118 dyn_cast<SubstNonTypeTemplateParmExpr>(ArgExpr)) in GetExpr()
1119 ArgExpr = SNTTPE->getReplacement(); in GetExpr()
1121 return ArgExpr; in GetExpr()
1126 bool GetInt(const TSTiterator &Iter, Expr *ArgExpr, llvm::APInt &Int) { in GetInt() argument
1130 if (Iter.isEnd() && ArgExpr->isValueDependent()) { in GetInt()
1136 ArgExpr = Iter.getDesugar().getAsExpr(); in GetInt()
[all …]
/external/clang/lib/Sema/
DSemaTemplate.cpp3032 if (DeclRefExpr *ArgExpr = dyn_cast<DeclRefExpr>(Arg.getAsExpr())) { in CheckTemplateTypeArgument() local
3033 SS.Adopt(ArgExpr->getQualifierLoc()); in CheckTemplateTypeArgument()
3034 NameInfo = ArgExpr->getNameInfo(); in CheckTemplateTypeArgument()
3035 } else if (DependentScopeDeclRefExpr *ArgExpr = in CheckTemplateTypeArgument() local
3037 SS.Adopt(ArgExpr->getQualifierLoc()); in CheckTemplateTypeArgument()
3038 NameInfo = ArgExpr->getNameInfo(); in CheckTemplateTypeArgument()
3039 } else if (CXXDependentScopeMemberExpr *ArgExpr = in CheckTemplateTypeArgument() local
3041 if (ArgExpr->isImplicitAccess()) { in CheckTemplateTypeArgument()
3042 SS.Adopt(ArgExpr->getQualifierLoc()); in CheckTemplateTypeArgument()
3043 NameInfo = ArgExpr->getMemberNameInfo(); in CheckTemplateTypeArgument()
[all …]
DSemaAccess.cpp1722 Expr *ArgExpr, in CheckMemberOperatorAccess() argument
1735 << (ArgExpr ? ArgExpr->getSourceRange() : SourceRange()); in CheckMemberOperatorAccess()
DSemaDeclAttr.cpp281 Expr *ArgExpr = Attr.getArgAsExpr(ArgNum); in checkStringLiteralArgumentAttr() local
282 StringLiteral *Literal = dyn_cast<StringLiteral>(ArgExpr->IgnoreParenCasts()); in checkStringLiteralArgumentAttr()
284 *ArgLocation = ArgExpr->getLocStart(); in checkStringLiteralArgumentAttr()
287 Diag(ArgExpr->getLocStart(), diag::err_attribute_argument_type) in checkStringLiteralArgumentAttr()
DSemaExpr.cpp4296 ExprResult ArgExpr = in GatherArgumentsForCall() local
4298 if (ArgExpr.isInvalid()) in GatherArgumentsForCall()
4301 Arg = ArgExpr.getAs<Expr>(); in GatherArgumentsForCall()
4365 const Expr *ArgExpr) { in CheckStaticArrayArgument() argument
4376 if (ArgExpr->isNullPointerConstant(Context, in CheckStaticArrayArgument()
4378 Diag(CallLoc, diag::warn_null_arg) << ArgExpr->getSourceRange(); in CheckStaticArrayArgument()
4388 Context.getAsConstantArrayType(ArgExpr->IgnoreParenImpCasts()->getType()); in CheckStaticArrayArgument()
4394 << ArgExpr->getSourceRange() in CheckStaticArrayArgument()
DSemaChecking.cpp722 const Expr *ArgExpr, in CheckNonNullArgument() argument
724 if (CheckNonNullExpr(S, ArgExpr)) in CheckNonNullArgument()
725 S.Diag(CallSiteLoc, diag::warn_null_arg) << ArgExpr->getSourceRange(); in CheckNonNullArgument()
DSemaOverload.cpp6824 static Qualifiers CollectVRQualifiers(ASTContext &Context, Expr* ArgExpr) { in CollectVRQualifiers() argument
6828 ArgExpr->getType()->getAs<MemberPointerType>()) in CollectVRQualifiers()
6831 TyRec = ArgExpr->getType()->getAs<RecordType>(); in CollectVRQualifiers()
DSemaDeclCXX.cpp3084 ExprResult ArgExpr = in BuildImplicitBaseInitializer() local
3087 if (ArgExpr.isInvalid()) in BuildImplicitBaseInitializer()
3089 Args.push_back(CastForMoving(SemaRef, ArgExpr.get(), PD->getType())); in BuildImplicitBaseInitializer()
/external/clang/include/clang/AST/
DExprObjC.h1316 void setArg(unsigned Arg, Expr *ArgExpr) {
1318 getArgs()[Arg] = ArgExpr;
DExprCXX.h1181 void setArg(unsigned Arg, Expr *ArgExpr) { in setArg() argument
1183 Args[Arg] = ArgExpr; in setArg()
DExpr.h2223 void setArg(unsigned Arg, Expr *ArgExpr) { in setArg() argument
2225 SubExprs[Arg+getNumPreArgs()+PREARGS_START] = ArgExpr; in setArg()
/external/clang/lib/Parse/
DParseDecl.cpp302 ExprResult ArgExpr(ParseAssignmentExpression()); in ParseAttributeArgsCommon() local
303 if (ArgExpr.isInvalid()) { in ParseAttributeArgsCommon()
307 ArgExprs.push_back(ArgExpr.get()); in ParseAttributeArgsCommon()
2279 ExprResult ArgExpr = ParseAlignArgument(T.getOpenLocation(), EllipsisLoc); in ParseAlignmentSpecifier() local
2280 if (ArgExpr.isInvalid()) { in ParseAlignmentSpecifier()
2290 ArgExprs.push_back(ArgExpr.get()); in ParseAlignmentSpecifier()
/external/clang/lib/Rewrite/Frontend/
DRewriteObjC.cpp2697 CastExpr *ArgExpr = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr() local
2701 ClsExprs.push_back(ArgExpr); in SynthMessageExpr()
2797 CastExpr *ArgExpr = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr() local
2801 ClsExprs.push_back(ArgExpr); in SynthMessageExpr()
DRewriteModernObjC.cpp3391 CastExpr *ArgExpr = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr() local
3394 MsgExprs.push_back(ArgExpr); in SynthMessageExpr()
/external/clang/include/clang/Sema/
DSema.h3573 const Expr *ArgExpr);
5087 Expr *ArgExpr,