This is an archive of the discontinued LLVM Phabricator instance.

Use UTF-8 for all communication with clang-format
ClosedPublic

Authored by phst on Jan 19 2017, 8:08 AM.

Details

Summary

Instead of picking the buffer file coding system, always use utf-8-unix for communicating with clang-format. This is fine because clang-format never actually reads the file to be formatted, only standard input. This is a bit simpler (process coding system is now a constant) and potentially faster, as utf-8-unix is Emacs's internal coding system. Also add an end-to-end test that actually invokes clang-format.

Event Timeline

phst created this revision.Jan 19 2017, 8:08 AM
phst updated this revision to Diff 84970.Jan 19 2017, 8:09 AM

Fix comments

klimek accepted this revision.Jan 20 2017, 1:46 AM

lg; thanks!

This revision is now accepted and ready to land.Jan 20 2017, 1:46 AM
phst closed this revision.Jan 20 2017, 1:48 AM