namespace { struct Foo{}; } Using this type in a signal is possible when using the new-style connects. Clazy warns about it though, but there is no way to actually fix the warning: => signal arguments need to be fully-qualified (const (anonymous namespace)::Foo instead of const Foo) clazy version: 1.5 clang version: 7.0.1
Git commit 57b7234d0bca45738ae1b9cd8e5ed8348c27bc64 by Sergio Martins. Committed on 14/02/2019 at 11:08. Pushed by smartins into branch '1.5'. fully-qualified-moc-types: Don't warn for anonymous namespaces M +10 -0 src/checks/level0/fully-qualified-moc-types.cpp M +13 -0 tests/fully-qualified-moc-types/main.cpp https://commits.kde.org/clazy/57b7234d0bca45738ae1b9cd8e5ed8348c27bc64