<div dir="ltr">> 
When trying out the new LLVM Visual Studio integration extension [1]<br>
that now supports VS 2017, we learned that at some point, VS changed<br><div>
the editor to encode new project files as utf-16 by default [2]. <br></div><div><br></div><div>The editor is not doing much in this case, as far as I can see. When creating a new project VS uses project templates, they contain those files pch.h and main.cpp pch.cpp etc in UTF-16, it's those templates that have the problem.</div><div><br></div><div>Apparently someones' editor saved them to UTF-16 at some point (15.4), after which this problem has arisen. If I add a new source file by choosing add new item from solution explorer it creates an ansi file (with CF/LF line-endings), not UTF-16 (at least on my machine).<br></div><div><br></div><div>It also seems from the comments on that bug-report being presented as a feature that not many peops are happy with it. Some comment states:</div><div><br></div><div>
UTF-16 doesn't work well with most compilers, especially cross platform.
<br>UTF-16 doesn't work well with SVN. 
<br>UTF-16 doesn't work well with GIT. <br></div><div><br></div><div>someone else notes clang-tidy would need to change as well.<br></div><div><br></div><div>which seem good enough reasons for MS to me to revert it (i.e. re-save the files in the templates as ansi files, and problem is gone).<br></div><div><br></div><div>To summarize, I would not change clang.<br></div><div><br></div><div>degski<br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><i><b>"If something cannot go on forever, it will stop" - Herbert Stein</b></i><br></div></div></div>