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

via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 23 03:03:27 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();
----------------
Sirraide wrote:

Is there a reason some of these template param declaration here are marked as implicit while others aren’t? I would have expected all of them to be marked as implicit.

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


More information about the cfe-commits mailing list