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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs