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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] Support more macros for bypassing bugprone-unchecked-optional-access
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          hg-zt
      </td>
    </tr>
</table>

<pre>
    `REQUIRE` from [doctest](https://github.com/doctest/doctest) is currently not supported

```cpp
TEST_CASE("foo")
{
 REQUIRE(opt.has_value());
    use(*opt); // will warn "Unchecked access to optional value"
}
```

It would be better if it could be configured
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8UkmPozwQ_TXmUiKCAtNw4JD-kkh9_Ho5t7wU4BkHIy8dZX79KCFoWnMYqQSl2vTe8xMhmHEm6hl_ZvyQiRQn5_tpzH_FTDp97VlTvB7__3h5PbKmgMG7MzD-rJ2KFCLjB4btFOMSWLVneGJ4Gk2cktwpd2Z42ua-ZR2YACp5T3O0V5hdhJCWxflImhUHVuwf36ZYQy3LWnk_vr1__rd_OzJsGeLgHENk2D3mn57XBDa82Lol7iYRPr-ETXTf6m5RbZMAkMLa2Lslrj1YecDFWAsX4WdgiB-zmkj9JA1CKQoBogO3RONmYeFxHjcgh78YfKf1EuHiktUgCSTFSB7MACaC2qrKzYMZkyed6b7SXdWJjPqyaauya3nVZVOvqay7odKVkoMscShrJI5Ng1KWsix4ZnossCp4UZdl0fJuR5xTzevuqcSmazSyuqCzMHZn7dd55_yYmRAS9Q3yus2skGTD3RSIM13g3rwx5IfM97edXKYxsLqwJsTw50o00d7dpKyYxzwafWX8AG_rC8PZeYKzUN4FGJwHeV1uFpxHkGlcvJspT5vS-aZvvkqeJW_7f3jthuHxyxfvfpC6-e6OPDA83Zn9DgAA__8_mueO">