This is a follow-up patch to r286354. This patch avoids the -Wshadow warning for variables which shadow variables that aren't captured by lambdas with a default capture specifier. It provides an additional note that points to location of the capture.
The old behaviour is preserved with -Wshadow-all.
This fixes PR 21426 fully.