<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/76045>76045</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang] clang sometimes parses std::vector as int
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ibequa
      </td>
    </tr>
</table>

<pre>
    I'm using clang to build an AST tree of my C++ header files. When checking a type spelling from a Cursor (say, FIELD_DECL) in some header files, clang returns int instead of expected std::vector, although the #include <vector> seems to be there.
It seems that this problem reproduces randomly.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcUs2OnDwQfBpzaS2C5m85cJidGaSR9vZ9Uo6RsXuwE4OJ215l3j6CnShKTpbVVeVyVUtmO69Eg2jeRHPJZIrGh8FO9CPJbPL6MdwEdgsktusMysl1huhhStZpkCuc_vsfYiACf4flAWeBbwLfwJDUFOBuHXEOXwytoAyp77uIhPjYCHgj5_b7PfgFJJxTYB9A4CvLh8AzjLfr--Xr5Xp-F9iDXYH9Qn8p76hPS4FiCiuDXSPYlSNJvTuinxupSBo4alGdRHX6IBV92InSRePTbCAaAoGVXZVLmkBU5yeougITLXx8mHZcoFwUF1GcbvH3yMgI0ViGLfjJ0QKBtuB1UsQQ5Kr94h55podK91UvMxrKrqiKrsG6zMxQv_adbOpGlbpvG0X42tZSl9ROrZ6qos3sgAVWJWJRInZY5n2LqlVUaGxkjVSLuqBFWpc797HkPsyZZU40dG1RN5mTEzk-2kU8ohKIe9Fh2PEvU5pZ1IWzHPmPQrTRHSvxyWguz5T3AqJdiGGTgYn_jRXk0UCWghtMjBvvQxwFjrONJk258ovAcX_nebxswX8jFQWOh20WOB7OfwUAAP__kkTZ7Q">