[clang] Add concepts for Structured buffers (PR #119643)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 19 10:30:20 PST 2024


================
@@ -868,8 +868,54 @@ static Expr *constructTypedBufferConstraintExpr(Sema &S, SourceLocation NameLoc,
   return TypedResExpr;
 }
 
-static ConceptDecl *constructTypedBufferConceptDecl(Sema &S,
-                                                    NamespaceDecl *NSD) {
+static Expr *constructStructuredBufferConstraintExpr(Sema &S,
+                                                     SourceLocation NameLoc,
+                                                     TemplateTypeParmDecl *T) {
----------------
bogner wrote:

It would be nice to have a comment that spells out this expression in C++ so that it's easy to understand what exactly we're constructing here.

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


More information about the cfe-commits mailing list