Throw errors for nested targets in GN.

People sometimes nest targets or configs, usually with the assumption that
this limits the visibility of a config to within a target. But this nesting
provides no visibility restrictions over declaring it outside of a block.

For clarity, force certain types of blocks to be non-nested.

Adds missing ordering documentation to the ldflags variable.

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

Cr-Original-Commit-Position: refs/heads/master@{#348186}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a88eb18a5cb883cbde7a1e055958642a8dafb4ac
6 files changed
tree: 447de1ac1aa7d87427f74137af4c75b61e4c114d
  1. tools/