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

    <tr>
        <th>Summary</th>
        <td>
            update_cc_test_checks --function-signature --check-attributes ignores return type and attributes
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang,
            llvm-tools
      </td>
    </tr>

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

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

<pre>
    The type and return attributes are ignored with {{[^@]+}}, so this is missing part of the story if you're trying to test ABI code:

```
// CFINITEONLY-LABEL: define {{[^@]+}}@defined_func_f32
// CFINITEONLY-SAME: (float noundef nofpclass(nan inf) [[A:%.*]], float noundef nofpclass(nan inf) [[B:%.*]], float noundef nofpclass(nan inf) [[C:%.*]]) #[[ATTR0:[0-9]+]] {
// CFINITEONLY-NEXT:  entry:
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykU12L2zoQ_TXyy-DgjKwkfvBDnA9Y2LsX7s3DvU9BtsaxWkcK0rgl_77Im-0WyhZKYbCxfGZ05swcHaO9OKJaqEaofaYnHnyodYjkrlnrzb0-DQR8vxFoZyAQT8GBZg62nZgi6EBgL84HMvDV8gBi3aRI9Q6iLITaC2zEep8CdxA98GAj2AhXG6N1F7jpwOB74IEgsg93sD3c_SRwHQg43BOIPTBFhm3zBJ03JORWFHtRvD1XxSNeP_Eo8Ai749PL0-nw98vz__nztjk8C7kFQ7119EueZfEKMud-ct25l_hh2X-3fx1SVYGbfvSawfnJGerB-f7WjTpGgRunHVjXC6xgvrDZJvqoFgK36WI1S_Mb-c0f5u9-zq9AoHywO53-KRJCNUVePZSZYbNqH0nxcvjvlKQAchzu7wN6G01mamkqWemM6uVqvVZViVJmQ429XksjqTSt2ix7LbEzFa5VJQlL3a4yW2OBskDcLEuUSi6WqApCUy5NUamWjCgLumo7Lsbxy3XhwyWzMU5Ur5aF2mSjbmmM844jdqN2F4EocCcQEz5n78eYjtQ-C_V81E6XKMpitJHje1G2PFI93YxmOnfdOW3kuRuo-xwhz9OusPUuT57SPAWCPJ__5j8Y5tUs8c1K3631DsmmMNYD8y3OU0o6XywPU7vo_FXgMdF5vPJb8J-oY4HHueEo8Dj3_C0AAP__K5YmGQ">