title: Is there a way to query direct module dependencies with gcc?
body: <p>Given a module</p>
  <pre class="lang-cpp prettyprint-override"><code>// a-m.cc
  export module A;
  
  import B;
  import C;
  
  import &quot;D.h&quot;;
  
  ...
  </code></pre>
  <p>Is there a way of invoking gcc (similar to what -M does for headers) that will list the direct dependencies on other modules and imported headers (i.e. B, C, and &quot;D.h&quot;)?</p>