summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-format/clang-format-sublime.py
Commit message (Collapse)AuthorAgeFilesLines
* [ClangFormat] Editor integrations inherit default style from clang-format binarySam McCall2019-05-171-2/+4
| | | | | | | | | | | | | | | | Summary: This allows downstream customizations to the default style to work without needing to also modify the editor integrations. Reviewers: ilya-biryukov Reviewed By: ilya-biryukov Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D49719 llvm-svn: 360996
* Portable Python script across Python versionSerge Guelton2018-12-181-1/+1
| | | | | | | | Make scripts more future-proof by importing most __future__ stuff. Differential Revision: https://reviews.llvm.org/D55208 llvm-svn: 349504
* clang-format: Enable #include sorting by default.Daniel Jasper2015-11-161-1/+1
| | | | | | | | | This has seen quite some usage and I am not aware of any issues. Also add a style option to enable/disable include sorting. The existing command line flag can from now on be used to override whatever is set in the style. llvm-svn: 253202
* clang-format: Add include sorting capabilities to sublime, emacs andDaniel Jasper2015-10-071-1/+1
| | | | | | clang-format-diff.py. llvm-svn: 249567
* Py3k compat for clang-format Sublime Text extension.Sean Silva2013-11-081-1/+2
| | | | | | | | | | | | Sublime Text 2 uses Python 2.6 Sublime Text 3 uses Python 3.3 The `print` function has been available as a __future__ import since 2.6, so use it. Patch by Johan Engelen! llvm-svn: 194287
* clang-format: Add -assume-filename option for editor integrations.Daniel Jasper2013-09-131-12/+12
| | | | | | | | | | | | | | With -style=file, clang-format now starts to search for a .clang-format file starting at the file given with -assume-filename if it reads from stdin. Otherwise, it would start searching from the current directory, which is not helpful for editor integrations. Also changed vim, emacs and sublime integrations to actually make use of this flag. This fixes llvm.org/PR17072. llvm-svn: 190691
* Allow _clang-format as alternative to .clang-format config filenameHans Wennborg2013-09-101-1/+2
| | | | | | | | | | | Dotfiles are impractical on Windows. This makes clang-format search for the style configuration file as '_clang-format' in addition to the usual '.clang-format'. This is similar to how VIM searches for '_vimrc' on Windows. Differential Revision: http://llvm-reviews.chandlerc.com/D1629 llvm-svn: 190413
* Switch the default mode for clang-format to '-file'. Make 'LLVM' theChandler Carruth2013-09-021-3/+4
| | | | | | | | | | | | | | | | | | | fallback syntax used when we fail to find a '.clang-format' file. Adjust variable names appropriately. Update the editor integration pieces that specify a '-style' option to specify it as '-style=file'. I left the functionality in place because even if the preferred method is to use '.clang-format' files, this way if someone needs to clobber the style in their editor we show how to do so in these examples. Also check in a '.clang-format' file for Clang to ensure that separate checkouts and builds of Clang from LLVM can still get the nice formatting. =] This unfortunately required nuking the test for the absence of a '.clang-format' file as now the directory happening to be under your clang source tree will cause there to always be a file. ;] llvm-svn: 189741
* Add basic clang-format integration for sublime text.Daniel Jasper2013-05-161-0/+55
llvm-svn: 182015
OpenPOWER on IntegriCloud