Bug 400942 - using QObject::QObject; should make the clazy-ctor-missing-parent-argument go away
Summary: using QObject::QObject; should make the clazy-ctor-missing-parent-argument go...
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-11 18:58 UTC by Albert Astals Cid
Modified: 2018-11-11 20:33 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 Albert Astals Cid 2018-11-11 18:58:54 UTC
Adding 
   using QObject::QObject;
actually provides a constructor that takes QObject parent argument in the constructor, so i think that warning should not trigger for classes that have that "constructor inheritance"
Comment 1 Sergio Martins 2018-11-11 20:33:58 UTC
Git commit b1ea462fd09324ae489485be519b2e72821b3af6 by Sergio Martins.
Committed on 11/11/2018 at 20:32.
Pushed by smartins into branch '1.4'.

ctor-missing-parent-argument: Don't warn when we inherit ctors

M  +8    -0    src/checks/level2/ctor-missing-parent-argument.cpp
A  +7    -0    tests/ctor-missing-parent-argument/bug400942.cpp     [License: UNKNOWN]  *
A  +0    -0    tests/ctor-missing-parent-argument/bug400942.cpp.expected
M  +3    -0    tests/ctor-missing-parent-argument/config.json

The files marked with a * at the end have a non valid license. Please read: https://community.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page.


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