summaryrefslogtreecommitdiff
path: root/clang/test/Format/cursor.cpp
AgeCommit message (Collapse)Author
2015-11-23Fix clang-format test. I believe that the new behavior is better.Daniel Jasper
llvm-svn: 253861
2015-10-19clang-format: Use pipes instead of temporary files for most lit tests.Nico Weber
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
2015-05-10Reapply r236854 and fixed r236867.Daniel Jasper
Makes emacs show a different message when clang-format encountered a syntax error. llvm-svn: 236943
2015-05-08Revert "Make emacs show when clang-format encountered a syntax error."Tobias Grosser
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
2015-05-08Make emacs show when clang-format encountered a syntax error.Manuel Klimek
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
2013-05-21Let clang-format move the cursor appropriately.Daniel Jasper
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