Код: Выделить всё
[taurus@lix xcursor-viewer]$ clang-tidy -load=ClazyClangTidy.so -checks=clazy-connect-by-name -header-filter='.*' -p debug/.qtc_clangd/compile_commands.json dialog.cpp --export-fixes=f.yaml
1 warning generated.
/home/taurus/develop/xcursor-viewer/dialog.h:51:5: warning: Slots named on_foo_bar are error prone [clazy-connect-by-name]
51 | void on_pbExport_clicked();
| ^
[taurus@lix xcursor-viewer]$ cat f.yaml
---
MainSourceFile: '/home/taurus/develop/xcursor-viewer/dialog.cpp'
Diagnostics:
- DiagnosticName: clazy-connect-by-name
DiagnosticMessage:
Message: Slots named on_foo_bar are error prone
FilePath: '/home/taurus/develop/xcursor-viewer/dialog.h'
FileOffset: 1054
Replacements: []
Level: Warning
BuildDirectory: '/home/taurus/develop/xcursor-viewer/debug/.qtc_clangd'
...
[taurus@lix xcursor-viewer]$ clazy-standalone --checks=connect-by-name -p debug/.qtc_clangd/compile_commands.json dialog.cpp --export-fixes=f2.yaml
In file included from /home/taurus/develop/xcursor-viewer/dialog.cpp:8:
/home/taurus/develop/xcursor-viewer/dialog.h:51:5: warning: Slots named on_foo_bar are error prone [-Wclazy-connect-by-name]
51 | void on_pbExport_clicked();
| ^
1 warning generated.
[taurus@lix xcursor-viewer]$ cat f2.yaml
cat: f2.yaml: No such file or directory
[taurus@lix xcursor-viewer]$
Также здесь показан снимок экрана, показывающий мою точную проблему.

Подробнее здесь: https://stackoverflow.com/questions/798 ... qt-creator
Мобильная версия