-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorbugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang-format
Description
Bugzilla Link | 49402 |
Version | 11.0 |
OS | All |
Extended Description
Input:
$ cat test.cc
template <template <typename> class A,
template <typename> class B,
typename C,
typename D>
struct TemplatedClass {};
Output for Mozilla style:
$ clang-format --style=Mozilla test.cc
template<template<typename> class A,
template<typename>
class B,
typename C,
typename D>
struct TemplatedClass
{};
Output for Chromium style:
$ clang-format --style=Chromium test.cc
template <template <typename> class A,
template <typename>
class B,
typename C,
typename D>
struct TemplatedClass {};
One might have expected "template " and "class B" to be on the same line, as is the case with the first template template parameter.
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorbugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang-format