Add documentation on how to search for uses of a starlark macro.
RELNOTES: None
@@ -34,6 +34,8 @@ Packages</a>
package?</a></li>
<li><a href="#What_files_are_generated_by_rule">What files are generated by rules in the <code>foo</code>
package?</a></li>
+<li><a href="#What_targets_are_generated_by_macro"></a>What targets are generated by starlark macro
+<code>foo</code>?</li>
<li><a href="#What_s_the_set_of_BUILD_files_ne">What's the set of BUILD files needed to build
<code>//foo</code>?</a></li>
<li><a href="#What_are_the_individual_tests_th">What are the individual tests that a <code>test_suite</code> expands
@@ -227,6 +229,12 @@ universe of the build.
<pre>bazel query 'kind("generated file", //foo:*)'</pre>
+<p><a name="What_targets_are_generated_by_macro"></a></p>
+
+<h4>What targets are generated by starlark macro <code>foo</code>?</h4>
+
+<pre>bazel query 'attr(generator_function, foo, //path/to/search/...)'</pre>
+
<p><a name="What_s_the_set_of_BUILD_files_ne"></a></p>
<h4>What's the set of BUILD files needed to build <code>//foo</code>?</h4>
