Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Column Limit = 0 and Comment Alignement not working #37072

Open Quuxplusone opened 6 years ago

Quuxplusone commented 6 years ago
Bugzilla Link PR38099
Status NEW
Importance P enhancement
Reported by gabyx (gnuetzi@gmail.com)
Reported on 2018-07-09 00:44:48 -0700
Last modified on 2018-07-09 00:47:19 -0700
Version trunk
Hardware PC Windows NT
CC djasper@google.com, klimek@google.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments _clang-format (3461 bytes, text/plain)
Blocks
Blocked by
See also
Format the following Code (with ColumnLimit: 0) :

enum EFlags : uint32_t
{
    eA    = 1 << 0, /*!< Some multiine comment
                         Some multiline comment, bla bla bla bla */
    eA    = 1 << 98127398172391723, /*!< Some multiine comment
                                         Some multiline comment, bla bla bla bla */
};

results in
enum EFlags : uint32_t
{
    eA = 1 << 0,                 /*!< Some multiine comment
                         Some multiline comment, bla bla bla bla */
    eA = 1 << 98127398172391723, /*!< Some multiine comment
                                         Some multiline comment, bla bla bla bla */
};

Where as (ColumnLimit>0, here 500)
Results in

enum EFlags : uint32_t
{
    eA = 1 << 0,                 /*!< Some multiine comment
                                      Some multiline comment, bla bla bla bla */
    eA = 1 << 98127398172391723, /*!< Some multiine comment
                                      Some multiline comment, bla bla bla bla */
};

There is something different going on for ColumnLimit:0 and I thing it should
look like the last resut.
Quuxplusone commented 6 years ago

Attached _clang-format (3461 bytes, text/plain): SettingFile

Quuxplusone commented 6 years ago

current version 7.0