<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi all,</div><div class=""><br class=""></div><div class="">clang-format does not work well with character literal u8 ' c-char '. Example</div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">clang-format <<END</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">auto c1 = u8'a';</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">auto c2 = u'a';</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">END</span></div></div><div class=""><br class=""></div><div class="">Produces</div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">auto c1 = u8 'a';</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);"><span class="" style="font-variant-ligatures: no-common-ligatures;">auto c2 = u'a';</span></div></div><div class=""><br class=""></div><div class="">As you can see clang-format adds an additional space between u8 and 'a'.</div><div class=""><br class=""></div><div class=""><div class="">clang-format --version</div><div class="">clang-format version 4.0.0 (<a href="http://llvm.org/git/clang.git" class="">http://llvm.org/git/clang.git</a> 559aa046fe3260d8640791f2249d7b0d458b5700) (<a href="http://llvm.org/git/llvm.git" class="">http://llvm.org/git/llvm.git</a> 4423e351176a92975739dd4ea43c2ff5877236ae)</div></div><div class=""><br class=""></div><div class="">Not sure if this is the best place to report a bug.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Denis Gladkikh</div></body></html>