/external/clang/lib/CodeGen/ |
D | CGBuiltin.cpp | 83 assert(E->getArg(0)->getType()->isPointerType()); in EmitBinaryAtomic() 85 E->getArg(0)->getType()->getPointeeType())); in EmitBinaryAtomic() 86 assert(CGF.getContext().hasSameUnqualifiedType(T, E->getArg(1)->getType())); in EmitBinaryAtomic() 88 llvm::Value *DestPtr = CGF.EmitScalarExpr(E->getArg(0)); in EmitBinaryAtomic() 99 Args[1] = CGF.EmitScalarExpr(E->getArg(1)); in EmitBinaryAtomic() 118 assert(E->getArg(0)->getType()->isPointerType()); in EmitBinaryAtomicPost() 120 E->getArg(0)->getType()->getPointeeType())); in EmitBinaryAtomicPost() 121 assert(CGF.getContext().hasSameUnqualifiedType(T, E->getArg(1)->getType())); in EmitBinaryAtomicPost() 123 llvm::Value *DestPtr = CGF.EmitScalarExpr(E->getArg(0)); in EmitBinaryAtomicPost() 133 Args[1] = CGF.EmitScalarExpr(E->getArg(1)); in EmitBinaryAtomicPost() [all …]
|
/external/clang/lib/Edit/ |
D | RewriteObjCFoundationAPI.cpp | 66 const Expr *Arg = Msg->getArg(0)->IgnoreParenImpCasts(); in rewriteObjCRedundantCallWithLiteral() 86 Msg->getArg(0)->getSourceRange()); in rewriteObjCRedundantCallWithLiteral() 190 SourceRange ArgRange = Msg->getArg(0)->getSourceRange(); in rewriteToSubscriptGetCommon() 238 SourceRange Arg0Range = Msg->getArg(0)->getSourceRange(); in rewriteToArraySubscriptSet() 239 SourceRange Arg1Range = Msg->getArg(1)->getSourceRange(); in rewriteToArraySubscriptSet() 272 SourceRange Arg0Range = Msg->getArg(0)->getSourceRange(); in rewriteToDictionarySubscriptSet() 273 SourceRange Arg1Range = Msg->getArg(1)->getSourceRange(); in rewriteToDictionarySubscriptSet() 378 objectifyExpr(Msg->getArg(0), commit); in rewriteToArrayLiteral() 379 SourceRange ArgRange = Msg->getArg(0)->getSourceRange(); in rewriteToArrayLiteral() 389 const Expr *SentinelExpr = Msg->getArg(Msg->getNumArgs() - 1); in rewriteToArrayLiteral() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | PthreadLockChecker.cpp | 71 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in checkPostStmt() 76 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in checkPostStmt() 81 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in checkPostStmt() 86 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in checkPostStmt() 92 ReleaseLock(C, CE, state->getSVal(CE->getArg(0), LCtx)); in checkPostStmt() 120 report->addRange(CE->getArg(0)->getSourceRange()); in AcquireLock() 185 report->addRange(CE->getArg(0)->getSourceRange()); in ReleaseLock()
|
D | CStringSyntaxChecker.cpp | 62 && sameDecl(CE->getArg(0), WithArg)); in isStrlen() 105 const Expr *DstArg = CE->getArg(0); in containsBadStrncatPattern() 106 const Expr *SrcArg = CE->getArg(1); in containsBadStrncatPattern() 107 const Expr *LenArg = CE->getArg(2); in containsBadStrncatPattern() 141 const Expr *DstArg = CE->getArg(0); in VisitCallExpr() 142 const Expr *LenArg = CE->getArg(2); in VisitCallExpr()
|
D | StreamChecker.cpp | 255 if (!CheckNullStream(state->getSVal(CE->getArg(3), C.getLocationContext()), in Fread() 262 if (!CheckNullStream(state->getSVal(CE->getArg(3), C.getLocationContext()), in Fwrite() 269 if (!(state = CheckNullStream(state->getSVal(CE->getArg(0), in Fseek() 273 SVal Whence = state->getSVal(CE->getArg(2), C.getLocationContext()); in Fseek() 296 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Ftell() 303 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Rewind() 310 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Fgetpos() 317 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Fsetpos() 324 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Clearerr() 331 if (!CheckNullStream(state->getSVal(CE->getArg(0), C.getLocationContext()), in Feof() [all …]
|
D | ObjCContainersChecker.cpp | 100 addSizeInfo(CE, CE->getArg(2), C); in checkPostStmt() 105 addSizeInfo(CE->getArg(0), CE, C); in checkPostStmt() 121 const Expr *ArrayExpr = CE->getArg(0); in checkPreStmt() 132 const Expr *IdxExpr = CE->getArg(1); in checkPreStmt()
|
D | GenericTaintChecker.cpp | 358 const Expr* Arg = CE->getArg(ArgNum); in propagateFromPre() 467 if ((IsTainted = isTaintedOrPointsToTainted(CE->getArg(i), State, C))) in process() 475 if ((IsTainted = isTaintedOrPointsToTainted(CE->getArg(ArgNum), State, C))) in process() 493 const Expr *Arg = CE->getArg(i); in process() 527 if (State->isTainted(CE->getArg(0), C.getLocationContext()) || in preFscanf() 528 isStdin(CE->getArg(0), C)) { in preFscanf() 546 SourceLocation DomLoc = CE->getArg(0)->getExprLoc(); in postSocket() 566 const Expr* Arg = CE->getArg(i); in postScanf() 670 if (generateReportIfTainted(CE->getArg(ArgNum), in checkUncontrolledFormatString() 698 if (generateReportIfTainted(CE->getArg(ArgNum), in checkSystemCall() [all …]
|
D | CStringChecker.cpp | 988 const Expr *Dest = CE->getArg(0); in evalMemcpy() 991 evalCopyCommon(C, CE, state, CE->getArg(2), Dest, CE->getArg(1), true); in evalMemcpy() 1000 const Expr *Dest = CE->getArg(0); in evalMempcpy() 1003 evalCopyCommon(C, CE, state, CE->getArg(2), Dest, CE->getArg(1), true, true); in evalMempcpy() 1012 const Expr *Dest = CE->getArg(0); in evalMemmove() 1015 evalCopyCommon(C, CE, state, CE->getArg(2), Dest, CE->getArg(1)); in evalMemmove() 1024 CE->getArg(2), CE->getArg(1), CE->getArg(0)); in evalBcopy() 1034 const Expr *Left = CE->getArg(0); in evalMemcmp() 1035 const Expr *Right = CE->getArg(1); in evalMemcmp() 1036 const Expr *Size = CE->getArg(2); in evalMemcmp() [all …]
|
D | UnixAPIChecker.cpp | 102 const Expr *oflagsEx = CE->getArg(1); in CheckOpen() 162 state->getSVal(CE->getArg(0), C.getLocationContext()).getAsRegion(); in CheckPthreadOnce() 185 report->addRange(CE->getArg(0)->getSourceRange()); in CheckPthreadOnce() 247 const Expr *arg = CE->getArg(sizeArg); in BasicAllocationCheck() 275 const Expr *arg = CE->getArg(i); in CheckCallocZero()
|
D | ObjCContainersASTChecker.cpp | 109 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr() 117 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr() 121 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr()
|
D | MacOSXAPIChecker.cpp | 61 state->getSVal(CE->getArg(0), C.getLocationContext()).getAsRegion(); in CheckDispatchOnce() 86 report->addRange(CE->getArg(0)->getSourceRange()); in CheckDispatchOnce()
|
D | OSAtomicChecker.cpp | 79 const Expr *oldValueExpr = CE->getArg(0); in evalOSAtomicCompareAndSwap() 82 const Expr *newValueExpr = CE->getArg(1); in evalOSAtomicCompareAndSwap() 89 const Expr *theValueExpr = CE->getArg(2); in evalOSAtomicCompareAndSwap()
|
D | MacOSKeychainAPIChecker.cpp | 304 const Expr *ArgExpr = CE->getArg(FunctionsToTrack[idx].Param); in checkPreStmt() 338 const Expr *ArgExpr = CE->getArg(FunctionsToTrack[idx].Param); in checkPreStmt() 387 const Expr *DeallocatorExpr = CE->getArg(5)->IgnoreParenCasts(); in checkPreStmt() 464 const Expr *ArgExpr = CE->getArg(FunctionsToTrack[idx].Param); in checkPostStmt() 683 const Expr *ArgExpr = CE->getArg(FunctionsToTrack[Idx].Param); in VisitNode()
|
D | BasicObjCFoundationChecks.cpp | 288 SVal TheTypeVal = state->getSVal(CE->getArg(1), LCtx); in checkPreStmt() 306 SVal TheValueExpr = state->getSVal(CE->getArg(2), LCtx); in checkPreStmt() 360 report->addRange(CE->getArg(2)->getSourceRange()); in checkPreStmt() 407 const Expr *Arg = CE->getArg(0); in checkPreStmt()
|
D | MallocChecker.cpp | 452 State = MallocMemAux(C, CE, CE->getArg(0), UndefinedVal(), State); in checkPostStmt() 528 return MallocMemAux(C, CE, CE->getArg(*I), UndefinedVal(), C.getState()); in MallocMemReturnsAttr() 621 return FreeMemAux(C, CE->getArg(Num), CE, state, Hold, ReleasedAllocated); in FreeMemAux() 851 const Expr *arg0Expr = CE->getArg(0); in ReallocMem() 864 const Expr *Arg1 = CE->getArg(1); in ReallocMem() 891 ProgramStateRef stateMalloc = MallocMemAux(C, CE, CE->getArg(1), in ReallocMem() 924 ProgramStateRef stateRealloc = MallocMemAux(C, CE, CE->getArg(1), in ReallocMem() 947 SVal count = state->getSVal(CE->getArg(0), LCtx); in CallocMem() 948 SVal elementSize = state->getSVal(CE->getArg(1), LCtx); in CallocMem()
|
D | LLVMConventionsChecker.cpp | 163 ImplicitCastExpr *Ex3 = dyn_cast<ImplicitCastExpr>(Ex2->getArg(0)); in VisitVarDecl() 169 ImplicitCastExpr *Ex5 = dyn_cast<ImplicitCastExpr>(Ex4->getArg(0)); in VisitVarDecl()
|
D | ExprInspectionChecker.cpp | 59 const Expr *Assertion = CE->getArg(0); in getArgumentValueString()
|
/external/clang/lib/Sema/ |
D | SemaChecking.cpp | 63 SourceRange range(call->getArg(desiredArgCount)->getLocStart(), in checkArgCount() 64 call->getArg(argCount - 1)->getLocEnd()); in checkArgCount() 68 << call->getArg(1)->getSourceRange(); in checkArgCount() 78 Expr *ValArg = TheCall->getArg(0); in SemaBuiltinAnnotation() 87 Expr *StrArg = TheCall->getArg(1)->IgnoreParenCasts(); in SemaBuiltinAnnotation() 125 if (CheckObjCString(TheCall->getArg(0))) in CheckBuiltinFunctionCall() 378 << TheCall->getArg(ImmArg)->getSourceRange(); in CheckARMBuiltinFunctionCall() 383 Expr *Arg = TheCall->getArg(PtrArgNum); in CheckARMBuiltinFunctionCall() 416 if (TheCall->getArg(i)->isTypeDependent() || in CheckARMBuiltinFunctionCall() 417 TheCall->getArg(i)->isValueDependent()) in CheckARMBuiltinFunctionCall() [all …]
|
D | SemaDeclAttr.cpp | 409 Expr *ArgExp = Attr.getArg(Idx); in checkAttrArgsAreLockableObjs() 751 if (!isIntOrBool(Attr.getArg(0))) { in checkTryLockFunAttrCommon() 773 Attr.getArg(0), in handleSharedTrylockFunctionAttr() 787 Attr.getArg(0), in handleExclusiveTrylockFunctionAttr() 867 Expr *Arg = Attr.getArg(0); in handleLockReturnedAttr() 945 sizeExpr = Attr.getArg(0); in handleExtVectorTypeAttr() 1360 Expr *IdxExpr = AL.getArg(0); in handleOwnershipAttr() 1484 Expr *Arg = Attr.getArg(0); in handleWeakRefAttr() 1509 Expr *Arg = Attr.getArg(0); in handleAliasAttr() 1609 Expr *Arg = Attr.getArg(0); in handleTLSModelAttr() [all …]
|
/external/clang/lib/AST/ |
D | StmtPrinter.cpp | 865 if (isa<CXXDefaultArgExpr>(Call->getArg(i))) { in PrintCallArgs() 871 PrintExpr(Call->getArg(i)); in PrintCallArgs() 1108 PrintExpr(Node->getArg(0)); in VisitCXXOperatorCallExpr() 1110 PrintExpr(Node->getArg(0)); in VisitCXXOperatorCallExpr() 1114 PrintExpr(Node->getArg(0)); in VisitCXXOperatorCallExpr() 1119 if (!isa<CXXDefaultArgExpr>(Node->getArg(ArgIdx))) in VisitCXXOperatorCallExpr() 1120 PrintExpr(Node->getArg(ArgIdx)); in VisitCXXOperatorCallExpr() 1124 PrintExpr(Node->getArg(0)); in VisitCXXOperatorCallExpr() 1126 PrintExpr(Node->getArg(1)); in VisitCXXOperatorCallExpr() 1130 PrintExpr(Node->getArg(0)); in VisitCXXOperatorCallExpr() [all …]
|
D | ExprCXX.cpp | 415 const Expr *Arg = getArg(I-1); in getSourceRange() 433 return SourceRange(getOperatorLoc(), getArg(0)->getLocEnd()); in getSourceRangeImpl() 436 return SourceRange(getArg(0)->getLocStart(), getOperatorLoc()); in getSourceRangeImpl() 438 return getArg(0)->getSourceRange(); in getSourceRangeImpl() 440 return SourceRange(getArg(0)->getLocStart(), getRParenLoc()); in getSourceRangeImpl() 442 return SourceRange(getArg(0)->getLocStart(), getRParenLoc()); in getSourceRangeImpl() 444 return SourceRange(getOperatorLoc(), getArg(0)->getLocEnd()); in getSourceRangeImpl() 446 return SourceRange(getArg(0)->getLocStart(), getArg(1)->getLocEnd()); in getSourceRangeImpl() 667 return getArg(0); in getCookedLiteral()
|
/external/llvm/utils/TableGen/ |
D | CodeGenInstruction.cpp | 56 ArgInit = OutDI->getArg(i); in CGIOperandList() 59 ArgInit = InDI->getArg(i-NumDefs); in CGIOperandList() 418 Init *Arg = Result->getArg(AliasOpNo); in tryAliasOpMatch() 449 InstOpRec = dynamic_cast<DefInit*>(DI->getArg(0))->getDef(); in tryAliasOpMatch() 531 DefInit *ADI = dynamic_cast<DefInit*>(Result->getArg(i)); in CodeGenInstAlias() 578 Record *SubRec = dynamic_cast<DefInit*>(MIOI->getArg(SubOp))->getDef(); in CodeGenInstAlias() 599 Record *SubRec = dynamic_cast<DefInit*>(MIOI->getArg(SubOp))->getDef(); in CodeGenInstAlias()
|
D | PseudoLoweringEmitter.cpp | 77 if (DefInit *DI = dynamic_cast<DefInit*>(Dag->getArg(i))) { in addDagOperandMapping() 103 } else if (IntInit *II = dynamic_cast<IntInit*>(Dag->getArg(i))) { in addDagOperandMapping() 107 } else if (DagInit *SubDag = dynamic_cast<DagInit*>(Dag->getArg(i))) { in addDagOperandMapping()
|
/external/clang/lib/ARCMigrate/ |
D | TransUnbridgedCasts.cpp | 143 Expr *Arg = callE->getArg(0); in transformNonObjCToObjCCast() 261 Pass.TA.replace(callE->getSourceRange(), callE->getArg(0)->getSourceRange()); in rewriteCastForCFRetain() 349 Expr *arg = callE->getArg(i); in isPassedToCParamWithKnownOwnership()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | CallEvent.h | 405 return getOriginExpr()->getArg(Index); in getArgExpr() 548 return getOriginExpr()->getArg(Index); in getArgExpr() 587 return getOriginExpr()->getArg(Index + 1); in getArgExpr() 685 return getOriginExpr()->getArg(Index); in getArgExpr() 787 return getOriginExpr()->getArg(Index); in getArgExpr()
|