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

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy readability-static-accessed-through-instance doesn't recognize expressions that are macro arguments
        </td>
    </tr>

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

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

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

<pre>
    If a static is accessed through an instance pointer in an expression that is in a macro argument, readability-static-accessed-through-instance doesn't recognize it.

In our code base, the static was accessed through an instance variable in an assert macro.  I thought it might have been because the analysis was done on a release build, but even a debug build didn't recognize the static accessed through the instance in the argument to the assertion macro.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykks1u2zAQhJ-GuixkSJScWAcd0gYGDPQlluRGYkGTBnfl1Hn6gpKTFOmhh170w8Fy5iMHmf0UiUa1_6b2zxUuMqc8_qAJg3-jJ7cEmVNylUnuNp5eAIEFxVvwDGgtMZMDmXNaphkwgo8sGC3BJfkolMHHsky_LpmYfYogM0qZLgKc0eYEmKflTFGU_g6Z0KHxwcut3qzqd5_67lN_mLhEHJV-FMhk0xT9G4GXnWqeVfO0PU8R0pLBJkdgkKl4yEzvGK_4D44rZo8m0B0EmSnLlnsHcAKZy4iAFzj78jHjlcAQRTBkcWFa7TBiuLHn1dClSJAKf6ZAyARm8cGVaGYRoCsVzZFZpk0B591Xzj8g_gIo2geBj1uC-yGDpO1_JSk3ssFUbuzc0A1Y0dg-POrDw77bD9U8Dg8HtLa1xure7F9ac9BtR8ZiN7SdMbbyo25017RNr5t-aIfd0DvSXUPDcOj6x-6g-obO6MMuhOt5l_JUeeaFxv1w6HQV0FDgtYFaR3qFVVRal0LmsczUZplY9U3wLPy5i3gJNNqAcarFu9v_l-ezp7wVFTN9KSlXSw7jLHJh1T0pfVT6OHmZF7Oz6az0scS7v-pLTj_JitLHFYqVPq7QvwMAAP__Wzs10g">