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: unassignedclangb...@nondot.org
Reporter: mikhail.matro...@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs