Add GN split_list function.

This function splits a list into N sub-lists. The plan is to use this in a template to automatically split static libraries.

Add a new class ParseNodeValueAdapter which allows getting a list out of a function call without having to copy it. This is used in the new code and is used in a cleanup of rebase_foreach (both of which can take large input lists).

Review-Url: https://codereview.chromium.org/2095043005
Cr-Original-Commit-Position: refs/heads/master@{#402555}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c0ff88647c120f24203e50f7886f8e01a163c511
8 files changed
tree: d2e0ac070105ad1155848b8bdfd667e0f0cf5d35
  1. tools/