Descriptiongn format: add call wrapping
For function call arguments:
- if all arguments plus ')' fit at current point, insert
- if all arguments fit at current, one per line
- otherwise at minimum of current and margin+4, one per line, recurse into children. Similar for binary expressions so that "a + b" can wrap.
Also, add basic output of AccessorNode + test.
(not as fancy as clang-format, but there's not that many long
function calls in .gn files.)
R=brettw@chromium.org
BUG=348474
Committed: https://crrev.com/8a4459122520cd7d59be4f3b03a2a7eb74344a71
Cr-Commit-Position: refs/heads/master@{#297765}
Patch Set 1 #Patch Set 2 : . #Patch Set 3 : wip on func call formatting #Patch Set 4 : somewhat improved #Patch Set 5 : . #Patch Set 6 : . #Patch Set 7 : make expression wrapping work a bit, test for accessors #
Total comments: 1
Patch Set 8 : 64 #
Messages
Total messages: 12 (4 generated)
|