[clang] [Clang][ASTMatchers] Make `hasConditionVariableStatement` support `for` loop, `while` loop and `switch` statement (PR #154298)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 19 07:16:58 PDT 2025


================
@@ -322,6 +322,9 @@ AST Matchers
 - Add a boolean member ``IgnoreSystemHeaders`` to ``MatchFinderOptions``. This
   allows it to ignore nodes in system headers when traversing the AST.
 
+- ``hasConditionVariableStatement`` now supports ``for`` loop, ``while`` loop
+  and ``switch`` statement.
----------------
AaronBallman wrote:

```suggestion
  and ``switch`` statements.
```

https://github.com/llvm/llvm-project/pull/154298


More information about the cfe-commits mailing list