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

12345678

/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);
48 assert (CE->arg_begin() != CE->arg_end());
49 SVal X = state->getSVal(*(CE->arg_begin()), LCtx);
50 C.addTransition(state->BindExpr(CE, LCtx, X));
58 RM.getAllocaRegion(CE, C.blockCount(), C.getLocationContext());
64 cast<DefinedOrUnknownSVal>(state->getSVal(*(CE->arg_begin()), LCtx));
72 C.addTransition(state->BindExpr(CE, LCt
[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
61 StringRef FName = C.getCalleeName(CE);
65 if (CE->getNumArgs() != 1)
71 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx),
76 AcquireLock(C, CE, state->getSVal(CE
95 AcquireLock(CheckerContext &C, const CallExpr *CE, SVal lock, bool isTryLock, enum LockingSemantics semantics) const argument
158 ReleaseLock(CheckerContext &C, const CallExpr *CE, SVal lock) const argument
[all...]
H A DExprInspectionChecker.cpp22 void analyzerEval(const CallExpr *CE, CheckerContext &C) const;
23 void analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const;
29 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
33 bool ExprInspectionChecker::evalCall(const CallExpr *CE, argument
37 FnCheck Handler = llvm::StringSwitch<FnCheck>(C.getCalleeName(CE))
46 (this->*Handler)(CE, C);
50 static const char *getArgumentValueString(const CallExpr *CE, argument
52 if (CE->getNumArgs() == 0)
59 const Expr *Assertion = CE->getArg(0);
82 void ExprInspectionChecker::analyzerEval(const CallExpr *CE, argument
99 analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DGenericTaintChecker.cpp35 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
281 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument
291 checkPostStmt(const CallExpr *CE, CheckerContext &C) const argument
298 addSourcesPre(const CallExpr *CE, CheckerContext &C) const argument
333 propagateFromPre(const CallExpr *CE, CheckerContext &C) const argument
374 addSourcesPost(const CallExpr *CE, CheckerContext &C) const argument
410 checkPre(const CallExpr *CE, CheckerContext &C) const argument
451 process(const CallExpr *CE, CheckerContext &C) const argument
521 preFscanf(const CallExpr *CE, CheckerContext &C) const argument
540 postSocket(const CallExpr *CE, CheckerContext &C) const argument
556 postScanf(const CallExpr *CE, CheckerContext &C) const argument
574 postRetTaint(const CallExpr *CE, CheckerContext &C) const argument
612 getPrintfFormatArgumentNum(const CallExpr *CE, const CheckerContext &C, unsigned int &ArgNum) argument
662 checkUncontrolledFormatString(const CallExpr *CE, CheckerContext &C) const argument
676 checkSystemCall(const CallExpr *CE, StringRef Name, CheckerContext &C) const argument
707 checkTaintedBufferSize(const CallExpr *CE, const FunctionDecl *FDecl, CheckerContext &C) const argument
[all...]
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
373 CheckDoubleClose(const CallExpr *CE, ProgramStateRef state, 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 CheckAllocaZero(CheckerContext &C, const CallExpr *CE) const;
45 void CheckVallocZero(CheckerContext &C, const CallExpr *CE) const;
55 const CallExpr *CE,
77 void UnixAPIChecker::CheckOpen(CheckerContext &C, const CallExpr *CE) cons
235 BasicAllocationCheck(CheckerContext &C, const CallExpr *CE, const unsigned numArgs, const unsigned sizeArg, const char *fn) const argument
325 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DVirtualCallChecker.cpp112 void VisitCallExpr(CallExpr *CE);
113 void VisitCXXMemberCallExpr(CallExpr *CE);
117 void ReportVirtualCall(const CallExpr *CE, bool isPure);
132 void WalkAST::VisitCallExpr(CallExpr *CE) { argument
133 VisitChildren(CE);
134 Enqueue(CE);
137 void WalkAST::VisitCXXMemberCallExpr(CallExpr *CE) { argument
138 VisitChildren(CE);
142 if (MemberExpr *CME = dyn_cast<MemberExpr>(CE->getCallee())) {
155 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(CE
162 ReportVirtualCall(const CallExpr *CE, bool isPure) 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);
94 void VisitCallExpr(CallExpr *CE);
104 bool WalkAST::containsBadStrncatPattern(const CallExpr *CE) { argument
105 const Expr *DstArg = CE->getArg(0);
106 const Expr *SrcArg = CE->getArg(1);
107 const Expr *LenArg = CE->getArg(2);
134 void WalkAST::VisitCallExpr(CallExpr *CE) { argument
[all...]
H A DObjCContainersChecker.cpp53 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
54 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
87 void ObjCContainersChecker::checkPostStmt(const CallExpr *CE, argument
89 StringRef Name = C.getCalleeName(CE);
90 if (Name.empty() || CE->getNumArgs() < 1)
95 if (CE->getNumArgs() < 3)
100 addSizeInfo(CE, CE->getArg(2), C);
105 addSizeInfo(CE->getArg(0), CE,
110 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DOSAtomicChecker.cpp27 bool inlineCall(const CallExpr *CE, ExprEngine &Eng,
31 bool evalOSAtomicCompareAndSwap(const CallExpr *CE,
39 const CallExpr *CE,
41 const Expr *Callee = CE->getCallee();
52 bool OSAtomicChecker::inlineCall(const CallExpr *CE, argument
57 CE, Pred->getLocationContext());
64 return evalOSAtomicCompareAndSwap(CE, Eng, Pred, Dst);
70 bool OSAtomicChecker::evalOSAtomicCompareAndSwap(const CallExpr *CE, argument
75 if (CE->getNumArgs() != 3)
79 const Expr *oldValueExpr = CE
38 getCalleeName(ProgramStateRef State, const CallExpr *CE, const LocationContext *LCtx) 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());
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)
61 state->getSVal(CE->getArg(0), C.getLocationContext()).getAsRegion();
86 report->addRange(CE->getArg(0)->getSourceRange());
94 void MacOSXAPIChecker::checkPreStmt(const CallExpr *CE, argument
96 StringRef Name = C.getCalleeName(CE);
107 (this->*SC)(C, CE, Name);
H A DCStringChecker.cpp58 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
74 void evalMemcpy(CheckerContext &C, const CallExpr *CE) const;
75 void evalMempcpy(CheckerContext &C, const CallExpr *CE) const;
76 void evalMemmove(CheckerContext &C, const CallExpr *CE) const;
77 void evalBcopy(CheckerContext &C, const CallExpr *CE) const;
78 void evalCopyCommon(CheckerContext &C, const CallExpr *CE,
86 void evalMemcmp(CheckerContext &C, const CallExpr *CE) const;
88 void evalstrLength(CheckerContext &C, const CallExpr *CE) const;
89 void evalstrnLength(CheckerContext &C, const CallExpr *CE) const;
91 const CallExpr *CE,
880 evalCopyCommon(CheckerContext &C, const CallExpr *CE, ProgramStateRef state, const Expr *Size, const Expr *Dest, const Expr *Source, bool Restricted, bool IsMempcpy) const argument
1120 evalstrLengthCommon(CheckerContext &C, const CallExpr *CE, bool IsStrnlen) const argument
1298 evalStrcpyCommon(CheckerContext &C, const CallExpr *CE, bool returnEnd, bool isBounded, bool isAppending) const argument
1652 evalStrcmpCommon(CheckerContext &C, const CallExpr *CE, bool isBounded, bool ignoreCase) const argument
1779 evalCall(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DCheckSecuritySyntaxOnly.cpp75 void VisitCallExpr(CallExpr *CE);
83 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD);
90 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD);
91 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD);
92 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD);
93 void checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD);
94 void checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD);
95 void checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD);
96 void checkCall_rand(const CallExpr *CE, const FunctionDecl *FD);
97 void checkCall_random(const CallExpr *CE, cons
113 VisitCallExpr(CallExpr *CE) argument
302 checkCall_gets(const CallExpr *CE, const FunctionDecl *FD) argument
340 checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD) argument
382 checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) argument
426 checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD) argument
510 checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD) argument
538 checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD) argument
563 checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) argument
595 checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) argument
640 checkCall_random(const CallExpr *CE, const FunctionDecl *FD) argument
670 checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD) argument
694 checkUncheckedReturnValue(CallExpr *CE) argument
[all...]
H A DObjCContainersASTChecker.cpp83 void VisitCallExpr(CallExpr *CE);
87 static StringRef getCalleeName(CallExpr *CE) { argument
88 const FunctionDecl *FD = CE->getDirectCallee();
99 void WalkAST::VisitCallExpr(CallExpr *CE) { argument
100 StringRef Name = getCalleeName(CE);
109 Arg = CE->getArg(ArgNum)->IgnoreParenCasts();
117 Arg = CE->getArg(ArgNum)->IgnoreParenCasts();
121 Arg = CE->getArg(ArgNum)->IgnoreParenCasts();
146 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC);
153 VisitChildren(CE);
[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 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 (const CFGStmt *CS = dyn_cast<CFGStmt>(&CE)) {
H A DMallocChecker.cpp129 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
164 const CallExpr *CE,
166 static ProgramStateRef MallocMemAux(CheckerContext &C, const CallExpr *CE, argument
169 return MallocMemAux(C, CE,
174 static ProgramStateRef MallocMemAux(CheckerContext &C, const CallExpr *CE,
180 const CallExpr *CE,
183 ProgramStateRef FreeMemAttr(CheckerContext &C, const CallExpr *CE,
185 ProgramStateRef FreeMemAux(CheckerContext &C, const CallExpr *CE,
195 ProgramStateRef ReallocMem(CheckerContext &C, const CallExpr *CE,
197 static ProgramStateRef CallocMem(CheckerContext &C, const CallExpr *CE);
437 checkPostStmt(const CallExpr *CE, CheckerContext &C) const argument
520 MallocMemReturnsAttr(CheckerContext &C, const CallExpr *CE, const OwnershipAttr* Att) argument
533 MallocMemAux(CheckerContext &C, const CallExpr *CE, SVal Size, SVal Init, ProgramStateRef state) argument
574 MallocUpdateRefState(CheckerContext &C, const CallExpr *CE, ProgramStateRef state) argument
592 FreeMemAttr(CheckerContext &C, const CallExpr *CE, const OwnershipAttr* Att) const argument
612 FreeMemAux(CheckerContext &C, const CallExpr *CE, ProgramStateRef state, unsigned Num, bool Hold, bool &ReleasedAllocated) const argument
844 ReallocMem(CheckerContext &C, const CallExpr *CE, bool FreesOnFail) const argument
940 CallocMem(CheckerContext &C, const CallExpr *CE) argument
1100 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument
[all...]
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
21 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/llvm/include/llvm/
H A DOperator.h55 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(V))
56 return CE->getOpcode();
113 static inline bool classof(const ConstantExpr *CE) { argument
114 return CE->getOpcode() == Instruction::Add ||
115 CE->getOpcode() == Instruction::Sub ||
116 CE->getOpcode() == Instruction::Mul ||
117 CE->getOpcode() == Instruction::Shl;
155 static inline bool classof(const ConstantExpr *CE) { argument
156 return isPossiblyExactOpcode(CE->getOpcode());
202 static inline bool classof(const ConstantExpr *CE) { argument
[all...]
/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 1066 milliseconds

12345678