Home
last modified time | relevance | path

Searched refs:ifStmt (Results 1 – 25 of 738) sorted by relevance

12345678910>>...30

/dports/www/gohugo/hugo-0.91.2/vendor/github.com/tdewolff/minify/v2/js/
H A Dstmtlist.go13 ifStmt.Cond = unaryExpr.X
14 ifStmt.Body, ifStmt.Else = ifStmt.Else, ifStmt.Body
20 ifStmt.Body = m.optimizeStmt(ifStmt.Body)
32 ifStmt.Else = m.optimizeStmt(ifStmt.Else)
39 ifStmt.Body = m.optimizeStmt(ifStmt.Body)
40 ifStmt.Else = m.optimizeStmt(ifStmt.Else)
52 X: ifStmt.Cond,
62 return ifStmt
116 …if ifStmt, ok := list[i].(*js.IfStmt); ok && !m.isEmptyStmt(ifStmt.Else) && isFlowStmt(lastStmt(if…
124 ifStmt.Else = nil
[all …]
/dports/textproc/minify/minify-2.9.22/js/
H A Dstmtlist.go13 ifStmt.Cond = unaryExpr.X
14 ifStmt.Body, ifStmt.Else = ifStmt.Else, ifStmt.Body
20 ifStmt.Body = m.optimizeStmt(ifStmt.Body)
32 ifStmt.Else = m.optimizeStmt(ifStmt.Else)
39 ifStmt.Body = m.optimizeStmt(ifStmt.Body)
40 ifStmt.Else = m.optimizeStmt(ifStmt.Else)
52 X: ifStmt.Cond,
62 return ifStmt
116 …if ifStmt, ok := list[i].(*js.IfStmt); ok && !m.isEmptyStmt(ifStmt.Else) && isFlowStmt(lastStmt(if…
124 ifStmt.Else = nil
[all …]
/dports/www/miniflux/v2-2.0.35/vendor/github.com/tdewolff/minify/v2/js/
H A Dstmtlist.go13 ifStmt.Cond = unaryExpr.X
14 ifStmt.Body, ifStmt.Else = ifStmt.Else, ifStmt.Body
20 ifStmt.Body = m.optimizeStmt(ifStmt.Body)
32 ifStmt.Else = m.optimizeStmt(ifStmt.Else)
39 ifStmt.Body = m.optimizeStmt(ifStmt.Body)
40 ifStmt.Else = m.optimizeStmt(ifStmt.Else)
52 X: ifStmt.Cond,
62 return ifStmt
116 …if ifStmt, ok := list[i].(*js.IfStmt); ok && !m.isEmptyStmt(ifStmt.Else) && isFlowStmt(lastStmt(if…
124 ifStmt.Else = nil
[all …]
/dports/editors/libreoffice6/libreoffice-6.4.7.2/compilerplugins/clang/
H A Dflatten.cxx95 if (!WalkUpFromIfStmt(ifStmt)) { in TraverseIfStmt()
99 mElseBranch = ifStmt->getElse(); in TraverseIfStmt()
188 if (ignoreLocation(ifStmt)) in VisitIfStmt()
192 if (ifStmt == mElseBranch || (ifStmt->getElse() && isa<IfStmt>(ifStmt->getElse()))) in VisitIfStmt()
196 if (!ifStmt->getElse() in VisitIfStmt()
202 if (!rewriteLargeIf(ifStmt)) in VisitIfStmt()
213 if (!ifStmt->getElse()) in VisitIfStmt()
233 if (ifStmt != lastStmtInCompoundStmt && containsVarDecl(ifStmt->getThen())) in VisitIfStmt()
236 if (!rewrite1(ifStmt)) in VisitIfStmt()
255 if (ifStmt != lastStmtInCompoundStmt && containsVarDecl(ifStmt->getElse())) in VisitIfStmt()
[all …]
H A Demptyif.cxx67 bool EmptyIf::VisitIfStmt(IfStmt const* ifStmt) in VisitIfStmt() argument
69 if (ignoreLocation(ifStmt)) in VisitIfStmt()
72 if (ifStmt->getElse() && empty(ifStmt->getElse()) && !ContainsComment(ifStmt->getElse())) in VisitIfStmt()
75 compat::getBeginLoc(ifStmt->getElse())) in VisitIfStmt()
76 << ifStmt->getElse()->getSourceRange(); in VisitIfStmt()
80 if (!ifStmt->getElse() && empty(ifStmt->getThen()) && !ContainsComment(ifStmt->getThen())) in VisitIfStmt()
82 report(DiagnosticsEngine::Warning, "empty if body", compat::getBeginLoc(ifStmt)) in VisitIfStmt()
83 << ifStmt->getSourceRange(); in VisitIfStmt()
H A Dcollapseif.cxx44 bool CollapseIf::VisitIfStmt(IfStmt const* ifStmt) in VisitIfStmt() argument
46 if (ignoreLocation(ifStmt)) in VisitIfStmt()
48 if (ifStmt->getElse()) in VisitIfStmt()
64 secondIfStmt = dyn_cast<IfStmt>(ifStmt->getThen()); in VisitIfStmt()
69 int noChars1 = getNoCharsInSourceCodeOfExpr(ifStmt); in VisitIfStmt()
76 if (containsComment(ifStmt)) in VisitIfStmt()
80 compat::getBeginLoc(ifStmt)) in VisitIfStmt()
81 << noChars1 << noChars2 << ifStmt->getSourceRange(); in VisitIfStmt()
85 int CollapseIf::getNoCharsInSourceCodeOfExpr(IfStmt const* ifStmt) in getNoCharsInSourceCodeOfExpr() argument
91 SourceLocation startLoc = compat::getBeginLoc(ifStmt); in getNoCharsInSourceCodeOfExpr()
[all …]
H A Dsimplifydynamiccast.cxx48 bool SimplifyDynamicCast::TraverseIfStmt(IfStmt* ifStmt) in TraverseIfStmt() argument
50 auto condExpr = ifStmt->getCond()->IgnoreParenImpCasts(); in TraverseIfStmt()
76 ifVec.push_back(ifStmt); in TraverseIfStmt()
78 bool ret = RecursiveASTVisitor::TraverseIfStmt(ifStmt); in TraverseIfStmt()
108 auto ifStmt = ifVec[idx]; in VisitCXXStaticCastExpr() local
109 report(DiagnosticsEngine::Note, "if here", compat::getBeginLoc(ifStmt)) in VisitCXXStaticCastExpr()
110 << ifStmt->getSourceRange(); in VisitCXXStaticCastExpr()
/dports/editors/libreoffice/libreoffice-7.2.6.2/compilerplugins/clang/
H A Demptyif.cxx67 bool EmptyIf::VisitIfStmt(IfStmt const* ifStmt) in VisitIfStmt() argument
69 if (ignoreLocation(ifStmt)) in VisitIfStmt()
72 if (ifStmt->getElse() && empty(ifStmt->getElse()) && !ContainsComment(ifStmt->getElse())) in VisitIfStmt()
75 compat::getBeginLoc(ifStmt->getElse())) in VisitIfStmt()
76 << ifStmt->getElse()->getSourceRange(); in VisitIfStmt()
80 if (!ifStmt->getElse() && empty(ifStmt->getThen()) && !ContainsComment(ifStmt->getThen())) in VisitIfStmt()
82 report(DiagnosticsEngine::Warning, "empty if body", compat::getBeginLoc(ifStmt)) in VisitIfStmt()
83 << ifStmt->getSourceRange(); in VisitIfStmt()
H A Dflatten.cxx95 if (!WalkUpFromIfStmt(ifStmt)) { in TraverseIfStmt()
99 mElseBranch = ifStmt->getElse(); in TraverseIfStmt()
188 if (ignoreLocation(ifStmt)) in VisitIfStmt()
192 if (ifStmt == mElseBranch || (ifStmt->getElse() && isa<IfStmt>(ifStmt->getElse()))) in VisitIfStmt()
196 if (!ifStmt->getElse() in VisitIfStmt()
202 if (!rewriteLargeIf(ifStmt)) in VisitIfStmt()
213 if (!ifStmt->getElse()) in VisitIfStmt()
233 if (ifStmt != lastStmtInCompoundStmt && containsVarDecl(ifStmt->getThen())) in VisitIfStmt()
236 if (!rewrite1(ifStmt)) in VisitIfStmt()
255 if (ifStmt != lastStmtInCompoundStmt && containsVarDecl(ifStmt->getElse())) in VisitIfStmt()
[all …]
H A Dcollapseif.cxx44 bool CollapseIf::VisitIfStmt(IfStmt const* ifStmt) in VisitIfStmt() argument
46 if (ignoreLocation(ifStmt)) in VisitIfStmt()
48 if (ifStmt->getElse()) in VisitIfStmt()
64 secondIfStmt = dyn_cast<IfStmt>(ifStmt->getThen()); in VisitIfStmt()
69 int noChars1 = getNoCharsInSourceCodeOfExpr(ifStmt); in VisitIfStmt()
76 if (containsComment(ifStmt)) in VisitIfStmt()
80 compat::getBeginLoc(ifStmt)) in VisitIfStmt()
81 << noChars1 << noChars2 << ifStmt->getSourceRange(); in VisitIfStmt()
85 int CollapseIf::getNoCharsInSourceCodeOfExpr(IfStmt const* ifStmt) in getNoCharsInSourceCodeOfExpr() argument
91 SourceLocation startLoc = compat::getBeginLoc(ifStmt); in getNoCharsInSourceCodeOfExpr()
[all …]
H A Dsimplifydynamiccast.cxx48 bool SimplifyDynamicCast::TraverseIfStmt(IfStmt* ifStmt) in TraverseIfStmt() argument
50 auto condExpr = ifStmt->getCond()->IgnoreParenImpCasts(); in TraverseIfStmt()
76 ifVec.push_back(ifStmt); in TraverseIfStmt()
78 bool ret = RecursiveASTVisitor::TraverseIfStmt(ifStmt); in TraverseIfStmt()
108 auto ifStmt = ifVec[idx]; in VisitCXXStaticCastExpr() local
109 report(DiagnosticsEngine::Note, "if here", compat::getBeginLoc(ifStmt)) in VisitCXXStaticCastExpr()
110 << ifStmt->getSourceRange(); in VisitCXXStaticCastExpr()
/dports/dns/dnscrypt-proxy2/dnscrypt-proxy-2.1.1/vendor/github.com/mgechev/revive/rule/
H A Dindent-error-flow.go37 ifStmt, ok := node.(*ast.IfStmt)
38 if !ok || ifStmt.Else == nil {
41 if w.ignore[ifStmt] {
42 if elseif, ok := ifStmt.Else.(*ast.IfStmt); ok {
47 if elseif, ok := ifStmt.Else.(*ast.IfStmt); ok {
51 if _, ok := ifStmt.Else.(*ast.BlockStmt); !ok {
55 if len(ifStmt.Body.List) == 0 {
59 if ifStmt.Init != nil {
60 if as, ok := ifStmt.Init.(*ast.AssignStmt); ok && as.Tok == token.DEFINE {
64 lastStmt := ifStmt.Body.List[len(ifStmt.Body.List)-1]
[all …]
H A Dsuperfluous-else.go50 ifStmt, ok := node.(*ast.IfStmt)
51 if !ok || ifStmt.Else == nil {
54 if w.ignore[ifStmt] {
55 if elseif, ok := ifStmt.Else.(*ast.IfStmt); ok {
60 if elseif, ok := ifStmt.Else.(*ast.IfStmt); ok {
64 if _, ok := ifStmt.Else.(*ast.BlockStmt); !ok {
68 if len(ifStmt.Body.List) == 0 {
72 if ifStmt.Init != nil {
73 if as, ok := ifStmt.Init.(*ast.AssignStmt); ok && as.Tok == token.DEFINE {
82 lastStmt := ifStmt.Body.List[len(ifStmt.Body.List)-1]
[all …]
/dports/lang/solidity/solidity_0.8.11/test/tools/ossfuzz/
H A DprotoToSol.cpp58 Whiskers ifStmt(R"(if (<cond>)<endl><ind>return 1;)"); in generateTestCase() local
62 ifStmt("cond", ifCond.render()); in generateTestCase()
63 ifStmt("endl", "\n"); in generateTestCase()
64 ifStmt("ind", "\t\t\t"); in generateTestCase()
65 test("ifStmt", ifStmt.render()); in generateTestCase()
93 Whiskers ifStmt(R"(if (<cond>)<endl><ind>return <errorCode>;)"); in generateTestCase() local
98 ifStmt("endl", "\n"); in generateTestCase()
99 ifStmt("cond", ifCond.render()); in generateTestCase()
100 ifStmt("ind", "\t\t\t"); in generateTestCase()
101 ifStmt("errorCode", to_string(errorCode)); in generateTestCase()
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/build/build-clang/
H A Dbug-1606630-if_constexpr.patch9 - Finder->addMatcher(ifStmt().bind("if"), this);
11 + ifStmt(unless(allOf(isConstexpr(), isInTemplateInstantiation())))
25 - Finder->addMatcher(ifStmt(hasElse(stmt())).bind("if"), this);
27 + ifStmt(allOf(hasElse(stmt()),
32 compoundStmt(has(stmt(anyOf(ifStmt(), forStmt(), whileStmt()))))
/dports/dns/dnscrypt-proxy2/dnscrypt-proxy-2.1.1/vendor/github.com/nakabonne/nestif/
H A Dnestif.go56 ifStmt, ok := n.(*ast.IfStmt)
61 c.checkIf(ifStmt, fset)
97 ifStmt, ok := n.(*ast.IfStmt)
102 v.incComplexity(ifStmt)
104 ast.Walk(v, ifStmt.Body)
107 switch t := ifStmt.Else.(type) {
/dports/multimedia/navidrome/navidrome-0.40.0/vendor/github.com/kunwardeep/paralleltest/tools/vendor/github.com/nakabonne/nestif/
H A Dnestif.go56 ifStmt, ok := n.(*ast.IfStmt)
61 c.checkIf(ifStmt, fset)
97 ifStmt, ok := n.(*ast.IfStmt)
102 v.incComplexity(ifStmt)
104 ast.Walk(v, ifStmt.Body)
107 switch t := ifStmt.Else.(type) {
/dports/multimedia/navidrome/navidrome-0.40.0/vendor/github.com/nakabonne/nestif/
H A Dnestif.go56 ifStmt, ok := n.(*ast.IfStmt)
61 c.checkIf(ifStmt, fset)
97 ifStmt, ok := n.(*ast.IfStmt)
102 v.incComplexity(ifStmt)
104 ast.Walk(v, ifStmt.Body)
107 switch t := ifStmt.Else.(type) {
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/proposals/
H A DExtractToNullCheckedLocalProposal.java154 public void insertIfStatement(IfStatement ifStmt, Block thenBlock) { in insertIfStatement() argument
156 this.blockRewrite.replace(this.origStmt, ifStmt, this.group); in insertIfStatement()
166 public void insertIfStatement(IfStatement ifStmt, Block thenBlock) { in insertIfStatement() argument
176 super.insertIfStatement(ifStmt, thenBlock); in insertIfStatement()
199 public void insertIfStatement(IfStatement ifStmt, Block thenBlock) { in insertIfStatement() argument
201 this.block.statements().add(ifStmt); in insertIfStatement()
260 IfStatement ifStmt= ast.newIfStatement(); in getRewrite() local
267 ifStmt.setExpression(nullCheck); in getRewrite()
272 ifStmt.setThenStatement(thenBlock); in getRewrite()
290 ifStmt.setElseStatement(elseBlock); in getRewrite()
[all …]
/dports/dns/dnscrypt-proxy2/dnscrypt-proxy-2.1.1/vendor/github.com/go-critic/go-critic/checkers/
H A DnilValReturn_checker.go43 ifStmt, ok := stmt.(*ast.IfStmt)
44 if !ok || len(ifStmt.Body.List) != 1 {
47 ret, ok := ifStmt.Body.List[0].(*ast.ReturnStmt)
51 expr, ok := ifStmt.Cond.(*ast.BinaryExpr)
H A DsloppyReassign_checker.go34 ifStmt := astcast.ToIfStmt(stmt)
35 assign := astcast.ToAssignStmt(ifStmt.Init)
46 body := ifStmt.Body.List
63 if !astequal.Expr(ifStmt.Cond, eqToNil) {
/dports/multimedia/navidrome/navidrome-0.40.0/vendor/github.com/kunwardeep/paralleltest/tools/vendor/github.com/go-critic/go-critic/checkers/
H A DnilValReturn_checker.go43 ifStmt, ok := stmt.(*ast.IfStmt)
44 if !ok || len(ifStmt.Body.List) != 1 {
47 ret, ok := ifStmt.Body.List[0].(*ast.ReturnStmt)
51 expr, ok := ifStmt.Cond.(*ast.BinaryExpr)
H A DsloppyReassign_checker.go34 ifStmt := astcast.ToIfStmt(stmt)
35 assign := astcast.ToAssignStmt(ifStmt.Init)
46 body := ifStmt.Body.List
63 if !astequal.Expr(ifStmt.Cond, eqToNil) {
/dports/multimedia/navidrome/navidrome-0.40.0/vendor/github.com/go-critic/go-critic/checkers/
H A DnilValReturn_checker.go43 ifStmt, ok := stmt.(*ast.IfStmt)
44 if !ok || len(ifStmt.Body.List) != 1 {
47 ret, ok := ifStmt.Body.List[0].(*ast.ReturnStmt)
51 expr, ok := ifStmt.Cond.(*ast.BinaryExpr)
H A DsloppyReassign_checker.go34 ifStmt := astcast.ToIfStmt(stmt)
35 assign := astcast.ToAssignStmt(ifStmt.Init)
46 body := ifStmt.Body.List
63 if !astequal.Expr(ifStmt.Cond, eqToNil) {

12345678910>>...30