Skip to content

clang-format: C++17 deduction guides are wrongly formatted #34866

@mkurdej

Description

@mkurdej
Bugzilla Link 35518
Resolution FIXED
Resolved on Nov 06, 2019 08:16
Version trunk
OS Windows NT
CC @mkurdej,@elvenfighter,@lichray,@mydeveloperday
Fixed by commit(s) 76ec6b1

Extended Description

The following snippet:

template <class... Ts>
S(Ts...) -> S<Ts...>;

is formatted to:

template <class... Ts>
S(Ts...)->S<Ts...>;

Which seems to me to be wrong as the spaces are missing around -> (arrow operator).

Version: trunk from 2017-11-22.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions