/freebsd-9.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/ |
H A D | BuiltinFunctionChecker.cpp | 27 bool evalCall(const CallExpr *CE, CheckerContext &C) const; 32 bool BuiltinFunctionChecker::evalCall(const CallExpr *CE, argument 35 const FunctionDecl *FD = C.getCalleeDecl(CE); 49 assert (CE->arg_begin() != CE->arg_end()); 50 SVal X = state->getSVal(*(CE->arg_begin()), LCtx); 51 C.addTransition(state->BindExpr(CE, LCtx, X)); 59 RM.getAllocaRegion(CE, C.blockCount(), C.getLocationContext()); 65 state->getSVal(*(CE->arg_begin()), LCtx).castAs<DefinedOrUnknownSVal>(); 74 C.addTransition(state->BindExpr(CE, LCt [all...] |
H A D | ExprInspectionChecker.cpp | 23 void analyzerEval(const CallExpr *CE, CheckerContext &C) const; 24 void analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const; 25 void analyzerWarnIfReached(const CallExpr *CE, CheckerContext &C) const; 26 void analyzerCrash(const CallExpr *CE, CheckerContext &C) const; 32 bool evalCall(const CallExpr *CE, CheckerContext &C) const; 36 bool ExprInspectionChecker::evalCall(const CallExpr *CE, argument 40 FnCheck Handler = llvm::StringSwitch<FnCheck>(C.getCalleeName(CE)) 51 (this->*Handler)(CE, C); 55 static const char *getArgumentValueString(const CallExpr *CE, argument 57 if (CE 87 analyzerEval(const CallExpr *CE, CheckerContext &C) const argument 104 analyzerWarnIfReached(const CallExpr *CE, CheckerContext &C) const argument 115 analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const argument 135 analyzerCrash(const CallExpr *CE, CheckerContext &C) const argument [all...] |
H A D | PthreadLockChecker.cpp | 36 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const; 38 void AcquireLock(CheckerContext &C, const CallExpr *CE, SVal lock, 41 void ReleaseLock(CheckerContext &C, const CallExpr *CE, SVal lock) const; 49 void PthreadLockChecker::checkPostStmt(const CallExpr *CE, argument 53 StringRef FName = C.getCalleeName(CE); 57 if (CE->getNumArgs() != 1) 63 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), 68 AcquireLock(C, CE, state->getSVal(CE 87 AcquireLock(CheckerContext &C, const CallExpr *CE, SVal lock, bool isTryLock, enum LockingSemantics semantics) const argument 150 ReleaseLock(CheckerContext &C, const CallExpr *CE, SVal lock) const argument [all...] |
H A D | GenericTaintChecker.cpp | 36 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const; 39 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const; 54 bool checkPre(const CallExpr *CE, CheckerContext &C) const; 57 void addSourcesPre(const CallExpr *CE, CheckerContext &C) const; 60 bool propagateFromPre(const CallExpr *CE, CheckerContext &C) const; 63 void addSourcesPost(const CallExpr *CE, CheckerContext &C) const; 76 ProgramStateRef postScanf(const CallExpr *CE, CheckerContext &C) const; 77 ProgramStateRef postSocket(const CallExpr *CE, CheckerContext &C) const; 78 ProgramStateRef postRetTaint(const CallExpr *CE, CheckerContext &C) const; 81 ProgramStateRef preFscanf(const CallExpr *CE, CheckerContex 276 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument 286 checkPostStmt(const CallExpr *CE, CheckerContext &C) const argument 293 addSourcesPre(const CallExpr *CE, CheckerContext &C) const argument 328 propagateFromPre(const CallExpr *CE, CheckerContext &C) const argument 369 addSourcesPost(const CallExpr *CE, CheckerContext &C) const argument 405 checkPre(const CallExpr *CE, CheckerContext &C) const argument 446 process(const CallExpr *CE, CheckerContext &C) const argument 516 preFscanf(const CallExpr *CE, CheckerContext &C) const argument 535 postSocket(const CallExpr *CE, CheckerContext &C) const argument 551 postScanf(const CallExpr *CE, CheckerContext &C) const argument 569 postRetTaint(const CallExpr *CE, CheckerContext &C) const argument 607 getPrintfFormatArgumentNum(const CallExpr *CE, const CheckerContext &C, unsigned int &ArgNum) argument 658 checkUncontrolledFormatString(const CallExpr *CE, CheckerContext &C) const argument 672 checkSystemCall(const CallExpr *CE, StringRef Name, CheckerContext &C) const argument 703 checkTaintedBufferSize(const CallExpr *CE, const FunctionDecl *FDecl, CheckerContext &C) const argument [all...] |
H A D | UnixAPIChecker.cpp | 37 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const; 39 void CheckOpen(CheckerContext &C, const CallExpr *CE) const; 40 void CheckPthreadOnce(CheckerContext &C, const CallExpr *CE) const; 41 void CheckCallocZero(CheckerContext &C, const CallExpr *CE) const; 42 void CheckMallocZero(CheckerContext &C, const CallExpr *CE) const; 43 void CheckReallocZero(CheckerContext &C, const CallExpr *CE) const; 44 void CheckReallocfZero(CheckerContext &C, const CallExpr *CE) const; 45 void CheckAllocaZero(CheckerContext &C, const CallExpr *CE) const; 46 void CheckVallocZero(CheckerContext &C, const CallExpr *CE) const; 56 const CallExpr *CE, 236 BasicAllocationCheck(CheckerContext &C, const CallExpr *CE, const unsigned numArgs, const unsigned sizeArg, const char *fn) const argument 331 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument [all...] |
H A D | StreamChecker.cpp | 74 bool evalCall(const CallExpr *CE, CheckerContext &C) const; 78 void Fopen(CheckerContext &C, const CallExpr *CE) const; 79 void Tmpfile(CheckerContext &C, const CallExpr *CE) const; 80 void Fclose(CheckerContext &C, const CallExpr *CE) const; 81 void Fread(CheckerContext &C, const CallExpr *CE) const; 82 void Fwrite(CheckerContext &C, const CallExpr *CE) const; 83 void Fseek(CheckerContext &C, const CallExpr *CE) const; 84 void Ftell(CheckerContext &C, const CallExpr *CE) const; 85 void Rewind(CheckerContext &C, const CallExpr *CE) const; 86 void Fgetpos(CheckerContext &C, const CallExpr *CE) cons 106 evalCall(const CallExpr *CE, CheckerContext &C) const argument 361 CheckDoubleClose(const CallExpr *CE, ProgramStateRef state, CheckerContext &C) const argument [all...] |
H A D | CStringSyntaxChecker.cpp | 56 if (const CallExpr *CE = dyn_cast<CallExpr>(E)) { 57 const FunctionDecl *FD = CE->getDirectCallee(); 61 sameDecl(CE->getArg(0), WithArg)); 81 bool containsBadStrncatPattern(const CallExpr *CE); 93 void VisitCallExpr(CallExpr *CE); 103 bool WalkAST::containsBadStrncatPattern(const CallExpr *CE) { argument 104 if (CE->getNumArgs() != 3) 106 const Expr *DstArg = CE->getArg(0); 107 const Expr *SrcArg = CE->getArg(1); 108 const Expr *LenArg = CE 135 VisitCallExpr(CallExpr *CE) argument [all...] |
H A D | VirtualCallChecker.cpp | 113 void VisitCallExpr(CallExpr *CE); 114 void VisitCXXMemberCallExpr(CallExpr *CE); 118 void ReportVirtualCall(const CallExpr *CE, bool isPure); 133 void WalkAST::VisitCallExpr(CallExpr *CE) { argument 134 VisitChildren(CE); 135 Enqueue(CE); 138 void WalkAST::VisitCXXMemberCallExpr(CallExpr *CE) { argument 139 VisitChildren(CE); 143 if (MemberExpr *CME = dyn_cast<MemberExpr>(CE->getCallee())) { 156 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(CE 163 ReportVirtualCall(const CallExpr *CE, bool isPure) argument [all...] |
H A D | MacOSXAPIChecker.cpp | 37 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const; 39 void CheckDispatchOnce(CheckerContext &C, const CallExpr *CE, 52 void MacOSXAPIChecker::CheckDispatchOnce(CheckerContext &C, const CallExpr *CE, argument 54 if (CE->getNumArgs() < 1) 61 state->getSVal(CE->getArg(0), C.getLocationContext()).getAsRegion(); 77 if (CE->getLocStart().isMacroID()) { 96 report->addRange(CE->getArg(0)->getSourceRange()); 104 void MacOSXAPIChecker::checkPreStmt(const CallExpr *CE, argument 106 StringRef Name = C.getCalleeName(CE); 119 (this->*SC)(C, CE, Nam [all...] |
H A D | ObjCContainersChecker.cpp | 53 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const; 54 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const; 80 void ObjCContainersChecker::checkPostStmt(const CallExpr *CE, argument 82 StringRef Name = C.getCalleeName(CE); 83 if (Name.empty() || CE->getNumArgs() < 1) 88 if (CE->getNumArgs() < 3) 93 addSizeInfo(CE, CE->getArg(2), C); 98 addSizeInfo(CE->getArg(0), CE, 103 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument [all...] |
H A D | ChrootChecker.cpp | 54 bool evalCall(const CallExpr *CE, CheckerContext &C) const; 55 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const; 58 void Chroot(CheckerContext &C, const CallExpr *CE) const; 59 void Chdir(CheckerContext &C, const CallExpr *CE) const; 64 bool ChrootChecker::evalCall(const CallExpr *CE, CheckerContext &C) const { argument 65 const FunctionDecl *FD = C.getCalleeDecl(CE); 76 Chroot(C, CE); 80 Chdir(C, CE); 87 void ChrootChecker::Chroot(CheckerContext &C, const CallExpr *CE) const { 97 void ChrootChecker::Chdir(CheckerContext &C, const CallExpr *CE) cons 124 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument [all...] |
H A D | CastToStructChecker.cpp | 30 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const; 34 void CastToStructChecker::checkPreStmt(const CastExpr *CE, argument 36 const Expr *E = CE->getSubExpr(); 39 QualType ToTy = Ctx.getCanonicalType(CE->getType()); 66 R->addRange(CE->getSourceRange());
|
H A D | CStringChecker.cpp | 60 bool evalCall(const CallExpr *CE, CheckerContext &C) const; 76 void evalMemcpy(CheckerContext &C, const CallExpr *CE) const; 77 void evalMempcpy(CheckerContext &C, const CallExpr *CE) const; 78 void evalMemmove(CheckerContext &C, const CallExpr *CE) const; 79 void evalBcopy(CheckerContext &C, const CallExpr *CE) const; 80 void evalCopyCommon(CheckerContext &C, const CallExpr *CE, 88 void evalMemcmp(CheckerContext &C, const CallExpr *CE) const; 90 void evalstrLength(CheckerContext &C, const CallExpr *CE) const; 91 void evalstrnLength(CheckerContext &C, const CallExpr *CE) const; 93 const CallExpr *CE, 898 evalCopyCommon(CheckerContext &C, const CallExpr *CE, ProgramStateRef state, const Expr *Size, const Expr *Dest, const Expr *Source, bool Restricted, bool IsMempcpy) const argument 1142 evalstrLengthCommon(CheckerContext &C, const CallExpr *CE, bool IsStrnlen) const argument 1314 evalStrcpyCommon(CheckerContext &C, const CallExpr *CE, bool returnEnd, bool isBounded, bool isAppending) const argument 1674 evalStrcmpCommon(CheckerContext &C, const CallExpr *CE, bool isBounded, bool ignoreCase) const argument 1859 evalCall(const CallExpr *CE, CheckerContext &C) const argument [all...] |
H A D | ObjCContainersASTChecker.cpp | 81 void VisitCallExpr(CallExpr *CE); 85 static StringRef getCalleeName(CallExpr *CE) { argument 86 const FunctionDecl *FD = CE->getDirectCallee(); 97 void WalkAST::VisitCallExpr(CallExpr *CE) { argument 98 StringRef Name = getCalleeName(CE); 106 if (CE->getNumArgs() != 4) 109 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); 113 if (CE->getNumArgs() != 6) 117 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); 121 Arg = CE [all...] |
H A D | NoReturnFunctionChecker.cpp | 32 void checkPostCall(const CallEvent &CE, CheckerContext &C) const; 38 void NoReturnFunctionChecker::checkPostCall(const CallEvent &CE, argument 43 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CE.getDecl())) 46 const Expr *Callee = CE.getOriginExpr(); 50 if (!BuildSinks && CE.isGlobalCFunction()) { 51 if (const IdentifierInfo *II = CE.getCalleeIdentifier()) {
|
H A D | CheckSecuritySyntaxOnly.cpp | 68 void VisitCallExpr(CallExpr *CE); 76 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD); 83 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD); 84 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD); 85 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD); 86 void checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD); 87 void checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD); 88 void checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD); 89 void checkCall_rand(const CallExpr *CE, const FunctionDecl *FD); 90 void checkCall_random(const CallExpr *CE, cons 106 VisitCallExpr(CallExpr *CE) argument 296 checkCall_gets(const CallExpr *CE, const FunctionDecl *FD) argument 332 checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD) argument 372 checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) argument 414 checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD) argument 497 checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD) argument 524 checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD) argument 548 checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) argument 579 checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) argument 622 checkCall_random(const CallExpr *CE, const FunctionDecl *FD) argument 650 checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD) argument 673 checkUncheckedReturnValue(CallExpr *CE) argument [all...] |
H A D | CastSizeChecker.cpp | 28 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const; 32 void CastSizeChecker::checkPreStmt(const CastExpr *CE,CheckerContext &C) const { argument 33 const Expr *E = CE->getSubExpr(); 35 QualType ToTy = Ctx.getCanonicalType(CE->getType()); 77 R->addRange(CE->getSourceRange());
|
H A D | AnalyzerStatsChecker.cpp | 120 const CoreEngine &CE = Eng.getCoreEngine(); local 121 for (ExhaustedIterator I = CE.blocks_exhausted_begin(), 122 E = CE.blocks_exhausted_end(); I != E; ++I) { 125 const CFGElement &CE = Exit->front(); local 126 if (Optional<CFGStmt> CS = CE.getAs<CFGStmt>()) {
|
/freebsd-9.3-release/contrib/llvm/lib/Target/XCore/ |
H A D | XCoreLowerThreadLocal.cpp | 78 createReplacementInstr(ConstantExpr *CE, Instruction *Instr) { argument 80 unsigned OpCode = CE->getOpcode(); 83 SmallVector<Value *,4> CEOpVec(CE->op_begin(), CE->op_end()); 105 CE->getOperand(0), CE->getOperand(1), 106 CE->getName())); 121 CE->getOperand(0), CE->getType(), 122 CE 128 replaceConstantExprOp(ConstantExpr *CE, Pass *P) argument 170 ConstantExpr *CE = dyn_cast<ConstantExpr>(WU); local [all...] |
/freebsd-9.3-release/contrib/llvm/lib/IR/ |
H A D | IntrinsicInst.cpp | 35 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) 36 if (CE->isCast()) 37 return CE->getOperand(0);
|
/freebsd-9.3-release/contrib/llvm/lib/Target/Mips/MCTargetDesc/ |
H A D | MipsBaseInfo.h | 138 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(BE->getRHS()); local 140 if ((LHS->getKind() != MCExpr::SymbolRef) || !CE) 143 return std::make_pair(cast<MCSymbolRefExpr>(LHS), CE->getValue());
|
/freebsd-9.3-release/contrib/llvm/lib/Target/XCore/InstPrinter/ |
H A D | XCoreInstPrinter.cpp | 53 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(BE->getRHS()); local 54 assert(SRE && CE && "Binary expression must be sym+const."); 55 Offset = CE->getValue();
|
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/AST/ |
H A D | EvaluatedExprVisitor.h | 70 void VisitCallExpr(CallExpr *CE) { argument 71 if (!CE->isUnevaluatedBuiltinCall(Context)) 72 return static_cast<ImplClass*>(this)->VisitExpr(CE);
|
/freebsd-9.3-release/crypto/openssl/util/pl/ |
H A D | VC-32.pl | 58 elsif ($FLAVOR =~ /CE/) 125 $out_def="out32"; $out_def.='_$(TARGETCPU)' if ($FLAVOR =~ /CE/); 126 $tmp_def="tmp32"; $tmp_def.='_$(TARGETCPU)' if ($FLAVOR =~ /CE/); 149 elsif ($FLAVOR =~ /CE/) { $ex_libs='winsock.lib'; } 164 if ($FLAVOR =~ /CE/) 192 $app_ex_obj="setargv.obj" if ($FLAVOR !~ /CE/); 261 if ($shlib && $FLAVOR !~ /CE/) 293 elsif ($shlib && $FLAVOR =~ /CE/) 364 elsif ($FLAVOR =~ /CE/)
|
/freebsd-9.3-release/contrib/llvm/lib/Target/AArch64/AsmParser/ |
H A D | AArch64AsmParser.cpp | 299 const MCConstantExpr *CE = cast<MCConstantExpr>(ImmWithLSL.Val); local 300 return CE->getValue() >= 0 && CE->getValue() <= 0xfff; 314 const MCConstantExpr *CE = cast<MCConstantExpr>(ImmWithLSL.Val); local 315 return CE->getValue() >= 0 && CE->getValue() <= 0xfff; 348 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); local 349 if (!CE) return false; 351 return CE->getValue() >= 1 && CE 358 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); local 420 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val); local 430 const MCConstantExpr *CE = cast<MCConstantExpr>(Imm.Val); local 443 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); local 595 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ImmWithLSL.Val); local 603 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); local 656 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); local 686 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); local 705 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); local 763 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); local 778 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); local 789 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); local 805 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); local 823 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); local 921 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm()); local 928 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm()); local 936 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm()); local 949 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm()); local 988 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm()); local 997 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm()); local 1012 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val); local 1040 const MCConstantExpr *CE = cast<MCConstantExpr>(Imm.Val); local 1130 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm()); local 1148 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm()); local 1240 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); local 1803 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ImmVal); local [all...] |