[llvm-bugs] [Bug 34679] New: Option to sort #includes with fewer components before those with more
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Sep 19 16:35:21 PDT 2017
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: unassignedclangbugs at nondot.org
Reporter: jordan_rose at apple.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170919/c59de67b/attachment.html>
More information about the llvm-bugs
mailing list