[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:53 PDT 2025


================
@@ -662,6 +709,14 @@ void addTemplateSpecialization(TemplateInfo *I,
   I->Specialization.emplace(std::move(TSI));
 }
 
+template <typename T> static void addConstraint(T I, ConstraintInfo &&C) {
+  llvm::errs() << "invalid container for constraint info";
+  exit(1);
+}
----------------
ilovepi wrote:

Well, I was going to leave a comment about this, but I see there's already 4 occurrences. These should probably use exit on err, but that should all be handled separately.

I assume this could be rewritten w/ some `constexpr enable_if` magic to be equivalent, but 🤷 most of this code was written when the LLVM codebase was still c++14-only. 

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


More information about the llvm-branch-commits mailing list