Skip to content

[clang-format] regional style options #154546

@yshui

Description

@yshui

We already have a way to control clang-format from within the code itself:

// clang-format off
// clang-format on

Which disable all formatting. This is a very big hammer, sometimes I just want to disable certain formatting options, or just change how something is formatted for a chunk of code.

I think it would be nice if we can specify clang-format style options in code annotations.

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