Bug 391851

Summary: False positive check "qstring-arg" for macros QT_REQUIRE_VERSION
Product: [Developer tools] clazy Reporter: Roman <dismine>
Component: generalAssignee: Sergio Martins <smartins>
Status: RESOLVED FIXED    
Severity: normal CC: smartins
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Roman 2018-03-14 13:38:01 UTC
Hi,

I get warning "qstring-arg" for macros QT_REQUIRE_VERSION(argc, argv, "5.2.0").
Comment 1 Sergio Martins 2018-03-14 19:52:09 UTC
Git commit a6f113b2022004a3d84f6837ffaad37b6c73547a by Sergio Martins.
Committed on 14/03/2018 at 19:51.
Pushed by smartins into branch 'master'.

qstring-arg: Don't warn when inside QT_REQUIRE_VERSION

That should be fixed in Qt
Added explicit ctor as a drive by

M  +7    -1    src/checks/level0/qstring-arg.cpp
M  +1    -1    src/checks/level0/qstring-arg.h
M  +4    -3    tests/qstring-arg/main.cpp

https://commits.kde.org/clazy/a6f113b2022004a3d84f6837ffaad37b6c73547a