Skip to content

[clang-format] de-indentation of a block comment does not work without ReflowComments #53425

@lahwaacz

Description

@lahwaacz

Consider this repro code:

class A
{
    public:
        /**
         * \brief Some fancy method.
         */
        void foo();
};

When the ReflowComments option is disabled, clang-format breaks the formatting:

$ clang-format --style="{ReflowComments: false}" foo.cpp
class A {
public:
  /**
         * \brief Some fancy method.
         */
  void foo();
};

Tested with clang-format version 13.0.0

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