/external/clang/lib/StaticAnalyzer/Checkers/ |
BuiltinFunctionChecker.cpp | 27 bool evalCall(const CallExpr *CE, CheckerContext &C) const; 32 bool BuiltinFunctionChecker::evalCall(const CallExpr *CE, 35 const FunctionDecl *FD = C.getCalleeDecl(CE); 51 assert (CE->arg_begin() != CE->arg_end()); 52 SVal X = state->getSVal(*(CE->arg_begin()), LCtx); 53 C.addTransition(state->BindExpr(CE, LCtx, X)); 61 RM.getAllocaRegion(CE, C.blockCount(), C.getLocationContext()); 67 state->getSVal(*(CE->arg_begin()), LCtx).castAs<DefinedOrUnknownSVal>(); 76 C.addTransition(state->BindExpr(CE, LCtx, loc::MemRegionVal(R))) [all...] |
ExprInspectionChecker.cpp | 23 void analyzerEval(const CallExpr *CE, CheckerContext &C) const; 24 void analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const; 25 void analyzerCrash(const CallExpr *CE, CheckerContext &C) const; 31 bool evalCall(const CallExpr *CE, CheckerContext &C) const; 35 bool ExprInspectionChecker::evalCall(const CallExpr *CE, 39 FnCheck Handler = llvm::StringSwitch<FnCheck>(C.getCalleeName(CE)) 49 (this->*Handler)(CE, C); 53 static const char *getArgumentValueString(const CallExpr *CE, 55 if (CE->getNumArgs() == 0) 62 const Expr *Assertion = CE->getArg(0) [all...] |
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, 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->getArg(0), LCtx) [all...] |
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, CheckerContext &C) const [all...] |
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, [all...] |
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) const [all...] |
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) { 104 if (CE->getNumArgs() != 3) 106 const Expr *DstArg = CE->getArg(0); 107 const Expr *SrcArg = CE->getArg(1); 108 const Expr *LenArg = CE->getArg(2) [all...] |
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) { 134 VisitChildren(CE); 135 Enqueue(CE); 138 void WalkAST::VisitCXXMemberCallExpr(CallExpr *CE) { 139 VisitChildren(CE); 143 if (MemberExpr *CME = dyn_cast<MemberExpr>(CE->getCallee())) { 156 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(CE->getDirectCallee()) [all...] |
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, 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, 106 StringRef Name = C.getCalleeName(CE); 119 (this->*SC)(C, CE, Name) [all...] |
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, 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, C) [all...] |
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 { 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) const [all...] |
CastToStructChecker.cpp | 30 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const; 34 void CastToStructChecker::checkPreStmt(const CastExpr *CE, 36 const Expr *E = CE->getSubExpr(); 39 QualType ToTy = Ctx.getCanonicalType(CE->getType()); 66 R->addRange(CE->getSourceRange());
|
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, [all...] |
ObjCContainersASTChecker.cpp | 81 void VisitCallExpr(CallExpr *CE); 85 static StringRef getCalleeName(CallExpr *CE) { 86 const FunctionDecl *FD = CE->getDirectCallee(); 97 void WalkAST::VisitCallExpr(CallExpr *CE) { 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->getArg(ArgNum)->IgnoreParenCasts() [all...] |
NoReturnFunctionChecker.cpp | 32 void checkPostCall(const CallEvent &CE, CheckerContext &C) const; 38 void NoReturnFunctionChecker::checkPostCall(const CallEvent &CE, 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()) {
|
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, const FunctionDecl *FD) [all...] |
CastSizeChecker.cpp | 28 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const; 32 void CastSizeChecker::checkPreStmt(const CastExpr *CE,CheckerContext &C) const { 33 const Expr *E = CE->getSubExpr(); 35 QualType ToTy = Ctx.getCanonicalType(CE->getType()); 77 R->addRange(CE->getSourceRange());
|
AnalyzerStatsChecker.cpp | 120 const CoreEngine &CE = Eng.getCoreEngine(); 121 for (ExhaustedIterator I = CE.blocks_exhausted_begin(), 122 E = CE.blocks_exhausted_end(); I != E; ++I) { 125 const CFGElement &CE = Exit->front(); 126 if (Optional<CFGStmt> CS = CE.getAs<CFGStmt>()) {
|
/external/clang/examples/analyzer-plugin/ |
MainCallChecker.cpp | 14 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const; 18 void MainCallChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const { 21 const Expr *Callee = CE->getCallee();
|
/external/llvm/lib/IR/ |
IntrinsicInst.cpp | 35 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) 36 if (CE->isCast()) 37 return CE->getOperand(0);
|
/frameworks/compile/slang/ |
slang_rs_check_ast.h | 58 void VisitCallExpr(clang::CallExpr *CE); 60 void VisitCastExpr(clang::CastExpr *CE);
|
/external/clang/include/clang/AST/ |
EvaluatedExprVisitor.h | 70 void VisitCallExpr(CallExpr *CE) { 71 if (!CE->isUnevaluatedBuiltinCall(Context)) 72 return static_cast<ImplClass*>(this)->VisitExpr(CE);
|
/external/llvm/lib/Target/Mips/MCTargetDesc/ |
MipsBaseInfo.h | 138 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(BE->getRHS()); 140 if ((LHS->getKind() != MCExpr::SymbolRef) || !CE) 143 return std::make_pair(cast<MCSymbolRefExpr>(LHS), CE->getValue());
|
/external/llvm/lib/Target/XCore/InstPrinter/ |
XCoreInstPrinter.cpp | 53 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(BE->getRHS()); 54 assert(SRE && CE && "Binary expression must be sym+const."); 55 Offset = CE->getValue();
|
/external/chromium_org/third_party/icu/source/i18n/ |
ucol_bld.h | 51 U_CFUNC uint32_t U_EXPORT2 ucol_getCEStrengthDifference(uint32_t CE, uint32_t contCE,
|