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

via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 9 08:50:33 PDT 2024


================
@@ -1634,6 +1640,14 @@ class TemplateTemplateParmDecl final
   using TemplateParmPosition::setPosition;
   using TemplateParmPosition::getIndex;
 
+  /// Whether this template template parameter was declared with
+  /// the 'typename' keyword.
+  bool wasDeclaredWithTypename() const { return Typename; }
----------------
cor3ntin wrote:

We do not have an enum for that yet afaik (ie this is consistent with ActOnTypeParameter).
I would not oppose using an enum everywhere

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


More information about the cfe-commits mailing list