[llvm-bugs] [Bug 27042] New: clang-format sorts includes even in files where it should be disabled completely

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 23 10:05:00 PDT 2016


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

            Bug ID: 27042
           Summary: clang-format sorts includes even in files where it
                    should be disabled completely
           Product: clang
           Version: 3.8
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: skomik at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

I have the following settings for third-party code:

---
DisableFormat: true
...

clang-format 3.8.0 ignores this option and still sorts includes, although it's
expected to be disabled completely and that it won't change files with the
above settings.

Now I have to explicitly disable sorting to workaround this issue.

---
DisableFormat: true
SortIncludes: false
...

-- 
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/20160323/e7054c81/attachment.html>


More information about the llvm-bugs mailing list