[libc++] graph_header_deps.py: Update the computing of "root" (public) headers.
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Sat, 5 Jun 2021 16:47:30 +0000 (12:47 -0400)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Sat, 5 Jun 2021 16:47:30 +0000 (12:47 -0400)
commit11e0882e8dde1ab7eeda0ccef620d81b12f30086
tree65da714d8aab86e5126d4d22e49d5697949e2447
parent469d18c06446259aaaa8ec57f1548b1a42691512
[libc++] graph_header_deps.py: Update the computing of "root" (public) headers.

The "root nodes" of the graph are displayed in bold. My intent here
was to bold just the public-API headers, e.g. <vector> and
<experimental/coroutine> and <stdlib.h>, but not helper headers
such as <__functional_base> and <__iterator/next.h>. However,
the recent mass helper-header-ification has exposed defects in
this logic: all the new helpers were ending up bolded! Fix this.
Also, add <__undef_macros> to the list of headers we don't display
by default (like <__config>); it's not interesting to see those edges.

Also, add a sample `dot` command line to the `--help` text.
libcxx/utils/graph_header_deps.py