gn: Scope-in-list is formatted really badly |
||
Issue description
The Fuchsia team uses scopes in lists. I don't think scopes could be used like that when format was written, but in any case, it doesn't do a good job.
When there's >= 2 it's not too bad:
tests = [
{
name = "elements_test"
},
{
name = "eapol_crypto_test"
},
]
but with only one it's ugly:
tests = [ {
name = "elements_test"
} ]
,
Jan 12 2018
,
Jan 12 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/ccaca184a7ff406d087542101477c94adaf95a3f commit ccaca184a7ff406d087542101477c94adaf95a3f Author: Scott Graham <scottmg@chromium.org> Date: Fri Jan 12 04:18:49 2018 Format update after gn format behavior change https://chromium-review.googlesource.com/c/chromium/src/+/861282 changes the behaviour of scopes-in-list. Bug: 800955 Change-Id: I0b76de1561886a2eec7a74abe1b8d7c7f888f66c Reviewed-on: https://chromium-review.googlesource.com/861256 Reviewed-by: Yuzhu Shen <yzshen@chromium.org> Commit-Queue: Scott Graham <scottmg@chromium.org> Cr-Commit-Position: refs/heads/master@{#528875} [modify] https://crrev.com/ccaca184a7ff406d087542101477c94adaf95a3f/build/config/ios/rules.gni [modify] https://crrev.com/ccaca184a7ff406d087542101477c94adaf95a3f/mojo/public/tools/bindings/blink_bindings_configuration.gni [modify] https://crrev.com/ccaca184a7ff406d087542101477c94adaf95a3f/mojo/public/tools/bindings/chromium_bindings_configuration.gni |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Jan 11 2018