[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
Tue Apr 9 08:30:34 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; }
----------------
erichkeane wrote:
So these should return the syntax of typename and class rather than a bool.
https://github.com/llvm/llvm-project/pull/88139
More information about the cfe-commits
mailing list