[llvm-bugs] [Bug 38099] New: Column Limit = 0 and Comment Alignement not working

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 9 00:44:48 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38099

            Bug ID: 38099
           Summary: Column Limit = 0 and Comment Alignement not working
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: gnuetzi at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180709/d3268156/attachment.html>


More information about the llvm-bugs mailing list