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

    <tr>
        <th>Summary</th>
        <td>
            Docs: Say wether clang_Cursor_getOffsetOfField considers alignment
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    I assumed it did, but it looks like it doesn't. At least for a struct field whose type has `clang_Type_getAlignOf` of 8, clang gives me an offset of 116 bytes, but 120 would be correct.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxEkEGPmzAUhH-NuTwtAhtDcvAh3RVSTzm098jgB7hrcOT3nCj_voJttSfLmvHM-LNEft4QjdA_hP4obOYlJnOPTwxhi2m1xRDdy_wES5RXdOAZnHdCvsOQeb-FGD8Jgv_EQ4tIm5Adl3BhCGiJYYoJLBCnPDJMHoOD5xIJgV93hMUSiLYag93m2-_XHW8z8iX4ebtOoq0gTnDa6w4DzP6BBCuC3SBOEyHvhrpuYXgx0v9dtazgGXNwMCCMMSUcuSycUe6szrZAU3d125yUlF2xGKWrVg1T7SY3ntS5s7ob1EnqtsMGtW4Lb2Qlm0pLVbdaNbrEtus6pdtKOhydRdFUuFofyhAeaxnTXHiijOasZK2LYAcMdDCWcsMnHKKQckeezP7mbcgziaYKnpi-U9hzQPMRRxLqAr_sC57IC6YvGrf3nCimHdj1YHGd-gPvGDfyDhOB3UGuuHGRUzAL831PErIXsp89L3kox7gK2e-V_463e4p_cGQh-2MoCdl_feRh5N8AAAD__00RuRo">