[libcxx-commits] [clang] [libcxx] [Clang] Add __common_type builtin (PR #99473)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 25 03:04:21 PDT 2024


================
@@ -1599,13 +1599,66 @@ createTypePackElementParameterList(const ASTContext &C, DeclContext *DC) {
                                        nullptr);
 }
 
+static TemplateParameterList *createCommonTypeList(const ASTContext &C,
+                                                   DeclContext *DC) {
+  // class... Args
+  auto *Args = TemplateTypeParmDecl::Create(
+      C, DC, {}, {}, /*Depth=*/1, /*Position=*/0, /*Id=*/nullptr,
+      /*Typename=*/false, /*ParameterPack=*/true);
+  Args->setImplicit();
----------------
philnik777 wrote:

Turns out this actually hides the arguments from the diagnostic message, so I think none of them should be implicit.

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


More information about the libcxx-commits mailing list