Bug 400942

Summary: using QObject::QObject; should make the clazy-ctor-missing-parent-argument go away
Product: [Developer tools] clazy Reporter: Albert Astals Cid <aacid>
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 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