Searched refs:CE (Results 1 - 25 of 254) sorted by relevance

1234567891011

/external/clang/lib/StaticAnalyzer/Checkers/
H A DBuiltinFunctionChecker.cpp27 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 DExprInspectionChecker.cpp23 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 DPthreadLockChecker.cpp64 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
66 void AcquireLock(CheckerContext &C, const CallExpr *CE, SVal lock,
69 void ReleaseLock(CheckerContext &C, const CallExpr *CE, SVal lock) const;
70 void DestroyLock(CheckerContext &C, const CallExpr *CE, SVal Lock) const;
71 void InitLock(CheckerContext &C, const CallExpr *CE, SVal Lock) const;
72 void reportUseDestroyedBug(CheckerContext &C, const CallExpr *CE) const;
81 void PthreadLockChecker::checkPostStmt(const CallExpr *CE, argument
85 StringRef FName = C.getCalleeName(CE);
89 if (CE->getNumArgs() != 1 && CE
124 AcquireLock(CheckerContext &C, const CallExpr *CE, SVal lock, bool isTryLock, enum LockingSemantics semantics) const argument
194 ReleaseLock(CheckerContext &C, const CallExpr *CE, SVal lock) const argument
252 DestroyLock(CheckerContext &C, const CallExpr *CE, SVal Lock) const argument
287 InitLock(CheckerContext &C, const CallExpr *CE, SVal Lock) const argument
[all...]
H A DGenericTaintChecker.cpp36 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
38 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
53 bool checkPre(const CallExpr *CE, CheckerContext &C) const;
56 void addSourcesPre(const CallExpr *CE, CheckerContext &C) const;
59 bool propagateFromPre(const CallExpr *CE, CheckerContext &C) const;
62 void addSourcesPost(const CallExpr *CE, CheckerContext &C) const;
75 ProgramStateRef postScanf(const CallExpr *CE, CheckerContext &C) const;
76 ProgramStateRef postSocket(const CallExpr *CE, CheckerContext &C) const;
77 ProgramStateRef postRetTaint(const CallExpr *CE, CheckerContext &C) const;
80 ProgramStateRef preFscanf(const CallExpr *CE, CheckerContex
275 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument
285 checkPostStmt(const CallExpr *CE, CheckerContext &C) const argument
292 addSourcesPre(const CallExpr *CE, CheckerContext &C) const argument
327 propagateFromPre(const CallExpr *CE, CheckerContext &C) const argument
368 addSourcesPost(const CallExpr *CE, CheckerContext &C) const argument
404 checkPre(const CallExpr *CE, CheckerContext &C) const argument
445 process(const CallExpr *CE, CheckerContext &C) const argument
515 preFscanf(const CallExpr *CE, CheckerContext &C) const argument
534 postSocket(const CallExpr *CE, CheckerContext &C) const argument
550 postScanf(const CallExpr *CE, CheckerContext &C) const argument
568 postRetTaint(const CallExpr *CE, CheckerContext &C) const argument
606 getPrintfFormatArgumentNum(const CallExpr *CE, const CheckerContext &C, unsigned int &ArgNum) argument
653 checkUncontrolledFormatString(const CallExpr *CE, CheckerContext &C) const argument
667 checkSystemCall(const CallExpr *CE, StringRef Name, CheckerContext &C) const argument
698 checkTaintedBufferSize(const CallExpr *CE, const FunctionDecl *FDecl, CheckerContext &C) const argument
[all...]
H A DUnixAPIChecker.cpp37 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,
231 BasicAllocationCheck(CheckerContext &C, const CallExpr *CE, const unsigned numArgs, const unsigned sizeArg, const char *fn) const argument
326 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DStreamChecker.cpp76 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
80 void Fopen(CheckerContext &C, const CallExpr *CE) const;
81 void Tmpfile(CheckerContext &C, const CallExpr *CE) const;
82 void Fclose(CheckerContext &C, const CallExpr *CE) const;
83 void Fread(CheckerContext &C, const CallExpr *CE) const;
84 void Fwrite(CheckerContext &C, const CallExpr *CE) const;
85 void Fseek(CheckerContext &C, const CallExpr *CE) const;
86 void Ftell(CheckerContext &C, const CallExpr *CE) const;
87 void Rewind(CheckerContext &C, const CallExpr *CE) const;
88 void Fgetpos(CheckerContext &C, const CallExpr *CE) cons
108 evalCall(const CallExpr *CE, CheckerContext &C) const argument
365 CheckDoubleClose(const CallExpr *CE, ProgramStateRef state, CheckerContext &C) const argument
[all...]
H A DCStringSyntaxChecker.cpp57 if (const CallExpr *CE = dyn_cast<CallExpr>(E)) {
58 const FunctionDecl *FD = CE->getDirectCallee();
62 sameDecl(CE->getArg(0), WithArg));
82 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 DVirtualCallChecker.cpp113 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 DMacOSXAPIChecker.cpp37 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 DObjCContainersChecker.cpp53 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 DChrootChecker.cpp54 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 DCastToStructChecker.cpp30 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());
67 R->addRange(CE->getSourceRange());
H A DObjCContainersASTChecker.cpp82 void VisitCallExpr(CallExpr *CE);
86 static StringRef getCalleeName(CallExpr *CE) { argument
87 const FunctionDecl *FD = CE->getDirectCallee();
98 void WalkAST::VisitCallExpr(CallExpr *CE) { argument
99 StringRef Name = getCalleeName(CE);
107 if (CE->getNumArgs() != 4)
110 Arg = CE->getArg(ArgNum)->IgnoreParenCasts();
114 if (CE->getNumArgs() != 6)
118 Arg = CE->getArg(ArgNum)->IgnoreParenCasts();
122 Arg = CE
[all...]
H A DNoReturnFunctionChecker.cpp35 void checkPostCall(const CallEvent &CE, CheckerContext &C) const;
41 void NoReturnFunctionChecker::checkPostCall(const CallEvent &CE, argument
45 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CE.getDecl()))
48 const Expr *Callee = CE.getOriginExpr();
52 if (!BuildSinks && CE.isGlobalCFunction()) {
53 if (const IdentifierInfo *II = CE.getCalleeIdentifier()) {
H A DCheckSecuritySyntaxOnly.cpp78 void VisitCallExpr(CallExpr *CE);
86 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD);
93 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD);
94 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD);
95 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD);
96 void checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD);
97 void checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD);
98 void checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD);
99 void checkCall_rand(const CallExpr *CE, const FunctionDecl *FD);
100 void checkCall_random(const CallExpr *CE, cons
116 VisitCallExpr(CallExpr *CE) argument
306 checkCall_gets(const CallExpr *CE, const FunctionDecl *FD) argument
342 checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD) argument
382 checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) argument
424 checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD) argument
507 checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD) argument
534 checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD) argument
558 checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) argument
589 checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) argument
632 checkCall_random(const CallExpr *CE, const FunctionDecl *FD) argument
660 checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD) argument
683 checkUncheckedReturnValue(CallExpr *CE) argument
[all...]
H A DCStringChecker.cpp62 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
78 void evalMemcpy(CheckerContext &C, const CallExpr *CE) const;
79 void evalMempcpy(CheckerContext &C, const CallExpr *CE) const;
80 void evalMemmove(CheckerContext &C, const CallExpr *CE) const;
81 void evalBcopy(CheckerContext &C, const CallExpr *CE) const;
82 void evalCopyCommon(CheckerContext &C, const CallExpr *CE,
90 void evalMemcmp(CheckerContext &C, const CallExpr *CE) const;
92 void evalstrLength(CheckerContext &C, const CallExpr *CE) const;
93 void evalstrnLength(CheckerContext &C, const CallExpr *CE) const;
95 const CallExpr *CE,
906 evalCopyCommon(CheckerContext &C, const CallExpr *CE, ProgramStateRef state, const Expr *Size, const Expr *Dest, const Expr *Source, bool Restricted, bool IsMempcpy) const argument
1151 evalstrLengthCommon(CheckerContext &C, const CallExpr *CE, bool IsStrnlen) const argument
1325 evalStrcpyCommon(CheckerContext &C, const CallExpr *CE, bool returnEnd, bool isBounded, bool isAppending) const argument
1685 evalStrcmpCommon(CheckerContext &C, const CallExpr *CE, bool isBounded, bool ignoreCase) const argument
1871 evalCall(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DAnalyzerStatsChecker.cpp120 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>()) {
H A DCastSizeChecker.cpp29 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const;
91 void CastSizeChecker::checkPreStmt(const CastExpr *CE,CheckerContext &C) const { argument
92 const Expr *E = CE->getSubExpr();
94 QualType ToTy = Ctx.getCanonicalType(CE->getType());
140 R->addRange(CE->getSourceRange());
/external/llvm/lib/Target/X86/MCTargetDesc/
H A DX86WinCOFFStreamer.cpp18 X86WinCOFFStreamer(MCContext &C, MCAsmBackend &AB, MCCodeEmitter *CE, argument
20 : MCWinCOFFStreamer(C, AB, *CE, OS) { }
44 MCCodeEmitter *CE, raw_ostream &OS,
46 X86WinCOFFStreamer *S = new X86WinCOFFStreamer(C, AB, CE, OS);
43 createX86WinCOFFStreamer(MCContext &C, MCAsmBackend &AB, MCCodeEmitter *CE, raw_ostream &OS, bool RelaxAll) argument
/external/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp78 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
167 ConstantExpr *CE = dyn_cast<ConstantExpr>(WU); local
[all...]
/external/clang/examples/analyzer-plugin/
H A DMainCallChecker.cpp14 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
18 void MainCallChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const { argument
21 const Expr *Callee = CE->getCallee();
/external/llvm/lib/IR/
H A DIntrinsicInst.cpp35 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C))
36 if (CE->isCast())
37 return CE->getOperand(0);
/external/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMWinCOFFStreamer.cpp18 ARMWinCOFFStreamer(MCContext &C, MCAsmBackend &AB, MCCodeEmitter &CE, argument
20 : MCWinCOFFStreamer(C, AB, CE, OS) { }
/external/clang/include/clang/AST/
H A DEvaluatedExprVisitor.h70 void VisitCallExpr(CallExpr *CE) { argument
71 if (!CE->isUnevaluatedBuiltinCall(Context))
72 return static_cast<ImplClass*>(this)->VisitExpr(CE);
/external/llvm/lib/Target/XCore/InstPrinter/
H A DXCoreInstPrinter.cpp54 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(BE->getRHS()); local
55 assert(SRE && CE && "Binary expression must be sym+const.");
56 Offset = CE->getValue();

Completed in 314 milliseconds

1234567891011