summaryrefslogtreecommitdiffstats
path: root/clang/test/Format/cursor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix clang-format test. I believe that the new behavior is better.Daniel Jasper2015-11-231-1/+1
| | | | llvm-svn: 253861
* clang-format: Use pipes instead of temporary files for most lit tests.Nico Weber2015-10-191-3/+2
| | | | | | | | | | | | | | | This makes the format tests look more like most other FileCheck tests in clang. The multiple-inputs tests still use temp files, to make sure that the file input code in clang-format stays tested. Stop stripping out the comment lines in style-on-command-line.cpp as they don't get in the way and it makes the test simpler. Also remove 2>&1s on the tests in that file that don't need it. http://reviews.llvm.org/D13852 llvm-svn: 250706
* Reapply r236854 and fixed r236867.Daniel Jasper2015-05-101-1/+1
| | | | | | | Makes emacs show a different message when clang-format encountered a syntax error. llvm-svn: 236943
* Revert "Make emacs show when clang-format encountered a syntax error."Tobias Grosser2015-05-081-1/+1
| | | | | | | | | | | This reverts commit 236854, which caused clang-format to always print '{ "IncompleteFormat": false }' at the top of an incompletely formatted file. This output causes problems e.g. in Polly's automatic formatting checks. Daniel tried to fix this in 236867, but this fix had to be reverted due to buildbot failures. I revert this change as well for now as it is Friday night and unlikely to be fixed immediately. llvm-svn: 236908
* Make emacs show when clang-format encountered a syntax error.Manuel Klimek2015-05-081-1/+1
| | | | | | | Propagate the 'incomplete-format' state back through clang-format's command line interace and adapt the emacs integration to show a better result. llvm-svn: 236854
* Let clang-format move the cursor appropriately.Daniel Jasper2013-05-211-0/+6
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
OpenPOWER on IntegriCloud