@@ -3536,9 +3536,9 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
3536
3536
</ pre > </ td > </ tr >
3537
3537
3538
3538
3539
- < tr > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1AbstractConditionalOperator.html "> AbstractConditionalOperator</ a > ></ td > < td class ="name " onclick ="toggle('hasCondition4 ') "> < a name ="hasCondition4Anchor "> hasCondition</ a > </ td > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1Expr.html "> Expr</ a > > InnerMatcher</ td > </ tr >
3540
- < tr > < td colspan ="4 " class ="doc " id ="hasCondition4 "> < pre > Matches the condition expression of an if statement, for loop,
3541
- or conditional operator.
3539
+ < tr > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1AbstractConditionalOperator.html "> AbstractConditionalOperator</ a > ></ td > < td class ="name " onclick ="toggle('hasCondition5 ') "> < a name ="hasCondition5Anchor "> hasCondition</ a > </ td > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1Expr.html "> Expr</ a > > InnerMatcher</ td > </ tr >
3540
+ < tr > < td colspan ="4 " class ="doc " id ="hasCondition5 "> < pre > Matches the condition expression of an if statement, for loop,
3541
+ switch statement or conditional operator.
3542
3542
3543
3543
Example matches true (matcher = hasCondition(cxxBoolLiteral(equals(true))))
3544
3544
if (true) {}
@@ -4293,7 +4293,7 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
4293
4293
4294
4294
< tr > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1DoStmt.html "> DoStmt</ a > ></ td > < td class ="name " onclick ="toggle('hasCondition3') "> < a name ="hasCondition3Anchor "> hasCondition</ a > </ td > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1Expr.html "> Expr</ a > > InnerMatcher</ td > </ tr >
4295
4295
< tr > < td colspan ="4 " class ="doc " id ="hasCondition3 "> < pre > Matches the condition expression of an if statement, for loop,
4296
- or conditional operator.
4296
+ switch statement or conditional operator.
4297
4297
4298
4298
Example matches true (matcher = hasCondition(cxxBoolLiteral(equals(true))))
4299
4299
if (true) {}
@@ -4476,7 +4476,7 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
4476
4476
4477
4477
< tr > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1ForStmt.html "> ForStmt</ a > ></ td > < td class ="name " onclick ="toggle('hasCondition1') "> < a name ="hasCondition1Anchor "> hasCondition</ a > </ td > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1Expr.html "> Expr</ a > > InnerMatcher</ td > </ tr >
4478
4478
< tr > < td colspan ="4 " class ="doc " id ="hasCondition1 "> < pre > Matches the condition expression of an if statement, for loop,
4479
- or conditional operator.
4479
+ switch statement or conditional operator.
4480
4480
4481
4481
Example matches true (matcher = hasCondition(cxxBoolLiteral(equals(true))))
4482
4482
if (true) {}
@@ -4554,7 +4554,7 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
4554
4554
4555
4555
< tr > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1IfStmt.html "> IfStmt</ a > ></ td > < td class ="name " onclick ="toggle('hasCondition0') "> < a name ="hasCondition0Anchor "> hasCondition</ a > </ td > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1Expr.html "> Expr</ a > > InnerMatcher</ td > </ tr >
4556
4556
< tr > < td colspan ="4 " class ="doc " id ="hasCondition0 "> < pre > Matches the condition expression of an if statement, for loop,
4557
- or conditional operator.
4557
+ switch statement or conditional operator.
4558
4558
4559
4559
Example matches true (matcher = hasCondition(cxxBoolLiteral(equals(true))))
4560
4560
if (true) {}
@@ -5052,6 +5052,15 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
5052
5052
</ pre > </ td > </ tr >
5053
5053
5054
5054
5055
+ < tr > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1SwitchStmt.html "> SwitchStmt</ a > ></ td > < td class ="name " onclick ="toggle('hasCondition4') "> < a name ="hasCondition4Anchor "> hasCondition</ a > </ td > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1Expr.html "> Expr</ a > > InnerMatcher</ td > </ tr >
5056
+ < tr > < td colspan ="4 " class ="doc " id ="hasCondition4 "> < pre > Matches the condition expression of an if statement, for loop,
5057
+ switch statement or conditional operator.
5058
+
5059
+ Example matches true (matcher = hasCondition(cxxBoolLiteral(equals(true))))
5060
+ if (true) {}
5061
+ </ pre > </ td > </ tr >
5062
+
5063
+
5055
5064
< tr > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1TagType.html "> TagType</ a > ></ td > < td class ="name " onclick ="toggle('hasDeclaration4') "> < a name ="hasDeclaration4Anchor "> hasDeclaration</ a > </ td > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1Decl.html "> Decl</ a > > InnerMatcher</ td > </ tr >
5056
5065
< tr > < td colspan ="4 " class ="doc " id ="hasDeclaration4 "> < pre > Matches a node if the declaration associated with that node
5057
5066
matches the given matcher.
@@ -5385,7 +5394,7 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
5385
5394
5386
5395
< tr > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1WhileStmt.html "> WhileStmt</ a > ></ td > < td class ="name " onclick ="toggle('hasCondition2') "> < a name ="hasCondition2Anchor "> hasCondition</ a > </ td > < td > Matcher<< a href ="http://clang.llvm.org/doxygen/classclang_1_1Expr.html "> Expr</ a > > InnerMatcher</ td > </ tr >
5387
5396
< tr > < td colspan ="4 " class ="doc " id ="hasCondition2 "> < pre > Matches the condition expression of an if statement, for loop,
5388
- or conditional operator.
5397
+ switch statement or conditional operator.
5389
5398
5390
5399
Example matches true (matcher = hasCondition(cxxBoolLiteral(equals(true))))
5391
5400
if (true) {}
0 commit comments