Home
last modified time | relevance | path

Searched refs:Ex (Results 1 – 25 of 130) sorted by relevance

123456

/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DUndefBranchChecker.cpp38 const Expr *FindExpr(const Expr *Ex) { in FindExpr()
39 if (!MatchesCriteria(Ex)) in FindExpr()
42 for (const Stmt *SubStmt : Ex->children()) in FindExpr()
47 return Ex; in FindExpr()
50 bool MatchesCriteria(const Expr *Ex) { in MatchesCriteria()
51 return St->getSVal(Ex, LCtx).isUndef(); in MatchesCriteria()
91 const Expr *Ex = cast<Expr>(Condition); in checkBranchCondition() local
97 if (PS->getStmt() == Ex) in checkBranchCondition()
101 Ex = FindIt.FindExpr(Ex); in checkBranchCondition()
106 bugreporter::trackExpressionValue(N, Ex, *R); in checkBranchCondition()
[all …]
H A DUndefResultChecker.cpp38 static bool isArrayIndexOutOfBounds(CheckerContext &C, const Expr *Ex) { in isArrayIndexOutOfBounds() argument
41 if (!isa<ArraySubscriptExpr>(Ex)) in isArrayIndexOutOfBounds()
44 SVal Loc = C.getSVal(Ex); in isArrayIndexOutOfBounds()
99 const Expr *Ex = nullptr; in checkPostStmt() local
103 Ex = B->getLHS()->IgnoreParenCasts(); in checkPostStmt()
107 Ex = B->getRHS()->IgnoreParenCasts(); in checkPostStmt()
111 if (Ex) { in checkPostStmt()
115 if (isArrayIndexOutOfBounds(C, Ex)) in checkPostStmt()
126 Ex = B->getRHS(); in checkPostStmt()
135 Ex = B->getRHS(); in checkPostStmt()
[all …]
H A DDereferenceChecker.cpp49 const Expr *Ex, const ProgramState *state,
58 const Expr *Ex, in AddDerefSource() argument
62 Ex = Ex->IgnoreParenLValueCasts(); in AddDerefSource()
63 switch (Ex->getStmtClass()) { in AddDerefSource()
67 const DeclRefExpr *DR = cast<DeclRefExpr>(Ex); in AddDerefSource()
76 const MemberExpr *ME = cast<MemberExpr>(Ex); in AddDerefSource()
84 const ObjCIvarRefExpr *IV = cast<ObjCIvarRefExpr>(Ex); in AddDerefSource()
H A DObjCAtSyncChecker.cpp39 const Expr *Ex = S->getSynchExpr(); in checkPreStmt() local
41 SVal V = C.getSVal(Ex); in checkPreStmt()
51 bugreporter::trackExpressionValue(N, Ex, *report); in checkPreStmt()
75 bugreporter::trackExpressionValue(N, Ex, *report); in checkPreStmt()
H A DDeadStoresChecker.cpp104 LookThroughTransitiveAssignmentsAndCommaOperators(const Expr *Ex) { in LookThroughTransitiveAssignmentsAndCommaOperators() argument
105 while (Ex) { in LookThroughTransitiveAssignmentsAndCommaOperators()
107 dyn_cast<BinaryOperator>(Ex->IgnoreParenCasts()); in LookThroughTransitiveAssignmentsAndCommaOperators()
111 Ex = BO->getRHS(); in LookThroughTransitiveAssignmentsAndCommaOperators()
115 Ex = BO->getRHS(); in LookThroughTransitiveAssignmentsAndCommaOperators()
120 return Ex; in LookThroughTransitiveAssignmentsAndCommaOperators()
268 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val, in CheckVarDecl() argument
284 PathDiagnosticLocation::createBegin(Ex, BR.getSourceManager(), AC); in CheckVarDecl()
370 const Expr *Ex = U->getSubExpr()->IgnoreParenCasts(); in observeStmt() local
372 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) in observeStmt()
H A DUndefCapturedBlockVarChecker.cpp87 if (const Expr *Ex = FindBlockDeclRefExpr(BE->getBody(), VD)) in checkPostStmt() local
88 R->addRange(Ex->getSourceRange()); in checkPostStmt()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DExprEngineC.cpp260 ProgramStateRef state, const Expr* Ex, const LocationContext* LCtx, in handleLValueBitCast() argument
271 SVal OrigV = state->getSVal(Ex, LCtx); in handleLValueBitCast()
301 void ExprEngine::VisitCast(const CastExpr *CastE, const Expr *Ex, in VisitCast() argument
313 evalLoad(Dst, CastE, CastE, subExprNode, state, state->getSVal(Ex, LCtx)); in VisitCast()
320 QualType ExTy = Ex->getType(); in VisitCast()
359 SVal V = state->getSVal(Ex, LCtx); in VisitCast()
366 SVal V = state->getSVal(Ex, LCtx); in VisitCast()
377 handleLValueBitCast(state, Ex, LCtx, T, ExTy, CastE, Bldr, Pred); in VisitCast()
388 SVal V = state->getSVal(Ex, LCtx); in VisitCast()
396 handleLValueBitCast(state, Ex, LCtx, T, ExTy, CastE, Bldr, Pred); in VisitCast()
[all …]
H A DExplodedGraph.cpp50 bool ExplodedGraph::isInterestingLValueExpr(const Expr *Ex) { in isInterestingLValueExpr() argument
51 if (!Ex->isLValue()) in isInterestingLValueExpr()
53 return isa<DeclRefExpr>(Ex) || isa<MemberExpr>(Ex) || in isInterestingLValueExpr()
54 isa<ObjCIvarRefExpr>(Ex) || isa<ArraySubscriptExpr>(Ex); in isInterestingLValueExpr()
123 const Expr *Ex = dyn_cast<Expr>(progPoint.castAs<PostStmt>().getStmt()); in shouldCollect() local
124 if (!Ex) in shouldCollect()
130 if (isInterestingLValueExpr(Ex)) in shouldCollect()
138 if (!PM.isConsumedExpr(Ex)) in shouldCollect()
H A DExprEngineObjC.cpp21 void ExprEngine::VisitLvalObjCIvarRefExpr(const ObjCIvarRefExpr *Ex, in VisitLvalObjCIvarRefExpr() argument
26 SVal baseVal = state->getSVal(Ex->getBase(), LCtx); in VisitLvalObjCIvarRefExpr()
27 SVal location = state->getLValue(Ex->getDecl(), baseVal); in VisitLvalObjCIvarRefExpr()
31 Bldr.generateNode(Ex, Pred, state->BindExpr(Ex, LCtx, location)); in VisitLvalObjCIvarRefExpr()
35 getCheckerManager().runCheckersForPostStmt(Dst, dstIvar, Ex, *this); in VisitLvalObjCIvarRefExpr()
H A DExprEngine.cpp1487 const auto *Ex = cast<Expr>(S); in Visit() local
1488 QualType resultType = Ex->getType(); in Visit()
1492 SVal result = svalBuilder.conjureSymbolVal(nullptr, Ex, LCtx, in Visit()
1495 ProgramStateRef State = N->getState()->BindExpr(Ex, LCtx, result); in Visit()
1499 if (!(isa<ObjCBoxedExpr>(Ex) && in Visit()
1500 !cast<ObjCBoxedExpr>(Ex)->getSubExpr() in Visit()
1502 for (auto Child : Ex->children()) { in Visit()
2045 const auto *Ex = dyn_cast<Expr>(Condition); in RecoverCastedSymbol() local
2046 if (!Ex) in RecoverCastedSymbol()
2052 while (const auto *CE = dyn_cast<CastExpr>(Ex)) { in RecoverCastedSymbol()
[all …]
H A DBugReporterVisitors.cpp1936 static const Expr *peelOffOuterExpr(const Expr *Ex, in peelOffOuterExpr() argument
1938 Ex = Ex->IgnoreParenCasts(); in peelOffOuterExpr()
1939 if (const auto *FE = dyn_cast<FullExpr>(Ex)) in peelOffOuterExpr()
1941 if (const auto *OVE = dyn_cast<OpaqueValueExpr>(Ex)) in peelOffOuterExpr()
1943 if (const auto *POE = dyn_cast<PseudoObjectExpr>(Ex)) { in peelOffOuterExpr()
1954 if (const auto *CO = dyn_cast<ConditionalOperator>(Ex)) { in peelOffOuterExpr()
1976 if (auto *BO = dyn_cast<BinaryOperator>(Ex)) in peelOffOuterExpr()
1980 if (auto *UO = dyn_cast<UnaryOperator>(Ex)) { in peelOffOuterExpr()
1997 return Ex; in peelOffOuterExpr()
2444 bool ConditionBRVisitor::patternMatch(const Expr *Ex, in patternMatch() argument
[all …]
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/libsupc++/
H A Deh_ptr.cc48 template<typename Ex>
50 { return offsetof(Ex, unwindHeader); } in unwindhdr()
52 template<typename Ex>
54 { return unwindhdr<Ex>() - offsetof(Ex, terminateHandler); } in termHandler()
62 template<typename Ex>
64 { return unwindhdr<Ex>() - offsetof(Ex, adjustedPtr); } in adjptr()
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/libsupc++/
H A Deh_ptr.cc39 template<typename Ex>
41 { return offsetof(Ex, unwindHeader); } in unwindhdr()
43 template<typename Ex>
45 { return unwindhdr<Ex>() - offsetof(Ex, terminateHandler); } in termHandler()
53 template<typename Ex>
55 { return unwindhdr<Ex>() - offsetof(Ex, adjustedPtr); } in adjptr()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DReachableCode.cpp34 static bool isEnumConstant(const Expr *Ex) { in isEnumConstant() argument
35 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex); in isEnumConstant()
41 static bool isTrivialExpression(const Expr *Ex) { in isTrivialExpression() argument
42 Ex = Ex->IgnoreParenCasts(); in isTrivialExpression()
43 return isa<IntegerLiteral>(Ex) || isa<StringLiteral>(Ex) || in isTrivialExpression()
44 isa<CXXBoolLiteralExpr>(Ex) || isa<ObjCBoolLiteralExpr>(Ex) || in isTrivialExpression()
45 isa<CharacterLiteral>(Ex) || in isTrivialExpression()
46 isEnumConstant(Ex); in isTrivialExpression()
196 if (const auto *Ex = dyn_cast<Expr>(S)) in isConfigurationValue() local
197 S = Ex->IgnoreImplicit(); in isConfigurationValue()
[all …]
H A DUninitializedValues.cpp235 static const Expr *stripCasts(ASTContext &C, const Expr *Ex) { in stripCasts() argument
236 while (Ex) { in stripCasts()
237 Ex = Ex->IgnoreParenNoopCasts(C); in stripCasts()
238 if (const auto *CE = dyn_cast<CastExpr>(Ex)) { in stripCasts()
240 Ex = CE->getSubExpr(); in stripCasts()
246 return Ex; in stripCasts()
437 const Expr *Ex = stripCasts(DC->getParentASTContext(), *I); in VisitCallExpr() local
438 const auto *UO = dyn_cast<UnaryOperator>(Ex); in VisitCallExpr()
440 Ex = UO->getSubExpr(); in VisitCallExpr()
441 classify(Ex, Ignore); in VisitCallExpr()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonConstExtenders.cpp301 bool operator==(const ExtExpr &Ex) const { in operator ==()
302 return Rs == Ex.Rs && S == Ex.S && Neg == Ex.Neg; in operator ==()
304 bool operator!=(const ExtExpr &Ex) const { in operator !=()
305 return !operator==(Ex); in operator !=()
307 bool operator<(const ExtExpr &Ex) const { in operator <()
308 if (Rs != Ex.Rs) in operator <()
309 return Rs < Ex.Rs; in operator <()
310 if (S != Ex.S) in operator <()
311 return S < Ex.S; in operator <()
312 return !Neg && Ex.Neg; in operator <()
[all …]
/netbsd-src/external/lgpl3/mpfr/dist/src/
H A Dhypot.c38 mpfr_exp_t Ex, sh; in mpfr_hypot() local
85 Ex = MPFR_GET_EXP (x); in mpfr_hypot()
86 diff_exp = (mpfr_uexp_t) Ex - MPFR_GET_EXP (y); in mpfr_hypot()
122 MPFR_SET_EXP (z, Ex); in mpfr_hypot()
163 sh = (mpfr_get_emax () - 1) / 2 - Ex; in mpfr_hypot()
/netbsd-src/external/gpl3/gdb/dist/sim/ppc/
H A DINSTALL210 Ex: Default warnings
328 Ex: default
333 Ex: A small machine
364 Ex: Remove floating point instructions
396 Ex: default
405 Ex: disable the cache
428 Ex: default
436 Ex: recommended --enable-sim-inline
442 Ex: fine tuning
496 Ex: default
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Demangle/
H A DItaniumDemangle.h4162 Node *Ex = getDerived().parseExpr(); in parseNewExpr() local
4163 if (Ex == nullptr) in parseNewExpr()
4165 Names.push_back(Ex); in parseNewExpr()
4605 Node *Ex = getDerived().parseExpr(); in parseExpr() local
4606 if (Ex == nullptr) in parseExpr()
4607 return Ex; in parseExpr()
4608 return make<CastExpr>("const_cast", Ty, Ex); in parseExpr()
4639 Node *Ex = getDerived().parseExpr(); in parseExpr() local
4640 if (Ex == nullptr) in parseExpr()
4641 return Ex; in parseExpr()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DMemRegion.h473 const Expr *Ex; variable
476 : SubRegion(superRegion, AllocaRegionKind), Cnt(cnt), Ex(ex) { in AllocaRegion()
477 assert(Ex); in AllocaRegion()
480 static void ProfileRegion(llvm::FoldingSetNodeID& ID, const Expr *Ex,
484 const Expr *getExpr() const { return Ex; } in getExpr()
1183 Expr const *Ex; variable
1186 : TypedValueRegion(sReg, CXXTempObjectRegionKind), Ex(E) { in CXXTempObjectRegion()
1196 const Expr *getExpr() const { return Ex; } in getExpr()
1198 QualType getValueType() const override { return Ex->getType(); } in getValueType()
1363 const AllocaRegion *getAllocaRegion(const Expr *Ex, unsigned Cnt,
[all …]
H A DExprEngine.h447 void VisitArraySubscriptExpr(const ArraySubscriptExpr *Ex,
477 void VisitCast(const CastExpr *CastE, const Expr *Ex, ExplodedNode *Pred,
493 void VisitGuardedExpr(const Expr *Ex, const Expr *L, const Expr *R,
532 void VisitOffsetOfExpr(const OffsetOfExpr *Ex, ExplodedNode *Pred,
536 void VisitUnaryExprOrTypeTraitExpr(const UnaryExprOrTypeTraitExpr *Ex,
588 const Expr *Ex);
601 ProgramStateRef handleLValueBitCast(ProgramStateRef state, const Expr *Ex,
/netbsd-src/external/bsd/openldap/dist/contrib/slapd-modules/comp_match/
H A DREADME53 Ex) component search filter examples
72 Ex)
102 Ex)
125 Ex)
/netbsd-src/external/apache2/llvm/dist/llvm/tools/obj2yaml/
H A Dwasm2yaml.cpp317 WasmYAML::Export Ex; in dump() local
318 Ex.Name = Export.Name; in dump()
319 Ex.Kind = Export.Kind; in dump()
320 Ex.Index = Export.Index; in dump()
321 ExportSec->Exports.push_back(Ex); in dump()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldMachO.h39 EHFrameRelatedSections(SID EH, SID T, SID Ex) in EHFrameRelatedSections()
40 : EHFrameSID(EH), TextSID(T), ExceptTabSID(Ex) {} in EHFrameRelatedSections()
/netbsd-src/external/bsd/nvi/dist/
H A DREADME18 docs .......... Ex/vi documentation, both current and historic.
21 docs/exref .... Ex Reference Manual -- Version 3.7.
25 ex ............ Ex source code.

123456