Revision tags: llvmorg-3.5.2, llvmorg-3.5.2-rc1, llvmorg-3.6.0, llvmorg-3.6.0-rc4, llvmorg-3.6.0-rc3, llvmorg-3.6.0-rc2, llvmorg-3.6.0-rc1, llvmorg-3.5.1, llvmorg-3.5.1-rc2, llvmorg-3.5.1-rc1 |
|
#
20bc4b0f |
| 04-Nov-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix vim integration if g:clang_format_binary doesn't exist
llvm-svn: 221254
|
#
4d195ed4 |
| 02-Nov-2014 |
Saleem Abdulrasool <compnerd@compnerd.org> |
clang-format: permit setting the path to clang in vimrc
If g:clang_format_path is set in the vimrc, that path will take precedence over the hard coded path (which is reliant on the PATH environment
clang-format: permit setting the path to clang in vimrc
If g:clang_format_path is set in the vimrc, that path will take precedence over the hard coded path (which is reliant on the PATH environment variable). This provides an easy mechanism for switching the selected clang-format binary during development.
llvm-svn: 221108
show more ...
|
#
8bbed0b6 |
| 02-Nov-2014 |
Saleem Abdulrasool <compnerd@compnerd.org> |
docs: remove double carriage-return
The double carriage return would silence a warning due to a missing .clang-format. Permit the error to bubble through.
llvm-svn: 221107
|
#
1f060a85 |
| 27-Oct-2014 |
Saleem Abdulrasool <compnerd@compnerd.org> |
clang-format: improve vim integration docs
Improve the documentation for vim integration of clang-format. Prefer the use of <c-o> to do the normal mode command execution to avoid side-effects of th
clang-format: improve vim integration docs
Improve the documentation for vim integration of clang-format. Prefer the use of <c-o> to do the normal mode command execution to avoid side-effects of the escape and re-insertion (cursor movement). Tweak the macros to use a double return to avoid having to manually return control to the editor from the subprocess.
llvm-svn: 220685
show more ...
|
Revision tags: llvmorg-3.5.0, llvmorg-3.5.0-rc4, llvmorg-3.5.0-rc3, llvmorg-3.5.0-rc2, llvmorg-3.5.0-rc1 |
|
#
62f73ec1 |
| 22-May-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix vim-integration for empty files.
Discovered by Ahmed Charles in http://reviews.llvm.org/D3018.
llvm-svn: 209417
|
Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1, llvmorg-3.4.1, llvmorg-3.4.1-rc2 |
|
#
ffaf29a0 |
| 17-Apr-2014 |
Nico Weber <nicolasweber@gmx.de> |
clang-format.py: Don't omit the first two words from error messages.
This reverts r172072. clang-format used to use DiagnosticEngine to output errors: http://llvm.org/viewvc/llvm-project?view=revis
clang-format.py: Don't omit the first two words from error messages.
This reverts r172072. clang-format used to use DiagnosticEngine to output errors: http://llvm.org/viewvc/llvm-project?view=revision&revision=172071. Now it doesn't, so this code is obsolete.
llvm-svn: 206479
show more ...
|
Revision tags: llvmorg-3.4.1-rc1 |
|
#
f9e1e5f8 |
| 10-Mar-2014 |
Ahmed Charles <ahmedcharles@gmail.com> |
Add a main function to the clang-format.py vim integration.
This will allow using an early return statement in a subsequent change.
llvm-svn: 203501
|
Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1 |
|
#
8bdd1ee0 |
| 25-Oct-2013 |
Nico Weber <nicolasweber@gmx.de> |
clang-format.py: Make formatting unnamed buffers work again (broke in r190691).
llvm-svn: 193433
|
#
e488f5dd |
| 13-Sep-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Add -assume-filename option for editor integrations.
With -style=file, clang-format now starts to search for a .clang-format file starting at the file given with -assume-filename if it
clang-format: Add -assume-filename option for editor integrations.
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
show more ...
|
#
9f6581bb |
| 10-Sep-2013 |
Hans Wennborg <hans@hanshq.net> |
Allow _clang-format as alternative to .clang-format config filename
Dotfiles are impractical on Windows. This makes clang-format search for the style configuration file as '_clang-format' in additio
Allow _clang-format as alternative to .clang-format config filename
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
show more ...
|
#
bc36e6e0 |
| 02-Sep-2013 |
Chandler Carruth <chandlerc@gmail.com> |
Switch the default mode for clang-format to '-file'. Make 'LLVM' the fallback syntax used when we fail to find a '.clang-format' file. Adjust variable names appropriately.
Update the editor integrat
Switch the default mode for clang-format to '-file'. Make 'LLVM' the 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
show more ...
|
#
8e2c20a7 |
| 22-Jul-2013 |
Daniel Jasper <djasper@google.com> |
Fix bug in clang-format's vim integration cause by r186789.
After the first operation, the buffer contents has changed and thus all other operations would be invalid. Executing the operations in rev
Fix bug in clang-format's vim integration cause by r186789.
After the first operation, the buffer contents has changed and thus all other operations would be invalid. Executing the operations in reversed order should fix this.
llvm-svn: 186840
show more ...
|
#
68c03c82 |
| 21-Jul-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Smarter replacement in the vim integration.
With this fix, only changed regions will be replaced in vim's buffer. Thereby, marks should mostly be left intact. Furthermore, this is a be
clang-format: Smarter replacement in the vim integration.
With this fix, only changed regions will be replaced in vim's buffer. Thereby, marks should mostly be left intact. Furthermore, this is a better fix for the performance problem in conjunction with 'foldmethod=syntax' (see r186660).
llvm-svn: 186789
show more ...
|
#
5884aa96 |
| 20-Jul-2013 |
Alexander Kornienko <alexfh@google.com> |
Use -lines option instead of -offset/-length. This fixes problems with files using dos newlines (<CR><LF>).
llvm-svn: 186740
|
#
b11c2c28 |
| 19-Jul-2013 |
Daniel Jasper <djasper@google.com> |
Improve clang-format vim integration.
The previous line-by-line replacement causes vim to take a long time if the foldmethod is set to 'syntax'. This should significantly improve performance in that
Improve clang-format vim integration.
The previous line-by-line replacement causes vim to take a long time if the foldmethod is set to 'syntax'. This should significantly improve performance in that case.
llvm-svn: 186660
show more ...
|
Revision tags: llvmorg-3.3.1-rc1 |
|
#
99dfe95b |
| 10-Jun-2013 |
Reid Kleckner <reid@kleckner.net> |
[clang-format] Don't flash an ugly cmd prompt in Vim on Windows
Reviewers: klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D941
llvm-svn: 183654
|
Revision tags: llvmorg-3.3.0, llvmorg-3.3.0-rc3, llvmorg-3.3.0-rc2 |
|
#
2a250b8b |
| 21-May-2013 |
Daniel Jasper <djasper@google.com> |
Let clang-format move the cursor appropriately.
With this patch, clang-format will try to keep the cursor at the original code position in editor integrations (implemented for emacs and vim). This m
Let clang-format move the cursor appropriately.
With this patch, clang-format will try to keep the cursor at the original code position in editor integrations (implemented for emacs and vim). This means, after formatting, clang-format will try to keep the cursor on the same character of the same token.
llvm-svn: 182373
show more ...
|
Revision tags: llvmorg-3.3.0-rc1 |
|
#
e4549a23 |
| 09-Apr-2013 |
Daniel Jasper <djasper@google.com> |
Improvements to clang-format integrations.
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
Improvements to clang-format integrations.
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
show more ...
|
#
9be2c5cf |
| 20-Mar-2013 |
Daniel Jasper <djasper@google.com> |
Add clang-format binary to cfe.
llvm-svn: 177506
|