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

1234567

/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 Expr *Callee = CE->getCallee();
50 assert (CE->arg_begin() != CE->arg_end());
51 SVal X = state->getSVal(*(CE->arg_begin()));
52 C.generateNode(state->BindExpr(CE, X));
60 RM.getAllocaRegion(CE, C.getCurrentBlockCount(),
67 cast<DefinedOrUnknownSVal>(state->getSVal(*(CE->arg_begin())));
75 C.generateNode(state->BindExpr(CE, lo
[all...]
H A DPthreadLockChecker.cpp36 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;
57 void PthreadLockChecker::checkPostStmt(const CallExpr *CE, argument
60 const Expr *Callee = CE->getCallee();
72 if (CE->getNumArgs() != 1)
78 AcquireLock(C, CE, state->getSVal(CE->getArg(0)), false, PthreadSemantics);
82 AcquireLock(C, CE, state->getSVal(CE
98 AcquireLock(CheckerContext &C, const CallExpr *CE, SVal lock, bool isTryLock, enum LockingSemantics semantics) const argument
162 ReleaseLock(CheckerContext &C, const CallExpr *CE, SVal lock) const argument
[all...]
H A DAdjustedReturnValueChecker.cpp29 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
33 void AdjustedReturnValueChecker::checkPostStmt(const CallExpr *CE, argument
37 QualType expectedResultTy = CE->getType();
42 SVal V = state->getSVal(CE);
49 C.generateNode(state->BindExpr(CE, UnknownVal()));
53 const MemRegion *callee = state->getSVal(CE->getCallee()).getAsRegion();
85 C.generateNode(state->BindExpr(CE, V));
H A DStreamChecker.cpp76 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
82 void Fopen(CheckerContext &C, const CallExpr *CE) const;
83 void Tmpfile(CheckerContext &C, const CallExpr *CE) const;
84 void Fclose(CheckerContext &C, const CallExpr *CE) const;
85 void Fread(CheckerContext &C, const CallExpr *CE) const;
86 void Fwrite(CheckerContext &C, const CallExpr *CE) const;
87 void Fseek(CheckerContext &C, const CallExpr *CE) const;
88 void Ftell(CheckerContext &C, const CallExpr *CE) const;
89 void Rewind(CheckerContext &C, const CallExpr *CE) const;
90 void Fgetpos(CheckerContext &C, const CallExpr *CE) cons
117 evalCall(const CallExpr *CE, CheckerContext &C) const argument
364 CheckDoubleClose(const CallExpr *CE, const ProgramState *state, CheckerContext &C) const argument
[all...]
H A DUnixAPIChecker.cpp35 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
37 void CheckOpen(CheckerContext &C, const CallExpr *CE) const;
38 void CheckPthreadOnce(CheckerContext &C, const CallExpr *CE) const;
39 void CheckMallocZero(CheckerContext &C, const CallExpr *CE) const;
61 void UnixAPIChecker::CheckOpen(CheckerContext &C, const CallExpr *CE) const {
79 if (CE->getNumArgs() < 2) {
86 const Expr *oflagsEx = CE->getArg(1);
113 if (CE->getNumArgs() < 3) {
134 const CallExpr *CE) const {
139 if (CE
226 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DMallocChecker.cpp79 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
91 static void MallocMem(CheckerContext &C, const CallExpr *CE);
92 static void MallocMemReturnsAttr(CheckerContext &C, const CallExpr *CE,
94 static const ProgramState *MallocMemAux(CheckerContext &C, const CallExpr *CE, argument
97 return MallocMemAux(C, CE, state->getSVal(SizeEx), Init, state);
99 static const ProgramState *MallocMemAux(CheckerContext &C, const CallExpr *CE,
103 void FreeMem(CheckerContext &C, const CallExpr *CE) const;
104 void FreeMemAttr(CheckerContext &C, const CallExpr *CE,
106 const ProgramState *FreeMemAux(CheckerContext &C, const CallExpr *CE,
109 void ReallocMem(CheckerContext &C, const CallExpr *CE) cons
130 evalCall(const CallExpr *CE, CheckerContext &C) const argument
197 MallocMem(CheckerContext &C, const CallExpr *CE) argument
203 MallocMemReturnsAttr(CheckerContext &C, const CallExpr *CE, const OwnershipAttr* Att) argument
220 MallocMemAux(CheckerContext &C, const CallExpr *CE, SVal Size, SVal Init, const ProgramState *state) argument
258 FreeMemAttr(CheckerContext &C, const CallExpr *CE, const OwnershipAttr* Att) const argument
272 FreeMemAux(CheckerContext &C, const CallExpr *CE, const ProgramState *state, unsigned Num, bool Hold) const argument
557 CallocMem(CheckerContext &C, const CallExpr *CE) argument
[all...]
H A DCheckSecuritySyntaxOnly.cpp51 void VisitCallExpr(CallExpr *CE);
59 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD);
66 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD);
67 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD);
68 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD);
69 void checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD);
70 void checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD);
71 void checkCall_rand(const CallExpr *CE, const FunctionDecl *FD);
72 void checkCall_random(const CallExpr *CE, const FunctionDecl *FD);
73 void checkCall_vfork(const CallExpr *CE, cons
88 VisitCallExpr(CallExpr *CE) argument
270 checkCall_gets(const CallExpr *CE, const FunctionDecl *FD) argument
304 checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD) argument
342 checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) argument
378 checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD) argument
402 checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD) argument
423 checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) argument
455 checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) argument
499 checkCall_random(const CallExpr *CE, const FunctionDecl *FD) argument
528 checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD) argument
548 checkUncheckedReturnValue(CallExpr *CE) 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
66 const Expr *Callee = CE->getCallee();
79 Chroot(C, CE);
83 Chdir(C, CE);
90 void ChrootChecker::Chroot(CheckerContext &C, const CallExpr *CE) const {
100 void ChrootChecker::Chdir(CheckerContext &C, const CallExpr *CE) cons
127 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DCastSizeChecker.cpp28 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 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());
66 R->addRange(CE->getSourceRange());
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)
60 const MemRegion *R = state->getSVal(CE->getArg(0)).getAsRegion();
85 report->addRange(CE->getArg(0)->getSourceRange());
93 void MacOSXAPIChecker::checkPreStmt(const CallExpr *CE, argument
98 const Expr *Callee = CE->getCallee();
115 (this->*SC)(C, CE, FI);
H A DOSAtomicChecker.cpp27 bool inlineCall(const CallExpr *CE, ExprEngine &Eng,
31 bool evalOSAtomicCompareAndSwap(const CallExpr *CE,
42 bool OSAtomicChecker::inlineCall(const CallExpr *CE, argument
47 const Expr *Callee = CE->getCallee();
63 return evalOSAtomicCompareAndSwap(CE, Eng, Pred, Dst);
80 bool OSAtomicChecker::evalOSAtomicCompareAndSwap(const CallExpr *CE, argument
85 if (CE->getNumArgs() != 3)
90 const Expr *oldValueExpr = CE->getArg(0);
93 const Expr *newValueExpr = CE->getArg(1);
100 const Expr *theValueExpr = CE
[all...]
H A DCStringChecker.cpp41 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
56 void evalMemcpy(CheckerContext &C, const CallExpr *CE) const;
57 void evalMempcpy(CheckerContext &C, const CallExpr *CE) const;
58 void evalMemmove(CheckerContext &C, const CallExpr *CE) const;
59 void evalBcopy(CheckerContext &C, const CallExpr *CE) const;
60 void evalCopyCommon(CheckerContext &C, const CallExpr *CE,
68 void evalMemcmp(CheckerContext &C, const CallExpr *CE) const;
70 void evalstrLength(CheckerContext &C, const CallExpr *CE) const;
71 void evalstrnLength(CheckerContext &C, const CallExpr *CE) const;
73 const CallExpr *CE,
839 evalCopyCommon(CheckerContext &C, const CallExpr *CE, const ProgramState *state, const Expr *Size, const Expr *Dest, const Expr *Source, bool Restricted, bool IsMempcpy) const argument
1052 evalstrLengthCommon(CheckerContext &C, const CallExpr *CE, bool IsStrnlen) const argument
1216 evalStrcpyCommon(CheckerContext &C, const CallExpr *CE, bool returnEnd, bool isBounded, bool isAppending) const argument
1540 evalStrcmpCommon(CheckerContext &C, const CallExpr *CE, bool isBounded, bool ignoreCase) const argument
1666 evalCall(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DAnalyzerStatsChecker.cpp101 const CoreEngine &CE = Eng.getCoreEngine(); local
102 for (ExhaustedIterator I = CE.blocks_exhausted_begin(),
103 E = CE.blocks_exhausted_end(); I != E; ++I) {
106 const CFGElement &CE = Exit->front(); local
107 if (const CFGStmt *CS = dyn_cast<CFGStmt>(&CE))
H A DAttrNonNullChecker.cpp30 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
34 void AttrNonNullChecker::checkPreStmt(const CallExpr *CE, argument
39 SVal X = state->getSVal(CE->getCallee());
49 // Iterate through the arguments of CE and check them for null.
52 for (CallExpr::const_arg_iterator I=CE->arg_begin(), E=CE->arg_end(); I!=E;
H A DNoReturnFunctionChecker.cpp31 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
37 void NoReturnFunctionChecker::checkPostStmt(const CallExpr *CE, argument
40 const Expr *Callee = CE->getCallee();
/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
20 const Expr *Callee = CE->getCallee();
/external/llvm/lib/VMCore/
H A DIntrinsicInst.cpp35 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C))
36 if (CE->isCast())
37 return CE->getOperand(0);
/external/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCallAndReturn.cpp43 const Stmt *CE = calleeCtx->getCallSite(); local
49 state = state->BindExpr(CE, RetVal);
55 if (const CXXConstructExpr *CCE = dyn_cast<CXXConstructExpr>(CE)) {
161 void ExprEngine::VisitCallExpr(const CallExpr *CE, ExplodedNode *Pred, argument
165 getCheckerManager().runCheckersForPreStmt(dstPreVisit, Pred, CE, *this);
170 const CallExpr *CE; member in class:DefaultEval
174 : Eng(eng), CE(ce) {}
178 Eng.InlineCall(Dst, CE, Pred)) {
187 const Expr *Callee = CE->getCallee()->IgnoreParens();
196 ResultTy = CE
[all...]
/external/clang/lib/Index/
H A DASTLocation.cpp31 if (CallExpr *CE = dyn_cast<CallExpr>(E))
32 return getDeclFromExpr(CE->getCallee());
33 if (CastExpr *CE = dyn_cast<CastExpr>(E))
34 return getDeclFromExpr(CE->getSubExpr());
H A DCallGraph.cpp40 void VisitCallExpr(CallExpr *CE);
50 void CGBuilder::VisitCallExpr(CallExpr *CE) { argument
51 if (FunctionDecl *CalleeDecl = CE->getDirectCallee()) {
54 CallerNode->addCallee(ASTLocation(FD, CE), CalleeNode);
119 CE = I->second->end(); CI != CE; ++CI) {
/external/llvm/include/llvm/
H A DOperator.h54 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(V))
55 return CE->getOpcode();
112 static inline bool classof(const ConstantExpr *CE) { argument
113 return CE->getOpcode() == Instruction::Add ||
114 CE->getOpcode() == Instruction::Sub ||
115 CE->getOpcode() == Instruction::Mul ||
116 CE->getOpcode() == Instruction::Shl;
153 static inline bool classof(const ConstantExpr *CE) { argument
154 return isPossiblyExactOpcode(CE->getOpcode());
179 static inline bool classof(const ConstantExpr *CE) { argument
[all...]
/external/llvm/lib/Transforms/IPO/
H A DInlineSimple.cpp109 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(Elt))
110 if (CE->getOpcode() == Instruction::BitCast)
111 Elt = CE->getOperand(0);
/external/icu4c/i18n/
H A Ducol_bld.h51 U_CFUNC uint32_t U_EXPORT2 ucol_getCEStrengthDifference(uint32_t CE, uint32_t contCE,
H A Ducol_cnt.h35 #define isCntTableElement(CE) (isSpecial((CE)) && \
36 ((getCETag((CE)) == CONTRACTION_TAG)||(getCETag((CE)) == SPEC_PROC_TAG)))

Completed in 321 milliseconds

1234567