This is an archive of the discontinued LLVM Phabricator instance.

clang-format: Use pipes instead of temporary files for most lit tests.
ClosedPublic

Authored by thakis on Oct 18 2015, 5:58 PM.

Details

Reviewers
klimek
djasper
Summary

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.

Diff Detail

Event Timeline

thakis updated this revision to Diff 37713.Oct 18 2015, 5:58 PM
thakis retitled this revision from to clang-format: Use pipes instead of temporary files for most lit tests..
thakis updated this object.
thakis added a reviewer: djasper.
thakis added a subscriber: cfe-commits.
klimek accepted this revision.Oct 19 2015, 3:57 AM
klimek added a reviewer: klimek.

I'd slightly prefer if the commands were still on their own line (via escaped newlines if that's possible), but lg.

This revision is now accepted and ready to land.Oct 19 2015, 3:57 AM
thakis closed this revision.Oct 19 2015, 9:23 AM

Landed in r250706 (with rewrapped lines). Thanks!