https://bugs.llvm.org/show_bug.cgi?id=34739
Bug ID: 34739
Summary: clang-format's include sorter treats 't' as whitespace
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: nicolaswe...@gmx.de
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
Format.cpp contains:
const char IncludeRegexPattern[] =
R"(^[\t\ ]*#[\t\ ]*(import|include)[^"<]*(["<][^">]*[">]))";
However, it looks like llvm's regex library doesn't support "\t", so all these
"\t"s actually end up matching literal t characters.
clang-format will sort
#include "ContinuationIndenter.h"
#tttinclude "NamespaceEndCommentsFixer.h"
#include "FormatTokenLexer.h"
(but it doesn't work with any letters except 't').
--
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