[llvm-bugs] [Bug 28545] New: clang-format breaks line within type for long variable name

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 13 18:06:01 PDT 2016


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

            Bug ID: 28545
           Summary: clang-format breaks line within type for long variable
                    name
           Product: new-bugs
           Version: 3.8
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: schnetter at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

clang-format 3.8.0 (OS X, MacPorts) produces this line break for a C++ file:
{{{
extern "C" char const
    *const OpenCL_source_OpenCLRunTime_test_attribute_opencl_unroll_hint;
}}}

I argue that the line break should not be within the type {{{char const
*const}}}; it should either be before the type (after {{{extern "C"}}}) or
after the type (just before the variable name).

-- 
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/20160714/52d76fd6/attachment.html>


More information about the llvm-bugs mailing list