Home
last modified time | relevance | path

Searched refs:CE (Results 1 – 25 of 297) sorted by relevance

12345678910>>...12

/external/clang/lib/StaticAnalyzer/Checkers/
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) const;
[all …]
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, CheckerContext &C) const;
[all …]
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) const { in CheckOpen()
[all …]
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, in checkPostStmt() argument
61 StringRef FName = C.getCalleeName(CE); in checkPostStmt()
65 if (CE->getNumArgs() != 1) in checkPostStmt()
71 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in checkPostStmt()
76 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in checkPostStmt()
81 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in checkPostStmt()
86 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in checkPostStmt()
[all …]
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, const FunctionDecl *FD);
[all …]
DOSAtomicChecker.cpp27 bool inlineCall(const CallExpr *CE, ExprEngine &Eng,
31 bool evalOSAtomicCompareAndSwap(const CallExpr *CE,
39 const CallExpr *CE, in getCalleeName() argument
41 const Expr *Callee = CE->getCallee(); in getCalleeName()
52 bool OSAtomicChecker::inlineCall(const CallExpr *CE, in inlineCall() argument
57 CE, Pred->getLocationContext()); in inlineCall()
64 return evalOSAtomicCompareAndSwap(CE, Eng, Pred, Dst); in inlineCall()
70 bool OSAtomicChecker::evalOSAtomicCompareAndSwap(const CallExpr *CE, in evalOSAtomicCompareAndSwap() argument
75 if (CE->getNumArgs() != 3) in evalOSAtomicCompareAndSwap()
79 const Expr *oldValueExpr = CE->getArg(0); in evalOSAtomicCompareAndSwap()
[all …]
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,
[all …]
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, in evalCall() argument
37 FnCheck Handler = llvm::StringSwitch<FnCheck>(C.getCalleeName(CE)) in evalCall()
46 (this->*Handler)(CE, C); in evalCall()
50 static const char *getArgumentValueString(const CallExpr *CE, in getArgumentValueString() argument
52 if (CE->getNumArgs() == 0) in getArgumentValueString()
59 const Expr *Assertion = CE->getArg(0); in getArgumentValueString()
82 void ExprInspectionChecker::analyzerEval(const CallExpr *CE, in analyzerEval() argument
[all …]
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, in checkPostStmt() argument
89 StringRef Name = C.getCalleeName(CE); in checkPostStmt()
90 if (Name.empty() || CE->getNumArgs() < 1) in checkPostStmt()
95 if (CE->getNumArgs() < 3) in checkPostStmt()
100 addSizeInfo(CE, CE->getArg(2), C); in checkPostStmt()
105 addSizeInfo(CE->getArg(0), CE, C); in checkPostStmt()
110 void ObjCContainersChecker::checkPreStmt(const CallExpr *CE, in checkPreStmt() argument
112 StringRef Name = C.getCalleeName(CE); in checkPreStmt()
[all …]
DBuiltinFunctionChecker.cpp27 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
32 bool BuiltinFunctionChecker::evalCall(const CallExpr *CE, in evalCall() argument
35 const FunctionDecl *FD = C.getCalleeDecl(CE); in evalCall()
48 assert (CE->arg_begin() != CE->arg_end()); in evalCall()
49 SVal X = state->getSVal(*(CE->arg_begin()), LCtx); in evalCall()
50 C.addTransition(state->BindExpr(CE, LCtx, X)); in evalCall()
58 RM.getAllocaRegion(CE, C.blockCount(), C.getLocationContext()); in evalCall()
64 cast<DefinedOrUnknownSVal>(state->getSVal(*(CE->arg_begin()), LCtx)); in evalCall()
72 C.addTransition(state->BindExpr(CE, LCtx, loc::MemRegionVal(R))); in evalCall()
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) { in VisitCallExpr() argument
133 VisitChildren(CE); in VisitCallExpr()
134 Enqueue(CE); in VisitCallExpr()
137 void WalkAST::VisitCXXMemberCallExpr(CallExpr *CE) { in VisitCXXMemberCallExpr() argument
138 VisitChildren(CE); in VisitCXXMemberCallExpr()
142 if (MemberExpr *CME = dyn_cast<MemberExpr>(CE->getCallee())) { in VisitCXXMemberCallExpr()
155 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(CE->getDirectCallee()); in VisitCXXMemberCallExpr()
[all …]
DCStringSyntaxChecker.cpp57 if (const CallExpr *CE = dyn_cast<CallExpr>(E)) { in isStrlen() local
58 const FunctionDecl *FD = CE->getDirectCallee(); in isStrlen()
62 && sameDecl(CE->getArg(0), WithArg)); in isStrlen()
82 bool containsBadStrncatPattern(const CallExpr *CE);
94 void VisitCallExpr(CallExpr *CE);
104 bool WalkAST::containsBadStrncatPattern(const CallExpr *CE) { in containsBadStrncatPattern() argument
105 const Expr *DstArg = CE->getArg(0); in containsBadStrncatPattern()
106 const Expr *SrcArg = CE->getArg(1); in containsBadStrncatPattern()
107 const Expr *LenArg = CE->getArg(2); in containsBadStrncatPattern()
134 void WalkAST::VisitCallExpr(CallExpr *CE) { in VisitCallExpr() argument
[all …]
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 { in evalCall() argument
65 const FunctionDecl *FD = C.getCalleeDecl(CE); in evalCall()
76 Chroot(C, CE); in evalCall()
80 Chdir(C, CE); in evalCall()
87 void ChrootChecker::Chroot(CheckerContext &C, const CallExpr *CE) const { in Chroot()
97 void ChrootChecker::Chdir(CheckerContext &C, const CallExpr *CE) const { in Chdir()
[all …]
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, in CheckDispatchOnce() argument
54 if (CE->getNumArgs() < 1) in CheckDispatchOnce()
61 state->getSVal(CE->getArg(0), C.getLocationContext()).getAsRegion(); in CheckDispatchOnce()
86 report->addRange(CE->getArg(0)->getSourceRange()); in CheckDispatchOnce()
94 void MacOSXAPIChecker::checkPreStmt(const CallExpr *CE, in checkPreStmt() argument
96 StringRef Name = C.getCalleeName(CE); in checkPreStmt()
107 (this->*SC)(C, CE, Name); in checkPreStmt()
DObjCContainersASTChecker.cpp83 void VisitCallExpr(CallExpr *CE);
87 static StringRef getCalleeName(CallExpr *CE) { in getCalleeName() argument
88 const FunctionDecl *FD = CE->getDirectCallee(); in getCalleeName()
99 void WalkAST::VisitCallExpr(CallExpr *CE) { in VisitCallExpr() argument
100 StringRef Name = getCalleeName(CE); in VisitCallExpr()
109 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr()
117 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr()
121 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr()
146 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in VisitCallExpr()
153 VisitChildren(CE); in VisitCallExpr()
DMallocChecker.cpp129 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
164 const CallExpr *CE,
166 static ProgramStateRef MallocMemAux(CheckerContext &C, const CallExpr *CE, in MallocMemAux() argument
169 return MallocMemAux(C, CE, in MallocMemAux()
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);
[all …]
DCastToStructChecker.cpp30 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const;
34 void CastToStructChecker::checkPreStmt(const CastExpr *CE, in checkPreStmt() argument
36 const Expr *E = CE->getSubExpr(); in checkPreStmt()
39 QualType ToTy = Ctx.getCanonicalType(CE->getType()); in checkPreStmt()
66 R->addRange(CE->getSourceRange()); in checkPreStmt()
DCastSizeChecker.cpp28 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const;
32 void CastSizeChecker::checkPreStmt(const CastExpr *CE,CheckerContext &C) const { in checkPreStmt() argument
33 const Expr *E = CE->getSubExpr(); in checkPreStmt()
35 QualType ToTy = Ctx.getCanonicalType(CE->getType()); in checkPreStmt()
77 R->addRange(CE->getSourceRange()); in checkPreStmt()
/external/icu4c/i18n/
Ducol_imp.h537 uint32_t ucol_prv_getSpecialCE(const UCollator *coll, UChar ch, uint32_t CE,
541 uint32_t ucol_prv_getSpecialPrevCE(const UCollator *coll, UChar ch, uint32_t CE,
650 #define isSpecial(CE) ((((CE)&UCOL_SPECIAL_FLAG)>>28)==0xF) argument
659 #define isContinuation(CE) (((CE) & UCOL_CONTINUATION_MARKER) == UCOL_CONTINUATION_MARKER) argument
660 #define isFlagged(CE) (((CE) & 0x80) == 0x80) argument
661 #define isLongPrimary(CE) (((CE) & 0xC0) == 0xC0) argument
663 #define getCETag(CE) (((CE)&UCOL_TAG_MASK)>>UCOL_TAG_SHIFT) argument
664 #define isContraction(CE) (isSpecial((CE)) && (getCETag((CE)) == CONTRACTION_TAG)) argument
665 #define isPrefix(CE) (isSpecial((CE)) && (getCETag((CE)) == SPEC_PROC_TAG)) argument
666 #define constructContractCE(tag, CE) (UCOL_SPECIAL_FLAG | ((tag)<<UCOL_TAG_SHIFT) | ((CE)&0xFFFFFF)) argument
[all …]
Ducol.cpp2730 uint32_t ucol_prv_getSpecialCE(const UCollator *coll, UChar ch, uint32_t CE, collIterate *source, U… in ucol_prv_getSpecialCE() argument
2742 switch(getCETag(CE)) { in ucol_prv_getSpecialCE()
2745 return CE; in ucol_prv_getSpecialCE()
2767 … const UChar *ContractionStart = UCharOffset = (UChar *)coll->image+getContractOffset(CE); in ucol_prv_getSpecialCE()
2769 CE = *(coll->contractionCEs + (UCharOffset - coll->contractionIndex)); in ucol_prv_getSpecialCE()
2782 CE = *(coll->contractionCEs + in ucol_prv_getSpecialCE()
2789 CE = *(coll->contractionCEs + in ucol_prv_getSpecialCE()
2793 if(!isPrefix(CE)) { in ucol_prv_getSpecialCE()
2802 if(CE != UCOL_NOT_FOUND) { // we found something and we can merilly continue in ucol_prv_getSpecialCE()
2817 …firstCE = *(coll->contractionCEs + ((UChar *)coll->image+getContractOffset(CE) - coll->contraction… in ucol_prv_getSpecialCE()
[all …]
/external/llvm/lib/Analysis/
DConstantFolding.cpp229 ConstantExpr *CE = dyn_cast<ConstantExpr>(C); in IsConstantOffsetFromGlobal() local
230 if (!CE) return false; in IsConstantOffsetFromGlobal()
233 if (CE->getOpcode() == Instruction::PtrToInt || in IsConstantOffsetFromGlobal()
234 CE->getOpcode() == Instruction::BitCast) in IsConstantOffsetFromGlobal()
235 return IsConstantOffsetFromGlobal(CE->getOperand(0), GV, Offset, TD); in IsConstantOffsetFromGlobal()
238 if (CE->getOpcode() == Instruction::GetElementPtr) { in IsConstantOffsetFromGlobal()
241 if (!cast<PointerType>(CE->getOperand(0)->getType()) in IsConstantOffsetFromGlobal()
246 if (!IsConstantOffsetFromGlobal(CE->getOperand(0), GV, Offset, TD)) in IsConstantOffsetFromGlobal()
250 gep_type_iterator GTI = gep_type_begin(CE); in IsConstantOffsetFromGlobal()
251 for (User::const_op_iterator i = CE->op_begin() + 1, e = CE->op_end(); in IsConstantOffsetFromGlobal()
[all …]
/external/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp554 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isFPImm() local
555 if (!CE) return false; in isFPImm()
556 int Val = ARM_AM::getFP32Imm(APInt(32, CE->getValue())); in isFPImm()
561 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isFBits16() local
562 if (!CE) return false; in isFBits16()
563 int64_t Value = CE->getValue(); in isFBits16()
568 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isFBits32() local
569 if (!CE) return false; in isFBits32()
570 int64_t Value = CE->getValue(); in isFBits32()
575 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImm8s4() local
[all …]
/external/llvm/include/llvm/
DOperator.h55 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) in getOpcode() local
56 return CE->getOpcode(); in getOpcode()
113 static inline bool classof(const ConstantExpr *CE) { in classof() argument
114 return CE->getOpcode() == Instruction::Add || in classof()
115 CE->getOpcode() == Instruction::Sub || in classof()
116 CE->getOpcode() == Instruction::Mul || in classof()
117 CE->getOpcode() == Instruction::Shl; in classof()
155 static inline bool classof(const ConstantExpr *CE) { in classof() argument
156 return isPossiblyExactOpcode(CE->getOpcode()); in classof()
202 static inline bool classof(const ConstantExpr *CE) { in classof() argument
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCallAndReturn.cpp35 void ExprEngine::processCallEnter(CallEnter CE, ExplodedNode *Pred) { in processCallEnter() argument
37 const StackFrameContext *calleeCtx = CE.getCalleeContext(); in processCallEnter()
86 const CallEnter *CE; in getLastStmt() local
89 CE = Node->getLocationAs<CallEnter>(); in getLastStmt()
90 } while (!CE || CE->getCalleeContext() != CEE->getCalleeContext()); in getLastStmt()
94 } else if (const CallEnter *CE = dyn_cast<CallEnter>(&PP)) { in getLastStmt() local
96 if (CE->getCalleeContext() == SF) in getLastStmt()
140 const Stmt *CE = calleeCtx->getCallSite(); in processCallExit() local
150 if (CE) { in processCallExit()
154 state = state->BindExpr(CE, callerCtx, V); in processCallExit()
[all …]
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp201 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(U)) { in AnalyzeGlobal() local
206 if (!isa<PointerType>(CE->getType())) return true; in AnalyzeGlobal()
208 if (AnalyzeGlobal(CE, GS, PHIUsers)) return true; in AnalyzeGlobal()
426 } else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(U)) { in CleanupPointerRootUsers() local
427 if (CE->use_empty()) { in CleanupPointerRootUsers()
428 CE->destroyConstant(); in CleanupPointerRootUsers()
483 } else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(U)) { in CleanupConstantGlobalUsers() local
484 if (CE->getOpcode() == Instruction::GetElementPtr) { in CleanupConstantGlobalUsers()
487 SubInit = ConstantFoldLoadThroughGEPConstantExpr(Init, CE); in CleanupConstantGlobalUsers()
488 Changed |= CleanupConstantGlobalUsers(CE, SubInit, TD, TLI); in CleanupConstantGlobalUsers()
[all …]

12345678910>>...12