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.el
|
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.el
|
ac2bfd812e298dcc975efd9ec614c6cda65df197 |
|
11-Jun-2013 |
Manuel Klimek <klimek@google.com> |
Make it possible to assign clang-format-buffer to a keybinding. Patch by Chris Gray. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183739 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.el
|
02fb58096b32676c5d1dda2e75d1e88055abf896 |
|
21-May-2013 |
Daniel Jasper <djasper@google.com> |
Fix off-by-one error in clang-format's emacs integration. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182395 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.el
|
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.el
|
748d38fcf762727e143ceb2352dc0dae56b34ffa |
|
14-May-2013 |
Daniel Jasper <djasper@google.com> |
Update clang-format emacs integration. - 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! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181766 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.el
|
8c39a1d1eabb42d8f35cada47ad9d4d87f98cb1d |
|
07-May-2013 |
Daniel Jasper <djasper@google.com> |
Further fix to clang-format emacs integration. This is just a slight improvement for the fix in r181299, which fixes formatting the very last line of a file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181303 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.el
|
8ee617e56492fc1c68f6dc115b20ead9c04c2fe1 |
|
07-May-2013 |
Daniel Jasper <djasper@google.com> |
Fix clang-format emacs integration in last line. 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181299 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.el
|
f1ed9febdd4bc4746c2a9fdaa0700014900b1326 |
|
25-Apr-2013 |
Daniel Jasper <djasper@google.com> |
Fix scrolling bug in clang-format's emacs integration. This patch ensure that nothing scrolls even if the same buffer is opened in multiple windows. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180252 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.el
|
a50b57862b99bdd7d056014f429a809647257c8b |
|
17-Apr-2013 |
Daniel Jasper <djasper@google.com> |
Small improvements to clang-format documentation and integration scripts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179676 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.el
|
c6d82ca9b28c39a988afd06a6359e09df033b846 |
|
12-Apr-2013 |
Daniel Jasper <djasper@google.com> |
Provide better emacs integration. 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179372 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/tools/clang-format/clang-format.el
|
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.el
|