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

    <tr>
        <th>Summary</th>
        <td>
            -Wnonnull caret should point to problematic parameter
        </td>
    </tr>

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

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

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

<pre>
    See https://godbolt.org/z/TrsKPbj1G. Right now the caret just points to the end of the function call expression, which makes it really annoying to figure out which parameter(s) are causing the issue. This is related to #25503, which was for Objective-C.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdksuO3CAQRb8Gb1BbNvi5YDGZaLLIIlEyUtaAyzYdDBaP6XS-PmVPopYi2TKlKs6916D8dBffAeia0h4JfyLsBZ_FT8rbVPqwYPUb39cQP39V1_pTSb-ZZU3U-RtNK1AtAyR6zTHR3RuXIk3-bICbqJ_P5ZydTsY7HLaWwq89QIxYE_ZMb6vRK93kT4jUJBoAR-5UOufvxi0HbDZLDkB9Tn-HdxnkBgkCYUMkbKRoAdE5nhtQz8SYoaSvq0FmRKaVCaaDRRhnbVvxh_JNRjr7QL-oK6DJN7g8lwWIuuvapmFDPRST4NPIR1kkkyyIyw_nncsY5D16XH2203v4Q2IPXlnYZDL64bTIwYr__rFJa1al9hsW1r79-1wQcFjB8syBCV_agfW8WAXoemz0PM59x0Y-MF7psWqGvq961c0jK6xUYKMg7QfCmLbSLag3Gbk4H9EQshhpPxZGsIqxuqorRFT1UOpp7CbeKA499LLmpKkwgrHl4ei4BkUQpzmVl4hNa2KKj6bE41wcwCmMfJnT6oOIG4CTpjhziDPEH9OB0Cg">