[llvm-bugs] [Bug 28203] New: clang-format treats white space in #include list a little strangely with includecategories

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 20 04:11:48 PDT 2016


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

            Bug ID: 28203
           Summary: clang-format treats white space in #include list a
                    little strangely with includecategories
           Product: clang
           Version: 3.8
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ttanner2 at bloomberg.net
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

For instance 

    #include "b"

    #include "a"

because of the white space, doesn't get resorted (assuming appropriate
categories) to

    #include "a"
    #include "b"

People randomly putting blank lines in #includes is not that uncommon, sadly.

It'd be really really nice if you could also specify a category should have a
blank line output before the contents of the category.

-- 
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/20160620/2701cc7a/attachment.html>


More information about the llvm-bugs mailing list