summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-format
Commit message (Collapse)AuthorAgeFilesLines
...
* Add basic clang-format integration for sublime text.Daniel Jasper2013-05-161-0/+55
| | | | llvm-svn: 182015
* Update clang-format emacs integration.Daniel Jasper2013-05-141-15/+29
| | | | | | | | | | - Remove free variables - Add function clang-format-buffer, e.g. for before-save-hooks - Wrap restoring windows in an unwind-protect Patch by Stephen Gildea! llvm-svn: 181766
* Reformat clang-format help strings, filter out irrelevant options.Alexander Kornienko2013-05-101-27/+52
| | | | | | | | | | | | | | Summary: +updated ClangFormat.rst Reviewers: djasper, klimek Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D780 llvm-svn: 181617
* Updated clang-format help messages for -offset and -lengthAlexander Kornienko2013-05-101-7/+13
| | | | llvm-svn: 181593
* Minor clarifications in help messages and a comment.Alexander Kornienko2013-05-101-2/+4
| | | | llvm-svn: 181591
* Config file support for clang-format, part 2.Alexander Kornienko2013-05-101-14/+50
| | | | | | | | | | | | | | | | | | | | Summary: Adds actual config file reading to the clang-format utility. Configuration file name is .clang-format. It is looked up for each input file in its parent directories starting from immediate one. First found .clang-format file is used. When using standard input, .clang-format is searched starting from the current directory. Added -dump-config option to easily create configuration files. Reviewers: djasper, klimek Reviewed By: klimek CC: cfe-commits, jordan_rose, kimgr Differential Revision: http://llvm-reviews.chandlerc.com/D758 llvm-svn: 181589
* Further fix to clang-format emacs integration.Daniel Jasper2013-05-071-1/+1
| | | | | | | This is just a slight improvement for the fix in r181299, which fixes formatting the very last line of a file. llvm-svn: 181303
* Fix clang-format emacs integration in last line.Daniel Jasper2013-05-071-2/+2
| | | | | | | | Emacs seems to have a line that is just past the last character of the buffers content. This needs to be handled specially so that clang-format is not called with an invalid -offset. llvm-svn: 181299
* Added Mozilla style, cleaned get*Style methods.Alexander Kornienko2013-05-061-2/+7
| | | | | | | | | | | | | | Summary: Patch based on a patch by Ehsan Akhgari. Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D750 llvm-svn: 181196
* Basic clang-format integration for BBEdit.Daniel Jasper2013-05-021-0/+27
| | | | | | Thanks to Avi Drissman! llvm-svn: 180933
* Fix scrolling bug in clang-format's emacs integration.Daniel Jasper2013-04-251-5/+9
| | | | | | | This patch ensure that nothing scrolls even if the same buffer is opened in multiple windows. llvm-svn: 180252
* clang-format support for multiple input files.Alexander Kornienko2013-04-241-20/+57
| | | | | | | | | | | | | | | | | | | Summary: Added support for multiple input files, that can be used both with and without in-place edit (-i) option. Added checks for -offset and -length options: don't allow them on multiple files, check that they don't fall outside input file, made both options unsigned, so that there's no need to check for negative values. Removed "-1 can be used for end-of-file" from -length description. Reviewers: djasper, klimek Reviewed By: djasper CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D719 llvm-svn: 180185
* Small improvements to clang-format documentation and integrationDaniel Jasper2013-04-172-8/+9
| | | | | | scripts. llvm-svn: 179676
* Fix clang-format-diff.py script.Daniel Jasper2013-04-121-1/+1
| | | | llvm-svn: 179377
* Provide better emacs integration.Daniel Jasper2013-04-121-33/+13
| | | | | | | | | | | The new emacs integration is simpler, does not save the current file before reformatting and ensures that emacs does not scroll as a result of formatting. Also explicitly set the style in clang-format tests to make them more robust. llvm-svn: 179372
* Improvements to clang-format integrations.Daniel Jasper2013-04-093-6/+58
| | | | | | | | This adds an emacs editor integration (thanks to Ami Fischman). Also pulls out the style into a variable for the vi integration and just uses clang-formats defaults style in clang-format-diff.py. llvm-svn: 179098
* Remove outdated part of help message.Daniel Jasper2013-04-081-1/+0
| | | | | | | The styles are now documented with the -style option. This fixes llvm.org/PR15689. llvm-svn: 179017
* Add clang-format binary to cfe.Daniel Jasper2013-03-205-0/+368
llvm-svn: 177506
OpenPOWER on IntegriCloud