title: C++20 modules - how to get their file names?
body: <p>My aim is to build a simple c++ parser which collects the name of every struct / class in a c++ program.</p>
  <p>The problem is concerning c++20 modules. Consider the following code:</p>
  <pre><code>import module-name;
  </code></pre>
  <p>How can my parser know where the module originated from and collect the name of structs /classes?</p>
  <p>Had it been an #include directive my parser would just parse the given file name...</p>
  <p>Is there any way to get the relevant file names for a given module?</p>