[clang] [llvm] Ast importer visitors (PR #138838)

Balázs Kéri via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 20 01:27:00 PDT 2025


================
@@ -1363,6 +1364,26 @@ extern const internal::VariadicDynCastAllOfMatcher<Decl, CXXDeductionGuideDecl>
 extern const internal::VariadicDynCastAllOfMatcher<Decl, ConceptDecl>
     conceptDecl;
 
+/// Matches concept requirement.
+///
+/// Example matches requirement expression
+/// \code
+///   template<typename T>
+///   concept dereferencable = requires(T p) { *p; }
+/// \endcode
+extern const internal::VariadicDynCastAllOfMatcher<Expr, RequiresExpr>
+    requiresExpr;
+
+/// Matches concept requirement body declaration.
+///
+/// Example matches equirement body declaration
----------------
balazske wrote:

It is better to tell exactly the matching part (`{ *p; }` if correct).

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


More information about the llvm-commits mailing list