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

1234567891011

/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_posix_fadvise.c108 #define CE(x, exp) \ macro
117 CE(posix_fadvise(fd, 0, 0, -1), EINVAL);
118 CE(posix_fadvise(pipe_fds[0], 0, 0, POSIX_FADV_NORMAL), ESPIPE);
119 CE(posix_fadvise(badfd, 0, 0, POSIX_FADV_NORMAL), EBADF);
120 CE(posix_fadvise(fd, 0, 0, POSIX_FADV_NORMAL), 0);
121 CE(posix_fadvise(fd, 0, 0, POSIX_FADV_SEQUENTIAL), 0);
122 CE(posix_fadvise(fd, 0, 0, POSIX_FADV_RANDOM), 0);
123 CE(posix_fadvise(fd, 0, 0, POSIX_FADV_WILLNEED), 0);
124 CE(posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED), 0);
125 CE(posix_fadvis
156 #undef CE macro
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DUnixAPIChecker.cpp47 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
49 void CheckOpen(CheckerContext &C, const CallExpr *CE) const;
50 void CheckOpenAt(CheckerContext &C, const CallExpr *CE) const;
51 void CheckPthreadOnce(CheckerContext &C, const CallExpr *CE) const;
54 const CallExpr *CE, OpenVariant Variant) const;
65 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
70 void CheckCallocZero(CheckerContext &C, const CallExpr *CE) const;
71 void CheckMallocZero(CheckerContext &C, const CallExpr *CE) const;
72 void CheckReallocZero(CheckerContext &C, const CallExpr *CE) const;
73 void CheckReallocfZero(CheckerContext &C, const CallExpr *CE) cons
103 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument
153 CheckOpenVariant(CheckerContext &C, const CallExpr *CE, OpenVariant Variant) const argument
363 BasicAllocationCheck(CheckerContext &C, const CallExpr *CE, const unsigned numArgs, const unsigned sizeArg, const char *fn) const argument
459 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DDebugIteratorModeling.cpp33 void analyzerContainerDataField(const CallExpr *CE, CheckerContext &C,
35 void analyzerContainerBegin(const CallExpr *CE, CheckerContext &C) const;
36 void analyzerContainerEnd(const CallExpr *CE, CheckerContext &C) const;
38 void analyzerIteratorDataField(const CallExpr *CE, CheckerContext &C,
40 void analyzerIteratorPosition(const CallExpr *CE, CheckerContext &C) const;
41 void analyzerIteratorContainer(const CallExpr *CE, CheckerContext &C) const;
42 void analyzerIteratorValidity(const CallExpr *CE, CheckerContext &C) const;
77 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); local
78 if (!CE)
85 (this->**Handler)(CE,
90 analyzerContainerDataField(const CallExpr *CE, CheckerContext &C, Getter get) const argument
118 analyzerContainerBegin(const CallExpr *CE, CheckerContext &C) const argument
125 analyzerContainerEnd(const CallExpr *CE, CheckerContext &C) const argument
133 analyzerIteratorDataField(const CallExpr *CE, CheckerContext &C, Getter get, SVal Default) const argument
153 analyzerIteratorPosition(const CallExpr *CE, CheckerContext &C) const argument
161 analyzerIteratorContainer(const CallExpr *CE, CheckerContext &C) const argument
169 analyzerIteratorValidity(const CallExpr *CE, CheckerContext &C) const argument
[all...]
H A DExprInspectionChecker.cpp35 void analyzerEval(const CallExpr *CE, CheckerContext &C) const;
36 void analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const;
37 void analyzerWarnIfReached(const CallExpr *CE, CheckerContext &C) const;
38 void analyzerNumTimesReached(const CallExpr *CE, CheckerContext &C) const;
39 void analyzerCrash(const CallExpr *CE, CheckerContext &C) const;
40 void analyzerWarnOnDeadSymbol(const CallExpr *CE, CheckerContext &C) const;
41 void analyzerDump(const CallExpr *CE, CheckerContext &C) const;
42 void analyzerExplain(const CallExpr *CE, CheckerContext &C) const;
43 void analyzerPrintState(const CallExpr *CE, CheckerContext &C) const;
44 void analyzerGetExtent(const CallExpr *CE, CheckerContex
69 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); local
103 getArgumentValueString(const CallExpr *CE, CheckerContext &C) argument
155 analyzerEval(const CallExpr *CE, CheckerContext &C) const argument
167 analyzerWarnIfReached(const CallExpr *CE, CheckerContext &C) const argument
172 analyzerNumTimesReached(const CallExpr *CE, CheckerContext &C) const argument
181 analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const argument
196 analyzerExplain(const CallExpr *CE, CheckerContext &C) const argument
208 analyzerDump(const CallExpr *CE, CheckerContext &C) const argument
223 analyzerGetExtent(const CallExpr *CE, CheckerContext &C) const argument
242 analyzerPrintState(const CallExpr *CE, CheckerContext &C) const argument
247 analyzerWarnOnDeadSymbol(const CallExpr *CE, CheckerContext &C) const argument
297 analyzerCrash(const CallExpr *CE, CheckerContext &C) const argument
302 analyzerHashDump(const CallExpr *CE, CheckerContext &C) const argument
314 analyzerDenote(const CallExpr *CE, CheckerContext &C) const argument
390 analyzerExpress(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.cpp53 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
54 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
86 void ObjCContainersChecker::checkPostStmt(const CallExpr *CE, argument
88 StringRef Name = C.getCalleeName(CE);
89 if (Name.empty() || CE->getNumArgs() < 1)
94 if (CE->getNumArgs() < 3)
99 addSizeInfo(CE, CE->getArg(2), C);
104 addSizeInfo(CE->getArg(0), CE,
109 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 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 const Expr *Callee = CE.getOriginExpr();
51 if (!BuildSinks && CE.isGlobalCFunction()) {
52 if (const IdentifierInfo *II = CE.getCalleeIdentifier()) {
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 DBuiltinFunctionChecker.cpp40 const Expr *CE = Call.getOriginExpr(); local
74 C.addTransition(state->BindExpr(CE, LCtx, Arg));
83 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 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 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
825 checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) argument
856 checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) argument
899 checkCall_random(const CallExpr *CE, const FunctionDecl *FD) argument
927 checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD) argument
998 checkUncheckedReturnValue(CallExpr *CE) argument
[all...]
H A DPthreadLockChecker.cpp81 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
86 void AcquireLock(CheckerContext &C, const CallExpr *CE, SVal lock,
89 void ReleaseLock(CheckerContext &C, const CallExpr *CE, SVal lock) const;
90 void DestroyLock(CheckerContext &C, const CallExpr *CE, SVal Lock,
92 void InitLock(CheckerContext &C, const CallExpr *CE, SVal Lock) const;
93 void reportUseDestroyedBug(CheckerContext &C, const CallExpr *CE) const;
109 void PthreadLockChecker::checkPostStmt(const CallExpr *CE, argument
111 StringRef FName = C.getCalleeName(CE);
115 if (CE->getNumArgs() != 1 && CE
216 AcquireLock(CheckerContext &C, const CallExpr *CE, SVal lock, bool isTryLock, enum LockingSemantics semantics) const argument
288 ReleaseLock(CheckerContext &C, const CallExpr *CE, SVal lock) const argument
346 DestroyLock(CheckerContext &C, const CallExpr *CE, SVal Lock, enum LockingSemantics semantics) const argument
408 InitLock(CheckerContext &C, const CallExpr *CE, SVal Lock) const argument
[all...]
H A DGenericTaintChecker.cpp46 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
48 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
109 static Optional<FunctionData> create(const CallExpr *CE, argument
111 const FunctionDecl *FDecl = C.getCalleeDecl(CE);
135 bool checkPre(const CallExpr *CE, const FunctionData &FData,
139 bool addSourcesPre(const CallExpr *CE, const FunctionData &FData,
144 bool addFiltersPre(const CallExpr *CE, const FunctionData &FData,
148 bool propagateFromPre(const CallExpr *CE, CheckerContext &C) const;
161 bool checkUncontrolledFormatString(const CallExpr *CE,
170 bool checkSystemCall(const CallExpr *CE, StringRe
517 checkPreStmt(const CallExpr *CE, CheckerContext &C) const argument
536 checkPostStmt(const CallExpr *CE, CheckerContext &C) const argument
548 addSourcesPre(const CallExpr *CE, const FunctionData &FData, CheckerContext &C) const argument
564 addFiltersPre(const CallExpr *CE, const FunctionData &FData, CheckerContext &C) const argument
591 propagateFromPre(const CallExpr *CE, CheckerContext &C) const argument
629 checkPre(const CallExpr *CE, const FunctionData &FData, CheckerContext &C) const argument
674 process(const CallExpr *CE, CheckerContext &C) const argument
739 postSocket(bool , const CallExpr *CE, CheckerContext &C) argument
787 getPrintfFormatArgumentNum(const CallExpr *CE, const CheckerContext &C, unsigned &ArgNum) argument
838 checkUncontrolledFormatString( const CallExpr *CE, CheckerContext &C) const argument
851 checkSystemCall(const CallExpr *CE, StringRef Name, CheckerContext &C) const argument
877 checkTaintedBufferSize(const CallExpr *CE, const FunctionDecl *FDecl, CheckerContext &C) const argument
914 checkCustomSinks(const CallExpr *CE, const FunctionData &FData, CheckerContext &C) const argument
[all...]
H A DEnumCastOutOfRangeChecker.cpp64 void checkPreStmt(const CastExpr *CE, CheckerContext &C) const;
92 void EnumCastOutOfRangeChecker::checkPreStmt(const CastExpr *CE, argument
101 switch (CE->getCastKind()) {
112 C.getSVal(CE->getSubExpr()).getAs<DefinedOrUnknownSVal>();
119 const QualType T = CE->getType();
H A DCStringChecker.cpp109 void evalMemcpy(CheckerContext &C, const CallExpr *CE) const;
110 void evalMempcpy(CheckerContext &C, const CallExpr *CE) const;
111 void evalMemmove(CheckerContext &C, const CallExpr *CE) const;
112 void evalBcopy(CheckerContext &C, const CallExpr *CE) const;
113 void evalCopyCommon(CheckerContext &C, const CallExpr *CE,
121 void evalMemcmp(CheckerContext &C, const CallExpr *CE) const;
123 void evalstrLength(CheckerContext &C, const CallExpr *CE) const;
124 void evalstrnLength(CheckerContext &C, const CallExpr *CE) const;
126 const CallExpr *CE,
129 void evalStrcpy(CheckerContext &C, const CallExpr *CE) cons
1137 evalCopyCommon(CheckerContext &C, const CallExpr *CE, ProgramStateRef state, const Expr *Size, const Expr *Dest, const Expr *Source, bool Restricted, bool IsMempcpy) const argument
1356 evalstrLengthCommon(CheckerContext &C, const CallExpr *CE, bool IsStrnlen) const argument
1535 evalStrcpyCommon(CheckerContext &C, const CallExpr *CE, bool ReturnEnd, bool IsBounded, ConcatFnKind appendK, bool returnPtr) const argument
1937 evalStrcmpCommon(CheckerContext &C, const CallExpr *CE, bool IsBounded, bool IgnoreCase) const argument
2257 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); local
2296 const auto *CE = cast<CallExpr>(Call.getOriginExpr()); local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp78 createReplacementInstr(ConstantExpr *CE, Instruction *Instr) { argument
80 unsigned OpCode = CE->getOpcode();
83 SmallVector<Value *,4> CEOpVec(CE->op_begin(), CE->op_end());
86 cast<GEPOperator>(CE)->getSourceElementType(), CEOps[0],
106 CE->getOperand(0), CE->getOperand(1),
107 CE->getName()));
122 CE->getOperand(0), CE
129 replaceConstantExprOp(ConstantExpr *CE, Pass *P) argument
168 ConstantExpr *CE = dyn_cast<ConstantExpr>(WU); local
[all...]
/freebsd-11-stable/contrib/llvm-project/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;
/freebsd-11-stable/contrib/llvm-project/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();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp84 ConstantExpr *CE = cast<ConstantExpr>(C); local
85 switch (CE->getOpcode()) {
88 return isSimpleEnoughValueToCommit(CE->getOperand(0), SimpleConstants, DL);
94 if (DL.getTypeSizeInBits(CE->getType()) !=
95 DL.getTypeSizeInBits(CE->getOperand(0)->getType()))
97 return isSimpleEnoughValueToCommit(CE->getOperand(0), SimpleConstants, DL);
101 for (unsigned i = 1, e = CE->getNumOperands(); i != e; ++i)
102 if (!isa<ConstantInt>(CE->getOperand(i)))
104 return isSimpleEnoughValueToCommit(CE->getOperand(0), SimpleConstants, DL);
108 if (!isa<ConstantInt>(CE
312 ConstantExpr *CE = dyn_cast<ConstantExpr>(CallExpr); local
[all...]
H A DCanonicalizeAliases.cpp52 auto *CE = dyn_cast<ConstantExpr>(C); local
53 if (!CE)
57 for (Use &U : CE->operands())
59 return CE->getWithOperands(Ops);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86WinCOFFStreamer.cpp24 std::unique_ptr<MCCodeEmitter> CE,
26 : MCWinCOFFStreamer(C, std::move(AB), std::move(CE), std::move(OW)) {}
66 std::unique_ptr<MCCodeEmitter> &&CE,
70 new X86WinCOFFStreamer(C, std::move(AB), std::move(CE), std::move(OW));
23 X86WinCOFFStreamer(MCContext &C, std::unique_ptr<MCAsmBackend> AB, std::unique_ptr<MCCodeEmitter> CE, std::unique_ptr<MCObjectWriter> OW) argument
63 createX86WinCOFFStreamer(MCContext &C, std::unique_ptr<MCAsmBackend> &&AB, std::unique_ptr<MCObjectWriter> &&OW, std::unique_ptr<MCCodeEmitter> &&CE, bool RelaxAll, bool IncrementalLinkerCompatible) argument
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/MCA/
H A DCodeEmitter.h59 const MCCodeEmitter &CE, ArrayRef<MCInst> S)
60 : STI(ST), MAB(AB), MCE(CE), VecOS(Code), Sequence(S),
58 CodeEmitter(const MCSubtargetInfo &ST, const MCAsmBackend &AB, const MCCodeEmitter &CE, ArrayRef<MCInst> S) argument
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-mca/Views/
H A DInstructionInfoView.h55 CodeEmitter &CE; member in class:llvm::mca::InstructionInfoView
65 : STI(ST), MCII(II), CE(C), PrintEncodings(ShouldPrintEncodings),
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
H A DLexicallyOrderedRecursiveASTVisitor.h115 SmallVector<Stmt *, 8> getStmtChildren(CXXOperatorCallExpr *CE) { argument
116 SmallVector<Stmt *, 8> Children(CE->children());
120 switch (CE->getOperator()) {
132 Swap = CE->isInfixBinaryOp();

Completed in 303 milliseconds

1234567891011