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

            Bug ID: 36457
           Summary: Wrong Output for AllowShortFunctionsOnASingleLine when
                    ColumnLimit changes
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

Formatting the file with the config below:
----------------
class A{
#ifndef ASD
        A<bool>& GetMask() { return a; }
        const A<bool>& GetMask() const { return a; }
#endif
};
----------------
results in weird behavior when:
ColumnLimit: 0
is changed to
ColumnLimit: 500
which should not make any difference.




ColumnLimit: 0
---------------
class A
{
#ifndef ASD
        A<bool>& GetMask()
        {
                return a;
        }
        const A<bool>& GetMask() const { return a; }
#endif
};
--------------


ColumnLimit: 500
-------------
class A
{
#ifndef ASD
        A<bool>& GetMask() { return a; }
        const A<bool>& GetMask() const { return a; }
#endif
};
------------

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to