Skip to content

[Format] Character of width 1 not considered so #58850

@JohelEGP

Description

@JohelEGP

.clang-format:

AlignConsecutiveAssignments: Consecutive
ColumnLimit: 120

Input and expected output:

inline constexpr quantity rotational_displacement = {"ϑ", [] { return path_length / radius; }};
inline constexpr quantity angular_velocity        = {"ω", [] { return (rotational_displacement / duration) * vector; }};

Actual output:

inline constexpr quantity rotational_displacement = {"ϑ", [] { return path_length / radius; }};
inline constexpr quantity angular_velocity = {"ω", [] { return (rotational_displacement / duration) * vector; }};

Replacing ω with w makes it format as expected:

inline constexpr quantity rotational_displacement = {"ϑ", [] { return path_length / radius; }};
inline constexpr quantity angular_velocity        = {"w", [] { return (rotational_displacement / duration) * vector; }};

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions