Bug 391851 - False positive check "qstring-arg" for macros QT_REQUIRE_VERSION
Summary: False positive check "qstring-arg" for macros QT_REQUIRE_VERSION
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Sergio Martins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-14 13:38 UTC by Roman
Modified: 2018-03-14 19:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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