[PATCH] Add customizable clang-format options variable

Syohei Yoshida via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 15 02:45:10 PDT 2015


Hi.

At r249567, '-sort-includes' option is set to clang-format-region
command in clang-format.el. This option can be used only with
development version clang-format. and users get error if they use old
version clang-format. And I suppose clang-format options should not be
hard corded and should be customizable.

This attached patch adds customize variable about clang-format options
and its default value is '("-sort-includes") if users use clang-format
3.8 or higher, while it is nil if not.

Regards.

See also
  - https://github.com/syl20bnr/spacemacs/issues/3408 (older
clang-format user's issue)

-- 
Syohei YOSHIDA(syohex at gmail.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: customizable-options.patch
Type: text/x-patch
Size: 2485 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151015/dabc5c0e/attachment.bin>


More information about the cfe-commits mailing list