[llvm-bugs] [Bug 44502] New: Includes are sorted by ASCII code, not alphabetically
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jan 9 08:47:19 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44502
Bug ID: 44502
Summary: Includes are sorted by ASCII code, not alphabetically
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: mikhail.matrosov at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Consider this snippet:
#include <boost/algorithm/string.hpp>
#include <GL/GLU.h>
#include <boost/algorithm/string/split.hpp>
If I sort includes with clang-format, I have this order:
#include <GL/GLU.h>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/split.hpp>
Which satisfies order on ASCII codes of the includes. However, I'd expect the
alphabetical order:
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/split.hpp>
#include <GL/GLU.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/20200109/46fe74d5/attachment.html>
More information about the llvm-bugs
mailing list