[clang] [Clang][AST] Track whether template template parameters used the 'typename' keyword (PR #88139)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 11 08:36:37 PDT 2024


================
@@ -1581,26 +1581,33 @@ class TemplateTemplateParmDecl final
       DefaultArgStorage<TemplateTemplateParmDecl, TemplateArgumentLoc *>;
   DefArgStorage DefaultArgument;
 
+  /// Whether this template template parameter was declaration with
+  /// the 'typename' keyword.
+  ///
+  /// If false, it was declared with the 'class' keyword.
+  bool Typename : 1;
----------------
erichkeane wrote:

Corentin's point is relevant here, you can't really use 'bool' in these (and should use the PREFERRED_TYPE or whatever attribute) thanks to some versions of MSVC we support.

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


More information about the cfe-commits mailing list