diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h index 48ce5aa2bdfa1..a7221dfbfb091 100644 --- a/clang/include/clang/Format/Format.h +++ b/clang/include/clang/Format/Format.h @@ -4085,6 +4085,40 @@ struct FormatStyle { /// \version 22 NumericLiteralCaseStyle NumericLiteralCase; + /// Whether to rewrite ``typename`` / ``class`` in template parameter lists. + /// + /// \code + /// Leave: template void f(); // unchanged + /// UseTypename: template void f(); + /// UseClass: template void f(); + /// \endcode + /// + /// This applies to template declarations such as ``template ``, + /// ``template