[cfe-dev] clang-format bug with u8 character literal

via cfe-dev cfe-dev at lists.llvm.org
Fri Mar 10 11:09:16 PST 2017


Hi all,

clang-format does not work well with character literal u8 ' c-char '. Example

clang-format <<END
auto c1 = u8'a';
auto c2 = u'a';
END

Produces

auto c1 = u8 'a';
auto c2 = u'a';

As you can see clang-format adds an additional space between u8 and 'a'.

clang-format --version
clang-format version 4.0.0 (http://llvm.org/git/clang.git 559aa046fe3260d8640791f2249d7b0d458b5700) (http://llvm.org/git/llvm.git 4423e351176a92975739dd4ea43c2ff5877236ae)

Not sure if this is the best place to report a bug.

Thanks,
Denis Gladkikh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170310/df699878/attachment.html>


More information about the cfe-dev mailing list