New issue
Advanced search Search tips

Issue 599462 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Feature



Sign in to add a comment

GN analysis: Better advice-to-developer on visibility errors

Project Member Reported by markdittmer@chromium.org, Mar 31 2016

Issue description

Following up from discussion here: https://groups.google.com/a/chromium.org/forum/#!topic/gn-dev/43HKY99h8Mw

The feature request is the following work flow:

1. A #includes "b" in B.
2. B is not visible to A.
3. As we do today, if there' a path (with missing "public"), print it -- this is very helpful :)
4. Also answer the query: "What is the shortest public path from B to a target that is visible to A?" This should not be an expensive operation. Remember, B's visibility is limited! I would expect this path to be of length 1 or 2 in most cases. (A hidden source set is contained by an exposing component).
5. It might also be useful to print a comment above the "visibility" annotation in the gn file.
 

Sign in to add a comment