| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 182015
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: +updated ClangFormat.rst
Reviewers: djasper, klimek
Reviewed By: klimek
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D780
llvm-svn: 181617
|
|
|
|
| |
llvm-svn: 181593
|
|
|
|
| |
llvm-svn: 181591
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
This is just a slight improvement for the fix in r181299, which fixes
formatting the very last line of a file.
llvm-svn: 181303
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Thanks to Avi Drissman!
llvm-svn: 180933
|
|
|
|
|
|
|
| |
This patch ensure that nothing scrolls even if the same buffer is opened
in multiple windows.
llvm-svn: 180252
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
scripts.
llvm-svn: 179676
|
|
|
|
| |
llvm-svn: 179377
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
The styles are now documented with the -style option. This fixes
llvm.org/PR15689.
llvm-svn: 179017
|
|
llvm-svn: 177506
|