gn format: accept input from stdin, add vim helper
commit56d85cbf5bddd6bb9b68104a9f30af2b215a6e27
authorscottmg <scottmg@chromium.org>
Fri, 3 Oct 2014 22:52:11 +0000 (3 15:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 3 Oct 2014 22:52:24 +0000 (3 22:52 +0000)
treef2f12d0e4c6e35703ff29c9471bdff10a3411afa
parent1c28072cfdcbfbb27bafe384e739877ee74b3831
gn format: accept input from stdin, add vim helper

Also add test for empty function call (which was asserting
with invalid iterator).

R=brettw@chromium.org
BUG=348474

Review URL: https://codereview.chromium.org/626093003

Cr-Commit-Position: refs/heads/master@{#298106}
tools/gn/bin/gn-format.py [new file with mode: 0644]
tools/gn/command_format.cc
tools/gn/command_format_unittest.cc
tools/gn/format_test_data/024.gn [new file with mode: 0644]
tools/gn/format_test_data/024.golden [new file with mode: 0644]