Home
last modified time | relevance | path

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

12345678910>>...29

/external/clang/lib/StaticAnalyzer/Checkers/
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) const;
[all …]
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, 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 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 …]
DExprInspectionChecker.cpp24 void analyzerEval(const CallExpr *CE, CheckerContext &C) const;
25 void analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const;
26 void analyzerWarnIfReached(const CallExpr *CE, CheckerContext &C) const;
27 void analyzerCrash(const CallExpr *CE, CheckerContext &C) const;
28 void analyzerWarnOnDeadSymbol(const CallExpr *CE, CheckerContext &C) const;
29 void analyzerExplain(const CallExpr *CE, CheckerContext &C) const;
30 void analyzerGetExtent(const CallExpr *CE, CheckerContext &C) const;
38 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
45 bool ExprInspectionChecker::evalCall(const CallExpr *CE, in REGISTER_SET_WITH_PROGRAMSTATE()
49 FnCheck Handler = llvm::StringSwitch<FnCheck>(C.getCalleeName(CE)) in REGISTER_SET_WITH_PROGRAMSTATE()
[all …]
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, in REGISTER_LIST_WITH_PROGRAMSTATE()
85 StringRef FName = C.getCalleeName(CE); in REGISTER_LIST_WITH_PROGRAMSTATE()
89 if (CE->getNumArgs() != 1 && CE->getNumArgs() != 2) in REGISTER_LIST_WITH_PROGRAMSTATE()
95 AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), in REGISTER_LIST_WITH_PROGRAMSTATE()
[all …]
DCheckSecuritySyntaxOnly.cpp79 void VisitCallExpr(CallExpr *CE);
87 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, const FunctionDecl *FD);
[all …]
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,
[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()
52 assert (CE->arg_begin() != CE->arg_end()); in evalCall()
53 SVal X = state->getSVal(*(CE->arg_begin()), LCtx); in evalCall()
54 C.addTransition(state->BindExpr(CE, LCtx, X)); in evalCall()
62 RM.getAllocaRegion(CE, C.blockCount(), C.getLocationContext()); in evalCall()
68 state->getSVal(*(CE->arg_begin()), LCtx).castAs<DefinedOrUnknownSVal>(); in evalCall()
77 C.addTransition(state->BindExpr(CE, LCtx, loc::MemRegionVal(R))); in evalCall()
86 if (CE->EvaluateAsInt(Result, C.getASTContext(), Expr::SE_NoSideEffects)) { in evalCall()
[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);
93 void VisitCallExpr(CallExpr *CE);
103 bool WalkAST::containsBadStrncatPattern(const CallExpr *CE) { in containsBadStrncatPattern() argument
104 if (CE->getNumArgs() != 3) in containsBadStrncatPattern()
106 const Expr *DstArg = CE->getArg(0); in containsBadStrncatPattern()
107 const Expr *SrcArg = CE->getArg(1); in containsBadStrncatPattern()
108 const Expr *LenArg = CE->getArg(2); in containsBadStrncatPattern()
[all …]
DObjCContainersChecker.cpp54 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
55 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
84 void ObjCContainersChecker::checkPostStmt(const CallExpr *CE, in checkPostStmt() argument
86 StringRef Name = C.getCalleeName(CE); in checkPostStmt()
87 if (Name.empty() || CE->getNumArgs() < 1) in checkPostStmt()
92 if (CE->getNumArgs() < 3) in checkPostStmt()
97 addSizeInfo(CE, CE->getArg(2), C); in checkPostStmt()
102 addSizeInfo(CE->getArg(0), CE, C); in checkPostStmt()
107 void ObjCContainersChecker::checkPreStmt(const CallExpr *CE, in checkPreStmt() argument
109 StringRef Name = C.getCalleeName(CE); in checkPreStmt()
[all …]
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) { in VisitCallExpr() argument
134 VisitChildren(CE); in VisitCallExpr()
135 Enqueue(CE); in VisitCallExpr()
138 void WalkAST::VisitCXXMemberCallExpr(CallExpr *CE) { in VisitCXXMemberCallExpr() argument
139 VisitChildren(CE); in VisitCXXMemberCallExpr()
143 if (MemberExpr *CME = dyn_cast<MemberExpr>(CE->getCallee())) { in VisitCXXMemberCallExpr()
162 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(CE->getDirectCallee()); in VisitCXXMemberCallExpr()
[all …]
DChrootChecker.cpp55 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
56 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
59 void Chroot(CheckerContext &C, const CallExpr *CE) const;
60 void Chdir(CheckerContext &C, const CallExpr *CE) const;
65 bool ChrootChecker::evalCall(const CallExpr *CE, CheckerContext &C) const { in evalCall() argument
66 const FunctionDecl *FD = C.getCalleeDecl(CE); in evalCall()
77 Chroot(C, CE); in evalCall()
81 Chdir(C, CE); in evalCall()
88 void ChrootChecker::Chroot(CheckerContext &C, const CallExpr *CE) const { in Chroot()
98 void ChrootChecker::Chdir(CheckerContext &C, const CallExpr *CE) const { in Chdir()
[all …]
DObjCContainersASTChecker.cpp81 void VisitCallExpr(CallExpr *CE);
85 static StringRef getCalleeName(CallExpr *CE) { in getCalleeName() argument
86 const FunctionDecl *FD = CE->getDirectCallee(); in getCalleeName()
97 void WalkAST::VisitCallExpr(CallExpr *CE) { in VisitCallExpr() argument
98 StringRef Name = getCalleeName(CE); in VisitCallExpr()
106 if (CE->getNumArgs() != 4) in VisitCallExpr()
109 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr()
113 if (CE->getNumArgs() != 6) in VisitCallExpr()
117 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr()
121 Arg = CE->getArg(ArgNum)->IgnoreParenCasts(); in VisitCallExpr()
[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()
77 if (CE->getLocStart().isMacroID()) { in CheckDispatchOnce()
96 report->addRange(CE->getArg(0)->getSourceRange()); in CheckDispatchOnce()
104 void MacOSXAPIChecker::checkPreStmt(const CallExpr *CE, in checkPreStmt() argument
106 StringRef Name = C.getCalleeName(CE); in checkPreStmt()
119 (this->*SC)(C, CE, Name); in checkPreStmt()
DMallocChecker.cpp202 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
279 const CallExpr *CE,
282 static ProgramStateRef MallocMemAux(CheckerContext &C, const CallExpr *CE,
286 static ProgramStateRef MallocMemAux(CheckerContext &C, const CallExpr *CE,
294 performKernelMalloc(const CallExpr *CE, CheckerContext &C,
302 ProgramStateRef FreeMemAttr(CheckerContext &C, const CallExpr *CE,
305 ProgramStateRef FreeMemAux(CheckerContext &C, const CallExpr *CE,
317 ProgramStateRef ReallocMem(CheckerContext &C, const CallExpr *CE,
320 static ProgramStateRef CallocMem(CheckerContext &C, const CallExpr *CE,
671 const CallExpr *CE, CheckerContext &C, const ProgramStateRef &State) const { in performKernelMalloc() argument
[all …]
/external/clang/unittests/Tooling/
DFixItTest.cpp38 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() argument
39 EXPECT_EQ("foo(x, y)", getText(*CE, *Context)); in TEST()
40 EXPECT_EQ("foo(x, y)", getText(CE->getSourceRange(), *Context)); in TEST()
42 Expr *P0 = CE->getArg(0); in TEST()
43 Expr *P1 = CE->getArg(1); in TEST()
49 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() argument
50 EXPECT_EQ("APPLY(foo, x, y)", getText(*CE, *Context)); in TEST()
59 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() argument
60 EXPECT_EQ("F OO", getText(*CE, *Context)); in TEST()
61 Expr *P0 = CE->getArg(0); in TEST()
[all …]
/external/llvm/unittests/Support/
DErrorTest.cpp85 static Error handleCustomError(const CustomError &CE) { return Error(); } in handleCustomError() argument
87 static void handleCustomErrorVoid(const CustomError &CE) {} in handleCustomErrorVoid() argument
89 static Error handleCustomErrorUP(std::unique_ptr<CustomError> CE) { in handleCustomErrorUP() argument
93 static void handleCustomErrorUPVoid(std::unique_ptr<CustomError> CE) {} in handleCustomErrorUPVoid() argument
172 handleAllErrors(make_error<CustomError>(42), [&](const CustomError &CE) { in TEST() argument
173 CaughtErrorInfo = CE.getInfo(); in TEST()
194 handleAllErrors(make_error<CustomError>(42), [](const CustomError &CE) {}); in TEST() argument
198 [](const CustomError &CE) mutable { return Error::success(); }); in TEST() argument
201 [](const CustomError &CE) mutable {}); in TEST() argument
204 [](CustomError &CE) { return Error::success(); }); in TEST() argument
[all …]
/external/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp78 createReplacementInstr(ConstantExpr *CE, Instruction *Instr) { in createReplacementInstr() argument
80 unsigned OpCode = CE->getOpcode(); in createReplacementInstr()
83 SmallVector<Value *,4> CEOpVec(CE->op_begin(), CE->op_end()); in createReplacementInstr()
86 cast<GEPOperator>(CE)->getSourceElementType(), CEOps[0], in createReplacementInstr()
106 CE->getOperand(0), CE->getOperand(1), in createReplacementInstr()
107 CE->getName())); in createReplacementInstr()
122 CE->getOperand(0), CE->getType(), in createReplacementInstr()
123 CE->getName())); in createReplacementInstr()
129 static bool replaceConstantExprOp(ConstantExpr *CE, Pass *P) { in replaceConstantExprOp() argument
131 SmallVector<WeakVH,8> WUsers(CE->user_begin(), CE->user_end()); in replaceConstantExprOp()
[all …]
/external/llvm/lib/Transforms/Utils/
DEvaluator.cpp69 ConstantExpr *CE = cast<ConstantExpr>(C); in isSimpleEnoughValueToCommitHelper() local
70 switch (CE->getOpcode()) { in isSimpleEnoughValueToCommitHelper()
73 return isSimpleEnoughValueToCommit(CE->getOperand(0), SimpleConstants, DL); in isSimpleEnoughValueToCommitHelper()
79 if (DL.getTypeSizeInBits(CE->getType()) != in isSimpleEnoughValueToCommitHelper()
80 DL.getTypeSizeInBits(CE->getOperand(0)->getType())) in isSimpleEnoughValueToCommitHelper()
82 return isSimpleEnoughValueToCommit(CE->getOperand(0), SimpleConstants, DL); in isSimpleEnoughValueToCommitHelper()
86 for (unsigned i = 1, e = CE->getNumOperands(); i != e; ++i) in isSimpleEnoughValueToCommitHelper()
87 if (!isa<ConstantInt>(CE->getOperand(i))) in isSimpleEnoughValueToCommitHelper()
89 return isSimpleEnoughValueToCommit(CE->getOperand(0), SimpleConstants, DL); in isSimpleEnoughValueToCommitHelper()
93 if (!isa<ConstantInt>(CE->getOperand(1))) in isSimpleEnoughValueToCommitHelper()
[all …]
/external/llvm/lib/IR/
DConstantsContext.h181 static bool classof(const ConstantExpr *CE) { in classof() argument
182 return CE->getOpcode() == Instruction::ExtractValue; in classof()
214 static bool classof(const ConstantExpr *CE) { in classof() argument
215 return CE->getOpcode() == Instruction::InsertValue; in classof()
245 static bool classof(const ConstantExpr *CE) { in classof() argument
246 return CE->getOpcode() == Instruction::GetElementPtr; in classof()
274 static bool classof(const ConstantExpr *CE) { in classof() argument
275 return CE->getOpcode() == Instruction::ICmp || in classof()
276 CE->getOpcode() == Instruction::FCmp; in classof()
456 ConstantExprKeyType(ArrayRef<Constant *> Operands, const ConstantExpr *CE)
[all …]
/external/jsoncpp/makefiles/vs71/
Djsoncpp.sln2 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lib_json", "lib_json.vcproj", "{B84F7231-16CE-…
8 {B84F7231-16CE-41D8-8C08-7B523FF4225B} = {B84F7231-16CE-41D8-8C08-7B523FF4225B}
13 {B84F7231-16CE-41D8-8C08-7B523FF4225B} = {B84F7231-16CE-41D8-8C08-7B523FF4225B}
23 {B84F7231-16CE-41D8-8C08-7B523FF4225B}.Debug.ActiveCfg = Debug|Win32
24 {B84F7231-16CE-41D8-8C08-7B523FF4225B}.Debug.Build.0 = Debug|Win32
25 {B84F7231-16CE-41D8-8C08-7B523FF4225B}.dummy.ActiveCfg = dummy|Win32
26 {B84F7231-16CE-41D8-8C08-7B523FF4225B}.dummy.Build.0 = dummy|Win32
27 {B84F7231-16CE-41D8-8C08-7B523FF4225B}.Release.ActiveCfg = Release|Win32
28 {B84F7231-16CE-41D8-8C08-7B523FF4225B}.Release.Build.0 = Release|Win32
/external/swiftshader/third_party/LLVM/lib/Analysis/
DConstantFolding.cpp192 ConstantExpr *CE = dyn_cast<ConstantExpr>(C); in IsConstantOffsetFromGlobal() local
193 if (!CE) return false; in IsConstantOffsetFromGlobal()
196 if (CE->getOpcode() == Instruction::PtrToInt || in IsConstantOffsetFromGlobal()
197 CE->getOpcode() == Instruction::BitCast) in IsConstantOffsetFromGlobal()
198 return IsConstantOffsetFromGlobal(CE->getOperand(0), GV, Offset, TD); in IsConstantOffsetFromGlobal()
201 if (CE->getOpcode() == Instruction::GetElementPtr) { in IsConstantOffsetFromGlobal()
204 if (!cast<PointerType>(CE->getOperand(0)->getType()) in IsConstantOffsetFromGlobal()
209 if (!IsConstantOffsetFromGlobal(CE->getOperand(0), GV, Offset, TD)) in IsConstantOffsetFromGlobal()
213 gep_type_iterator GTI = gep_type_begin(CE); in IsConstantOffsetFromGlobal()
214 for (User::const_op_iterator i = CE->op_begin() + 1, e = CE->op_end(); in IsConstantOffsetFromGlobal()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp518 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImm8s4() local
519 if (!CE) return false; in isImm8s4()
520 int64_t Value = CE->getValue(); in isImm8s4()
526 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_1020s4() local
527 if (!CE) return false; in isImm0_1020s4()
528 int64_t Value = CE->getValue(); in isImm0_1020s4()
534 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_508s4() local
535 if (!CE) return false; in isImm0_508s4()
536 int64_t Value = CE->getValue(); in isImm0_508s4()
542 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_255() local
[all …]
/external/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp683 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm())) in isARMBranchTarget() local
684 return CE->getValue() % 4 == 0; in isARMBranchTarget()
692 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm())) in isThumbBranchTarget() local
693 return CE->getValue() % 2 == 0; in isThumbBranchTarget()
703 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) { in isUnsignedOffset() local
704 int64_t Val = CE->getValue(); in isUnsignedOffset()
717 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) { in isSignedOffset() local
718 int64_t Val = CE->getValue(); in isSignedOffset()
735 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val); in isThumbMemPC() local
736 if (!CE) return false; in isThumbMemPC()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
DMPIChecker.cpp135 const MemRegion *MPIChecker::topRegionUsedByWait(const CallEvent &CE) const { in topRegionUsedByWait()
137 if (FuncClassifier->isMPI_Wait(CE.getCalleeIdentifier())) { in topRegionUsedByWait()
138 return CE.getArgSVal(0).getAsRegion(); in topRegionUsedByWait()
139 } else if (FuncClassifier->isMPI_Waitall(CE.getCalleeIdentifier())) { in topRegionUsedByWait()
140 return CE.getArgSVal(1).getAsRegion(); in topRegionUsedByWait()
148 const MemRegion *const MR, const CallEvent &CE, CheckerContext &Ctx) const { in allRegionsUsedByWait() argument
152 if (FuncClassifier->isMPI_Waitall(CE.getCalleeIdentifier())) { in allRegionsUsedByWait()
166 CE.getArgExpr(1)->getType()->getPointeeType()); in allRegionsUsedByWait()
173 CE.getArgExpr(1)->getType()->getPointeeType(), Idx, SuperRegion, in allRegionsUsedByWait()
178 } else if (FuncClassifier->isMPI_Wait(CE.getCalleeIdentifier())) { in allRegionsUsedByWait()

12345678910>>...29