@@ -3536,9 +3536,9 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
35363536</ pre > </ td > </ tr >
35373537
35383538
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.
35423542
35433543Example matches true (matcher = hasCondition(cxxBoolLiteral(equals(true))))
35443544 if (true) {}
@@ -4293,7 +4293,7 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
42934293
42944294< 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 >
42954295< 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.
42974297
42984298Example matches true (matcher = hasCondition(cxxBoolLiteral(equals(true))))
42994299 if (true) {}
@@ -4476,7 +4476,7 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
44764476
44774477< 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 >
44784478< 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.
44804480
44814481Example matches true (matcher = hasCondition(cxxBoolLiteral(equals(true))))
44824482 if (true) {}
@@ -4554,7 +4554,7 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
45544554
45554555< 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 >
45564556< 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.
45584558
45594559Example matches true (matcher = hasCondition(cxxBoolLiteral(equals(true))))
45604560 if (true) {}
@@ -5052,6 +5052,15 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
50525052</ pre > </ td > </ tr >
50535053
50545054
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+
50555064< 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 >
50565065< tr > < td colspan ="4 " class ="doc " id ="hasDeclaration4 "> < pre > Matches a node if the declaration associated with that node
50575066matches the given matcher.
@@ -5385,7 +5394,7 @@ <h2 id="traversal-matchers">AST Traversal Matchers</h2>
53855394
53865395< 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 >
53875396< 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.
53895398
53905399Example matches true (matcher = hasCondition(cxxBoolLiteral(equals(true))))
53915400 if (true) {}
0 commit comments