[llvm-bugs] [Bug 27554] New: clang-format should sort headers case-insensitively

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 28 08:55:39 PDT 2016


            Bug ID: 27554
           Summary: clang-format should sort headers case-insensitively
           Product: clang
           Version: 3.8
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kaya at bekiroglu.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

It would be nice if clang-format had the option to sort headers
case-insensitively.  While I realize that case insensitivity is a bit hard to
define over the entire UTF-8 space, it is at least well defined for the Roman

I often have to incorporate headers from multiple modules, some of which have
capitalized headers.  Instead of:

#include "Foo.h"
#include "bar.h"

... I would like clang-format to ideally produce:

#include "bar.h"
#include "Foo.h"

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/20160428/da2f901d/attachment.html>

More information about the llvm-bugs mailing list