Home
last modified time | relevance | path

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

1234

/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DUndefBranchChecker.cpp39 const Expr *FindExpr(const Expr *Ex) { in FindExpr()
40 if (!MatchesCriteria(Ex)) in FindExpr()
43 for (const Stmt *SubStmt : Ex->children()) in FindExpr()
48 return Ex; in FindExpr()
51 bool MatchesCriteria(const Expr *Ex) { in MatchesCriteria()
52 return St->getSVal(Ex, LCtx).isUndef(); in MatchesCriteria()
92 const Expr *Ex = cast<Expr>(Condition); in checkBranchCondition() local
98 if (PS->getStmt() == Ex) in checkBranchCondition()
102 Ex = FindIt.FindExpr(Ex); in checkBranchCondition()
107 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 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 DDereferenceChecker.cpp52 const Expr *Ex, const ProgramState *state,
63 const Expr *Ex, in AddDerefSource() argument
67 Ex = Ex->IgnoreParenLValueCasts(); in AddDerefSource()
68 switch (Ex->getStmtClass()) { in AddDerefSource()
72 const DeclRefExpr *DR = cast<DeclRefExpr>(Ex); in AddDerefSource()
81 const MemberExpr *ME = cast<MemberExpr>(Ex); in AddDerefSource()
89 const ObjCIvarRefExpr *IV = cast<ObjCIvarRefExpr>(Ex); in AddDerefSource()
H A DDeadStoresChecker.cpp104 LookThroughTransitiveAssignmentsAndCommaOperators(const Expr *Ex) { in LookThroughTransitiveAssignmentsAndCommaOperators() argument
105 while (Ex) { in LookThroughTransitiveAssignmentsAndCommaOperators()
106 Ex = Ex->IgnoreParenCasts(); in LookThroughTransitiveAssignmentsAndCommaOperators()
107 const BinaryOperator *BO = dyn_cast<BinaryOperator>(Ex); in LookThroughTransitiveAssignmentsAndCommaOperators()
112 Ex = BO->getRHS(); in LookThroughTransitiveAssignmentsAndCommaOperators()
117 return Ex; in LookThroughTransitiveAssignmentsAndCommaOperators()
265 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val, in CheckVarDecl() argument
281 PathDiagnosticLocation::createBegin(Ex, BR.getSourceManager(), AC); in CheckVarDecl()
366 const Expr *Ex = U->getSubExpr()->IgnoreParenCasts(); in observeStmt() local
368 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) in observeStmt()
H A DUndefCapturedBlockVarChecker.cpp88 if (const Expr *Ex = FindBlockDeclRefExpr(BE->getBody(), VD)) in checkPostStmt() local
89 R->addRange(Ex->getSourceRange()); in checkPostStmt()
H A DObjCUnusedIVarsChecker.cpp36 if (const ObjCIvarRefExpr *Ex = dyn_cast<ObjCIvarRefExpr>(S)) { in Scan() local
37 const ObjCIvarDecl *D = Ex->getDecl(); in Scan()
/openbsd-src/gnu/llvm/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()
286 void ExprEngine::VisitCast(const CastExpr *CastE, const Expr *Ex, in VisitCast() argument
299 evalLoad(Dst, CastE, CastE, subExprNode, state, state->getSVal(Ex, LCtx)); in VisitCast()
306 QualType ExTy = Ex->getType(); in VisitCast()
346 SVal V = state->getSVal(Ex, LCtx); in VisitCast()
353 SVal V = state->getSVal(Ex, LCtx); in VisitCast()
364 handleLValueBitCast(state, Ex, LCtx, T, ExTy, CastE, Bldr, Pred); in VisitCast()
374 SVal V = state->getSVal(Ex, LCtx); in VisitCast()
382 handleLValueBitCast(state, Ex, LCtx, T, ExTy, CastE, Bldr, Pred); in VisitCast()
[all …]
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 DExplodedGraph.cpp50 bool ExplodedGraph::isInterestingLValueExpr(const Expr *Ex) { in isInterestingLValueExpr() argument
51 if (!Ex->isLValue()) in isInterestingLValueExpr()
53 return isa<DeclRefExpr, MemberExpr, ObjCIvarRefExpr, ArraySubscriptExpr>(Ex); in isInterestingLValueExpr()
122 const Expr *Ex = dyn_cast<Expr>(progPoint.castAs<PostStmt>().getStmt()); in shouldCollect() local
123 if (!Ex) in shouldCollect()
129 if (isInterestingLValueExpr(Ex)) in shouldCollect()
137 if (!PM.isConsumedExpr(Ex)) in shouldCollect()
H A DExprEngine.cpp1996 const auto *Ex = cast<Expr>(S); in Visit() local
1997 QualType resultType = Ex->getType(); in Visit()
2001 SVal result = svalBuilder.conjureSymbolVal(nullptr, Ex, LCtx, in Visit()
2004 ProgramStateRef State = N->getState()->BindExpr(Ex, LCtx, result); in Visit()
2008 if (!(isa<ObjCBoxedExpr>(Ex) && in Visit()
2009 !cast<ObjCBoxedExpr>(Ex)->getSubExpr() in Visit()
2011 for (auto Child : Ex->children()) { in Visit()
2554 const auto *Ex = dyn_cast<Expr>(Condition); in RecoverCastedSymbol() local
2555 if (!Ex) in RecoverCastedSymbol()
2561 while (const auto *CE = dyn_cast<CastExpr>(Ex)) { in RecoverCastedSymbol()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Analysis/
H A DReachableCode.cpp35 static bool isEnumConstant(const Expr *Ex) { in isEnumConstant() argument
36 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex); in isEnumConstant()
42 static bool isTrivialExpression(const Expr *Ex) { in isTrivialExpression() argument
43 Ex = Ex->IgnoreParenCasts(); in isTrivialExpression()
44 return isa<IntegerLiteral>(Ex) || isa<StringLiteral>(Ex) || in isTrivialExpression()
45 isa<CXXBoolLiteralExpr>(Ex) || isa<ObjCBoolLiteralExpr>(Ex) || in isTrivialExpression()
46 isa<CharacterLiteral>(Ex) || in isTrivialExpression()
47 isEnumConstant(Ex); in isTrivialExpression()
195 if (const auto *Ex = dyn_cast<Expr>(S)) in isConfigurationValue() local
196 S = Ex->IgnoreImplicit(); in isConfigurationValue()
[all …]
H A DUninitializedValues.cpp232 static const Expr *stripCasts(ASTContext &C, const Expr *Ex) { in stripCasts() argument
233 while (Ex) { in stripCasts()
234 Ex = Ex->IgnoreParenNoopCasts(C); in stripCasts()
235 if (const auto *CE = dyn_cast<CastExpr>(Ex)) { in stripCasts()
237 Ex = CE->getSubExpr(); in stripCasts()
243 return Ex; in stripCasts()
434 const Expr *Ex = stripCasts(DC->getParentASTContext(), *I); in VisitCallExpr() local
435 const auto *UO = dyn_cast<UnaryOperator>(Ex); in VisitCallExpr()
437 Ex = UO->getSubExpr(); in VisitCallExpr()
438 classify(Ex, Ignore); in VisitCallExpr()
[all …]
/openbsd-src/regress/usr.bin/mandoc/mdoc/Ex/
H A Dnostd.out_lint1 mandoc: nostd.in:10:2: WARNING: missing -std argument, adding it: Ex
2 mandoc: nostd.in:13:2: WARNING: missing -std argument, adding it: Ex
3 mandoc: nostd.in:16:2: WARNING: missing -std argument, adding it: Ex
H A Dargs.out_markdown5 **Ex-args** - arguments to the exit value macro
10 The **Ex-args** utility exits&#160;0 on success, and&#160;&gt;0 if an error occurs.
H A Dnostd.out_markdown5 **Ex-nostd** - exit value macros without -std arguments
10 The **Ex-nostd** utility exits&#160;0 on success, and&#160;&gt;0 if an error occurs.
H A Dnostd.out_ascii4 EExx--nnoossttdd - exit value macros without -std arguments
8 The EExx--nnoossttdd utility exits 0 on success, and >0 if an error occurs.
H A Dargs.out_ascii4 EExx--aarrggss - arguments to the exit value macro
8 The EExx--aarrggss utility exits 0 on success, and >0 if an error occurs.
H A Dnoname.out_lint2 mandoc: noname.in:10:2: WARNING: missing utility name, using "": Ex
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonConstExtenders.cpp303 bool operator==(const ExtExpr &Ex) const { in operator ==()
304 return Rs == Ex.Rs && S == Ex.S && Neg == Ex.Neg; in operator ==()
306 bool operator!=(const ExtExpr &Ex) const { in operator !=()
307 return !operator==(Ex); in operator !=()
309 bool operator<(const ExtExpr &Ex) const { in operator <()
310 if (Rs != Ex.Rs) in operator <()
311 return Rs < Ex.Rs; in operator <()
312 if (S != Ex.S) in operator <()
313 return S < Ex.S; in operator <()
314 return !Neg && Ex.Neg; in operator <()
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DExprEngine.h449 void VisitArrayInitLoopExpr(const ArrayInitLoopExpr *Ex, ExplodedNode *Pred,
453 void VisitArraySubscriptExpr(const ArraySubscriptExpr *Ex,
483 void VisitCast(const CastExpr *CastE, const Expr *Ex, ExplodedNode *Pred,
499 void VisitGuardedExpr(const Expr *Ex, const Expr *L, const Expr *R,
538 void VisitOffsetOfExpr(const OffsetOfExpr *Ex, ExplodedNode *Pred,
542 void VisitUnaryExprOrTypeTraitExpr(const UnaryExprOrTypeTraitExpr *Ex,
594 const Expr *Ex);
599 ProgramStateRef handleLValueBitCast(ProgramStateRef state, const Expr *Ex,
H A DMemRegion.h481 const Expr *Ex; variable
484 : SubRegion(superRegion, AllocaRegionKind), Cnt(cnt), Ex(ex) { in AllocaRegion()
485 assert(Ex); in AllocaRegion()
488 static void ProfileRegion(llvm::FoldingSetNodeID& ID, const Expr *Ex,
493 const Expr *getExpr() const { return Ex; } in getExpr()
1231 Expr const *Ex; variable
1234 : TypedValueRegion(sReg, CXXTempObjectRegionKind), Ex(E) { in CXXTempObjectRegion()
1245 const Expr *getExpr() const { return Ex; } in getExpr()
1247 QualType getValueType() const override { return Ex->getType(); } in getValueType()
1415 const AllocaRegion *getAllocaRegion(const Expr *Ex, unsigned Cnt,
[all …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/tools/obj2yaml/
H A Dwasm2yaml.cpp321 WasmYAML::Export Ex; in dump() local
322 Ex.Name = Export.Name; in dump()
323 Ex.Kind = Export.Kind; in dump()
324 Ex.Index = Export.Index; in dump()
325 ExportSec->Exports.push_back(Ex); in dump()
/openbsd-src/regress/lib/libcrypto/x509/bettertls/certificates/
H A D2593.crt12 Ex/PQjj+8UiuyZis2A7xYnDALmJZnAF7Y0wwsGnmQNceu9HqD20rn2kXZBMvHL0E

1234