[llvm-branch-commits] [clang-tools-extra] [clang-doc] add support for concepts (PR #144430)

Paul Kirth via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jun 20 10:00:55 PDT 2025


================
@@ -211,6 +214,15 @@ struct TemplateSpecializationInfo {
   std::vector<TemplateParamInfo> Params;
 };
 
+struct ConstraintInfo {
+  ConstraintInfo() = default;
+  ConstraintInfo(SymbolID USR, StringRef Name)
+      : ConceptRef(USR, Name, InfoType::IT_concept) {}
+  Reference ConceptRef;
+
+  SmallString<16> Expression; // The expression that defines the constraint.
----------------
ilovepi wrote:

Maybe just name it `ConstraintExpr`?

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


More information about the llvm-branch-commits mailing list