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

1234567891011>>

/openbsd-current/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DUnixAPIChecker.cpp46 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
48 void CheckOpen(CheckerContext &C, const CallExpr *CE) const;
49 void CheckOpenAt(CheckerContext &C, const CallExpr *CE) const;
50 void CheckPthreadOnce(CheckerContext &C, const CallExpr *CE) const;
53 const CallExpr *CE, OpenVariant Variant) const;
64 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
69 void CheckCallocZero(CheckerContext &C, const CallExpr *CE) const;
70 void CheckMallocZero(CheckerContext &C, const CallExpr *CE) const;
71 void CheckReallocZero(CheckerContext &C, const CallExpr *CE) const;
72 void CheckReallocfZero(CheckerContext &C, const CallExpr *CE) cons
102 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument
152 CheckOpenVariant(CheckerContext &C, const CallExpr *CE, OpenVariant Variant) const argument
362 BasicAllocationCheck(CheckerContext &C, const CallExpr *CE, const unsigned numArgs, const unsigned sizeArg, const char *fn) const argument
458 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DDebugContainerModeling.cpp34 void analyzerContainerDataField(const CallExpr *CE, CheckerContext &C,
36 void analyzerContainerBegin(const CallExpr *CE, CheckerContext &C) const;
37 void analyzerContainerEnd(const CallExpr *CE, CheckerContext &C) const;
66 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); local
67 if (!CE)
74 (this->**Handler)(CE, C);
79 void DebugContainerModeling::analyzerContainerDataField(const CallExpr *CE, argument
82 if (CE->getNumArgs() == 0) {
88 const MemRegion *Cont = C.getSVal(CE->getArg(0)).getAsRegion();
94 State = State->BindExpr(CE,
119 analyzerContainerBegin(const CallExpr *CE, CheckerContext &C) const argument
126 analyzerContainerEnd(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DSTLAlgorithmModeling.cpp28 bool evalFind(CheckerContext &C, const CallExpr *CE) const;
30 void Find(CheckerContext &C, const CallExpr *CE, unsigned paramNum) const;
71 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); local
72 if (!CE)
79 return (this->**Handler)(C, CE);
83 const CallExpr *CE) const {
88 if (!isIteratorType(CE->getArg(1)->getType()))
93 if (isIteratorType(CE->getArg(0)->getType())) {
94 Find(C, CE, 0);
100 if (isIteratorType(CE
108 Find(CheckerContext &C, const CallExpr *CE, unsigned paramNum) const argument
[all...]
H A DDebugIteratorModeling.cpp34 void analyzerIteratorDataField(const CallExpr *CE, CheckerContext &C,
36 void analyzerIteratorPosition(const CallExpr *CE, CheckerContext &C) const;
37 void analyzerIteratorContainer(const CallExpr *CE, CheckerContext &C) const;
38 void analyzerIteratorValidity(const CallExpr *CE, CheckerContext &C) const;
69 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); local
70 if (!CE)
77 (this->**Handler)(CE, C);
82 void DebugIteratorModeling::analyzerIteratorDataField(const CallExpr *CE, argument
86 if (CE->getNumArgs() == 0) {
92 SVal V = C.getSVal(CE
102 analyzerIteratorPosition(const CallExpr *CE, CheckerContext &C) const argument
110 analyzerIteratorContainer(const CallExpr *CE, CheckerContext &C) const argument
118 analyzerIteratorValidity(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DExprInspectionChecker.cpp38 void analyzerEval(const CallExpr *CE, CheckerContext &C) const;
39 void analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const;
40 void analyzerWarnIfReached(const CallExpr *CE, CheckerContext &C) const;
41 void analyzerNumTimesReached(const CallExpr *CE, CheckerContext &C) const;
42 void analyzerCrash(const CallExpr *CE, CheckerContext &C) const;
43 void analyzerWarnOnDeadSymbol(const CallExpr *CE, CheckerContext &C) const;
44 void analyzerValue(const CallExpr *CE, CheckerContext &C) const;
45 void analyzerDumpSValType(const CallExpr *CE, CheckerContext &C) const;
46 void analyzerDump(const CallExpr *CE, CheckerContext &C) const;
47 void analyzerExplain(const CallExpr *CE, CheckerContex
83 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); local
133 getArgumentValueString(const CallExpr *CE, CheckerContext &C) argument
191 getArgExpr(const CallExpr *CE, CheckerContext &C) const argument
200 getArgRegion(const CallExpr *CE, CheckerContext &C) const argument
215 analyzerEval(const CallExpr *CE, CheckerContext &C) const argument
227 analyzerWarnIfReached(const CallExpr *CE, CheckerContext &C) const argument
232 analyzerNumTimesReached(const CallExpr *CE, CheckerContext &C) const argument
241 analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const argument
256 analyzerExplain(const CallExpr *CE, CheckerContext &C) const argument
291 analyzerValue(const CallExpr *CE, CheckerContext &C) const argument
306 analyzerDumpSValType(const CallExpr *CE, CheckerContext &C) const argument
316 analyzerDump(const CallExpr *CE, CheckerContext &C) const argument
326 analyzerGetExtent(const CallExpr *CE, CheckerContext &C) const argument
339 analyzerDumpExtent(const CallExpr *CE, CheckerContext &C) const argument
350 analyzerDumpElementCount(const CallExpr *CE, CheckerContext &C) const argument
370 analyzerPrintState(const CallExpr *CE, CheckerContext &C) const argument
375 analyzerWarnOnDeadSymbol(const CallExpr *CE, CheckerContext &C) const argument
427 analyzerCrash(const CallExpr *CE, CheckerContext &C) const argument
432 analyzerHashDump(const CallExpr *CE, CheckerContext &C) const argument
444 analyzerDenote(const CallExpr *CE, CheckerContext &C) const argument
529 analyzerExpress(const CallExpr *CE, CheckerContext &C) const argument
552 analyzerIsTainted(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DCStringSyntaxChecker.cpp55 if (const auto *CE = dyn_cast<CallExpr>(E)) {
56 const FunctionDecl *FD = CE->getDirectCallee();
60 sameDecl(CE->getArg(0), WithArg));
80 bool containsBadStrncatPattern(const CallExpr *CE);
101 bool containsBadStrlcpyStrlcatPattern(const CallExpr *CE);
112 void VisitCallExpr(CallExpr *CE);
122 bool WalkAST::containsBadStrncatPattern(const CallExpr *CE) { argument
123 if (CE->getNumArgs() != 3)
125 const Expr *DstArg = CE->getArg(0);
126 const Expr *SrcArg = CE
153 containsBadStrlcpyStrlcatPattern(const CallExpr *CE) argument
213 VisitCallExpr(CallExpr *CE) argument
[all...]
H A DObjCContainersChecker.cpp50 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
51 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
83 void ObjCContainersChecker::checkPostStmt(const CallExpr *CE, argument
85 StringRef Name = C.getCalleeName(CE);
86 if (Name.empty() || CE->getNumArgs() < 1)
91 if (CE->getNumArgs() < 3)
96 addSizeInfo(CE, CE->getArg(2), C);
101 addSizeInfo(CE->getArg(0), CE,
106 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DObjCContainersASTChecker.cpp80 void VisitCallExpr(CallExpr *CE);
84 static StringRef getCalleeName(CallExpr *CE) { argument
85 const FunctionDecl *FD = CE->getDirectCallee();
96 void WalkAST::VisitCallExpr(CallExpr *CE) { argument
97 StringRef Name = getCalleeName(CE);
105 if (CE->getNumArgs() != 4)
108 Arg = CE->getArg(ArgNum)->IgnoreParenCasts();
112 if (CE->getNumArgs() != 6)
116 Arg = CE->getArg(ArgNum)->IgnoreParenCasts();
120 Arg = CE
[all...]
H A DMacOSXAPIChecker.cpp39 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
41 void CheckDispatchOnce(CheckerContext &C, const CallExpr *CE,
65 void MacOSXAPIChecker::CheckDispatchOnce(CheckerContext &C, const CallExpr *CE, argument
67 if (CE->getNumArgs() < 1)
72 const MemRegion *R = C.getSVal(CE->getArg(0)).getAsRegion();
86 if (CE->getBeginLoc().isMacroID()) {
145 report->addRange(CE->getArg(0)->getSourceRange());
153 void MacOSXAPIChecker::checkPreStmt(const CallExpr *CE, argument
155 StringRef Name = C.getCalleeName(CE);
168 (this->*SC)(C, CE, Nam
[all...]
H A DNoReturnFunctionChecker.cpp34 void checkPostCall(const CallEvent &CE, CheckerContext &C) const;
40 void NoReturnFunctionChecker::checkPostCall(const CallEvent &CE, argument
44 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CE.getDecl()))
47 if (const CallExpr *CExpr = dyn_cast_or_null<CallExpr>(CE.getOriginExpr());
53 if (!BuildSinks && CE.isGlobalCFunction()) {
54 if (const IdentifierInfo *II = CE.getCalleeIdentifier()) {
H A DCastToStructChecker.cpp35 bool VisitCastExpr(const CastExpr *CE);
39 bool CastToStructVisitor::VisitCastExpr(const CastExpr *CE) { argument
40 const Expr *E = CE->getSubExpr();
43 QualType ToTy = Ctx.getCanonicalType(CE->getType());
63 SourceRange Sr[1] = {CE->getSourceRange()};
64 PathDiagnosticLocation Loc(CE, BR.getSourceManager(), AC);
96 PathDiagnosticLocation Loc(CE, BR.getSourceManager(), AC);
102 Loc, CE->getSourceRange());
H A DBuiltinFunctionChecker.cpp41 const Expr *CE = Call.getOriginExpr(); local
78 C.addTransition(state->BindExpr(CE, LCtx, Arg));
87 RM.getAllocaRegion(CE, C.blockCount(), C.getLocationContext());
99 C.addTransition(state->BindExpr(CE, LCtx, loc::MemRegionVal(R)));
111 if (CE->EvaluateAsInt(EVResult, C.getASTContext(), Expr::SE_NoSideEffects)) {
115 BVF.getAPSIntType(CE->getType()).apply(Result);
124 V = SVB.makeIntVal(0, CE->getType());
127 C.addTransition(state->BindExpr(CE, LCtx, V));
H A DCheckSecuritySyntaxOnly.cpp87 void VisitCallExpr(CallExpr *CE);
88 void VisitObjCMessageExpr(ObjCMessageExpr *CE);
96 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD);
103 void checkCall_bcmp(const CallExpr *CE, const FunctionDecl *FD);
104 void checkCall_bcopy(const CallExpr *CE, const FunctionDecl *FD);
105 void checkCall_bzero(const CallExpr *CE, const FunctionDecl *FD);
106 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD);
107 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD);
108 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD);
109 void checkCall_mkstemp(const CallExpr *CE, cons
132 VisitCallExpr(CallExpr *CE) argument
349 checkCall_bcmp(const CallExpr *CE, const FunctionDecl *FD) argument
391 checkCall_bcopy(const CallExpr *CE, const FunctionDecl *FD) argument
434 checkCall_bzero(const CallExpr *CE, const FunctionDecl *FD) argument
476 checkCall_gets(const CallExpr *CE, const FunctionDecl *FD) argument
512 checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD) argument
552 checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) argument
593 checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD) argument
678 checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD) argument
717 checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD) argument
754 checkDeprecatedOrUnsafeBufferHandling(const CallExpr *CE, const FunctionDecl *FD) argument
824 checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) argument
855 checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) argument
898 checkCall_random(const CallExpr *CE, const FunctionDecl *FD) argument
926 checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD) argument
997 checkUncheckedReturnValue(CallExpr *CE) argument
[all...]
H A DEnumCastOutOfRangeChecker.cpp65 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const;
93 void EnumCastOutOfRangeChecker::checkPreStmt(const CastExpr *CE, argument
102 switch (CE->getCastKind()) {
113 C.getSVal(CE->getSubExpr()).getAs<DefinedOrUnknownSVal>();
120 const QualType T = CE->getType();
H A DCStringChecker.cpp185 void evalMemcpy(CheckerContext &C, const CallExpr *CE, CharKind CK) const;
186 void evalMempcpy(CheckerContext &C, const CallExpr *CE, CharKind CK) const;
187 void evalMemmove(CheckerContext &C, const CallExpr *CE, CharKind CK) const;
188 void evalBcopy(CheckerContext &C, const CallExpr *CE) const;
189 void evalCopyCommon(CheckerContext &C, const CallExpr *CE,
194 void evalMemcmp(CheckerContext &C, const CallExpr *CE, CharKind CK) const;
196 void evalstrLength(CheckerContext &C, const CallExpr *CE) const;
197 void evalstrnLength(CheckerContext &C, const CallExpr *CE) const;
199 const CallExpr *CE,
202 void evalStrcpy(CheckerContext &C, const CallExpr *CE) cons
1213 evalCopyCommon(CheckerContext &C, const CallExpr *CE, ProgramStateRef state, SizeArgExpr Size, DestinationArgExpr Dest, SourceArgExpr Source, bool Restricted, bool IsMempcpy, CharKind CK) const argument
1314 evalMemcpy(CheckerContext &C, const CallExpr *CE, CharKind CK) const argument
1329 evalMempcpy(CheckerContext &C, const CallExpr *CE, CharKind CK) const argument
1343 evalMemmove(CheckerContext &C, const CallExpr *CE, CharKind CK) const argument
1369 evalMemcmp(CheckerContext &C, const CallExpr *CE, CharKind CK) const argument
1453 evalstrLengthCommon(CheckerContext &C, const CallExpr *CE, bool IsStrnlen) const argument
1631 evalStrcpyCommon(CheckerContext &C, const CallExpr *CE, bool ReturnEnd, bool IsBounded, ConcatFnKind appendK, bool returnPtr) const argument
2036 evalStrcmpCommon(CheckerContext &C, const CallExpr *CE, bool IsBounded, bool IgnoreCase) const argument
2361 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); local
2399 const auto *CE = cast<CallExpr>(Call.getOriginExpr()); local
[all...]
/openbsd-current/gnu/llvm/llvm/lib/Transforms/Utils/
H A DCanonicalizeAliases.cpp51 auto *CE = dyn_cast<ConstantExpr>(C); local
52 if (!CE)
56 for (Use &U : CE->operands())
58 return CE->getWithOperands(Ops);
/openbsd-current/gnu/llvm/llvm/lib/MC/
H A DMCDXContainerStreamer.cpp24 std::unique_ptr<MCObjectWriter> &&OW, std::unique_ptr<MCCodeEmitter> &&CE,
27 std::move(CE));
22 createDXContainerStreamer( MCContext &Context, std::unique_ptr<MCAsmBackend> &&MAB, std::unique_ptr<MCObjectWriter> &&OW, std::unique_ptr<MCCodeEmitter> &&CE, bool RelaxAll) argument
/openbsd-current/gnu/llvm/llvm/lib/IR/
H A DReplaceConstant.cpp22 void convertConstantExprsToInstructions(Instruction *I, ConstantExpr *CE, argument
24 // Collect all reachable paths to CE from constant exprssion operands of I.
26 collectConstantExprPaths(I, CE, CEPaths);
58 for (auto *CE : Path) {
59 // Instruction which is equivalent to CE.
62 if (!Visited.count(CE)) {
63 // CE is encountered first time, convert it into a corresponding
66 NI = CE->getAsInstruction(BI);
68 // Mark CE as visited by mapping CE t
96 collectConstantExprPaths( Instruction *I, ConstantExpr *CE, std::map<Use *, std::vector<std::vector<ConstantExpr *>>> &CEPaths) argument
[all...]
/openbsd-current/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
H A DMPIChecker.h35 void checkPreCall(const CallEvent &CE, CheckerContext &Ctx) const { argument
37 checkUnmatchedWaits(CE, Ctx);
38 checkDoubleNonblocking(CE, Ctx);
83 /// \param CE MPI wait call using the request(s)
86 const clang::ento::MemRegion *const MR, const clang::ento::CallEvent &CE,
92 /// \param CE MPI wait call
94 topRegionUsedByWait(const clang::ento::CallEvent &CE) const;
/openbsd-current/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUMCInstLower.h52 auto *CE = dyn_cast<ConstantExpr>(CV); local
57 if (CE && CE->getOpcode() == Instruction::AddrSpaceCast) {
58 auto Op = CE->getOperand(0);
61 auto DstAddr = CE->getType()->getPointerAddressSpace();
/openbsd-current/gnu/llvm/clang/lib/Analysis/plugins/SampleAnalyzer/
H A DMainCallChecker.cpp14 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
18 void MainCallChecker::checkPreStmt(const CallExpr *CE, argument
20 const Expr *Callee = CE->getCallee();
/openbsd-current/gnu/llvm/clang/include/clang/AST/
H A DIgnoreExpr.h75 if (auto *CE = dyn_cast<CastExpr>(E))
76 return CE->getSubExpr();
93 if (auto *CE = dyn_cast<CastExpr>(E))
94 if (CE->getCastKind() != CK_LValueToRValue)
101 if (auto *CE = dyn_cast<CastExpr>(E))
102 if (CE->getCastKind() == CK_DerivedToBase ||
103 CE->getCastKind() == CK_UncheckedDerivedToBase ||
104 CE->getCastKind() == CK_NoOp)
105 return CE->getSubExpr();
163 else if (auto *CE
[all...]
/openbsd-current/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedCallArgsChecker.cpp55 bool VisitCallExpr(const CallExpr *CE) { argument
56 Checker->visitCallExpr(CE);
65 void visitCallExpr(const CallExpr *CE) const {
66 if (shouldSkipCall(CE))
69 if (auto *F = CE->getDirectCallee()) {
72 unsigned ArgIdx = isa<CXXOperatorCallExpr>(CE) && isa_and_nonnull<CXXMethodDecl>(F);
79 P < F->param_end() && ArgIdx < CE->getNumArgs(); ++P, ++ArgIdx) {
93 const auto *Arg = CE->getArg(ArgIdx);
121 bool shouldSkipCall(const CallExpr *CE) const {
122 if (CE
[all...]
/openbsd-current/gnu/llvm/llvm/include/llvm/IR/
H A DReplaceConstant.h27 /// The given instruction \p I contains given constant expression \p CE as one
29 /// all reachable paths from contant expression operands of \p I to \p CE into
34 Instruction *I, ConstantExpr *CE,
37 /// The given instruction \p I contains constant expression CE within the
39 /// \p CEPaths holds all the reachable paths (to CE) from such constant
49 /// Given an instruction \p I which uses given constant expression \p CE as
51 /// all reachable paths from the constant expression operands of \p I to \p CE,
54 Instruction *I, ConstantExpr *CE,
/openbsd-current/gnu/llvm/llvm/include/llvm/MCA/
H A DCodeEmitter.h55 const MCCodeEmitter &CE, ArrayRef<MCInst> S)
56 : STI(ST), MAB(AB), MCE(CE), VecOS(Code), Sequence(S),
54 CodeEmitter(const MCSubtargetInfo &ST, const MCAsmBackend &AB, const MCCodeEmitter &CE, ArrayRef<MCInst> S) argument

Completed in 184 milliseconds

1234567891011>>