History log of /external/clang/tools/clang-format/clang-format.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
33337ca4d89605025818daf83390ab4271d598d9 06-May-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master clang for rebase to r235153

Change-Id: Ia94bbcb6da7c75b6e7c2afedd1001094d62a7324
/external/clang/tools/clang-format/clang-format.py
176edba5311f6eff0cad2631449885ddf4fbc9ea 01-Dec-2014 Stephen Hines <srhines@google.com> Update aosp/master Clang for rebase to r222490.

Change-Id: Ic557ac55e97fbf6ee08771c7b7c3594777b0aefd
/external/clang/tools/clang-format/clang-format.py
6bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89 29-May-2014 Stephen Hines <srhines@google.com> Update Clang for 3.5 rebase (r209713).

Change-Id: I8c9133b0f8f776dc915f270b60f94962e771bc83
/external/clang/tools/clang-format/clang-format.py
651f13cea278ec967336033dd032faef0e9fc2ec 24-Apr-2014 Stephen Hines <srhines@google.com> Updated to Clang 3.5a.

Change-Id: I8127eb568f674c2e72635b639a3295381fe8af82
/external/clang/tools/clang-format/clang-format.py
73e9431d545cdbb8b61d1c9e7930832162e6011f 25-Oct-2013 Nico Weber <nicolasweber@gmx.de> clang-format.py: Make formatting unnamed buffers work again (broke in r190691).



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193433 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.py
62df7ef28c5a1ed3f5ffd1036162cafe0e1fcd4c 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 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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190691 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.py
9a7a50eef777765e4d20e3b1f3670b32582114fb 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 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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190413 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.py
439fc85f4663810984962a8346d000be79df6bdc 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 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. ;]

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189741 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.py
4626a20b2d46a3a8ea17d265dff220c5a02700d8 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 reversed
order should fix this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186840 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.py
0e295f3051bf32b00dea0e56113a8925ba198b53 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
better fix for the performance problem in conjunction with
'foldmethod=syntax' (see r186660).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186789 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.py
3727c8f1f6636f5cde069488a974881658ae9c0d 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>).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186740 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.py
7248217fb2ff9c010e0f06e07032702191479616 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 case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186660 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.py
57e68474b1879ca06360adc6eaf8d547ab0dd157 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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183654 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.py
6bd3b93200c6ae141d0f7444ffb4cacd52b183ed 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 means, after formatting, clang-format will try to keep the
cursor on the same character of the same token.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182373 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.py
63911838bf7891445ff39fdc7f81d1469d54f5c1 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 defaults style in clang-format-diff.py.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179098 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.py
7c4a9a04b4b2a44259b34078434e087987872095 20-Mar-2013 Daniel Jasper <djasper@google.com> Add clang-format binary to cfe.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177506 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.py