[cfe-dev] Clang-format Sublime Text Plugin

Neumann, Adrian adrian.neumann at siemens.com
Thu Aug 6 02:05:55 PDT 2015


Hello,

the clang-format sublime text plugin doesn't work reliably, because Sublime 
Text's self.view.encoding() doesn't return values that are compatible with 
buf.encode. I attach a version that does a manual conversion between these 
values. I don't know whether Sublime Text provides a better API for this, but 
cursory googling did not reveal anything.

Greets,

Adrian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: clang-format-sublime.py
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150806/c639ea42/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 8804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150806/c639ea42/attachment.bin>


More information about the cfe-dev mailing list