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

    <tr>
        <th>Summary</th>
        <td>
            `readability-redundant-access-specifiers` with Qt slots
        </td>
    </tr>

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

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

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

<pre>
    Qt declares slot methods by using the `<access-specifier> slots:` syntax in the class declaration. This causes `readability-redundant-access-specifiers` warnings for code like this (see also https://doc.qt.io/qt-6/signalsandslots.html#a-small-example):

```cpp
class MainWindow : public QMainWindow {
    Q_OBJECT

public:
 explicit MainWindow(QWidget *parent = nullptr);

public slots:
 void loadFile();
};
```

I am not sure if this can be handled in the check but given the widespread usage of Qt I felt it was worth reporting.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk8GO2zgMhp9GvhAxFNnxOAcfZjoN0AUWiwAFelzQEm1zq0iuKE9m3n5hp-2ku6cChm1Q-D_-JEUU4TEQderwpA7PBS55iqkbONEVX6joo3vrzhkcWY-JBMTHDBfKU3QC_RsswmGEPBGoRqvqA1pLIjuZyfLAlFT1cdOIqh5Vo0HeQsZX4LBprEeR73DMHEMJnycWsLgIyYpMhA579pzfdoncEhyGvPtvFlnRV0yBwygwxAQ2OgLPXwnyClSmFSJALxGmnOfNjjkpc3LRlt9yyVGZ07e8a5Q5rS1BLxjc5ryc8sUrU-FOLuj9jl7xMntS5rhC9LPSP96Nvj12nm-RW31_IocvHFy8gqoeYV56zxbO9-GHp5sAAOD8919Pf3z88PkefdP8zAf0Onu2nO_YyrTnL-xGyqDM44yJQgZVPUNYvJ9z2vw-_R_6Pp4b-iWyAx_RnXgtsv1F9_D8_v-j2nvkJ8ALhJhBlkTAw637FgP0BBMG58n9HP5E9iv0S4aRX-gWu7IjmdehwyI4EsQBzhk-wUA-A2e4osA1pjxBojmmzGEsC9dV7lgdsaBu3zxUrW6rfV1MncVjaxtzPLb7StcPjRlco11ta0SsBj0U3BltKr3fH_ZtfdjXpTbtnmxjqD66hipUtaYLsi-9f7mUMY0FiyzUNVofDoXHnrxsu2NMoCtsh8qYdZVSt2p2_TKKqrVnyfJOyZw9db95vzlPazO2eRVL8t2vN3nkPC19aeNFmdOa6ftnN6f4D9mszGnzJ8qcNv__BgAA__8i-Uhq">