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

            Bug ID: 34679
           Summary: Option to sort #includes with fewer components before
                    those with more
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: jordan_r...@apple.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org

Some projects have "top-level" headers and "detail" headers, and in these cases
it usually makes sense to sort the top-level headers first, rather than mixing
them in with the other headers:

#include "swift/Subsystems.h"
#include "swift/AST/Decl.h"
#include "swift/Syntax/Format.h"

The rule here is to sort headers with fewer components before those with more,
though possibly with an exception for headers with *zero* directory components.

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

Reply via email to