summaryrefslogtreecommitdiffstats
path: root/clang/test/Format/ranges.cpp
Commit message (Collapse)AuthorAgeFilesLines
* clang-format: When a line is formatted, also format subsequence lines if ↵Daniel Jasper2015-10-281-5/+5
| | | | | | | | | | | | | | their indent is off. Summary: This is especially important so that if a change is solely inserting a block around a few statements, clang-format-diff.py will still clean up and add indentation to the inner parts. Reviewers: klimek Subscribers: cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D14105 llvm-svn: 251474
* clang-format: Use pipes instead of temporary files for most lit tests.Nico Weber2015-10-191-3/+3
| | | | | | | | | | | | | | | 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
* Provide better emacs integration.Daniel Jasper2013-04-121-1/+1
| | | | | | | | | | | 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. llvm-svn: 179372
* Re-add clang-format tests to clang/test.Daniel Jasper2013-03-251-0/+11
Also now use -strict-whitespace as the tests are confusing otherwise. llvm-svn: 177853
OpenPOWER on IntegriCloud