Bug 404326

Summary: don't warn about signal args in anonymous namespace
Product: [Developer tools] clazy Reporter: Milian Wolff <mail>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: smartins
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Milian Wolff 2019-02-14 08:52:41 UTC
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
Comment 1 Sergio Martins 2019-02-14 11:10:06 UTC
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