<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - type lookup doesn't work with nested types when using Native PDB reader."
   href="https://bugs.llvm.org/show_bug.cgi?id=40133">40133</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>type lookup doesn't work with nested types when using Native PDB reader.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>zturner@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>aleksandr.urakov@jetbrains.com, llvm-bugs@lists.llvm.org, mosescu@google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>struct S {
  struct NestedStruct {};
};

(lldb) type lookup -- S::NestedStruct

will fail to return any types.

The reason for this is that LLDB parses this and attempts to look up just the
type "NestedStruct".  It expects us to return a list of all types named
NestedStruct, including those which are nested in other structs.  Then, it will
filter this list itself.

Our Native PDB reader already pre-processes the TPI stream when the PDB is
loaded and discovers all nested types, so we have the ability to index nested
types by their basename at no incremental complexity, and this should make it
possible for this to work.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>