[clazy] [Bug 389055] suggest simplification: `$smartpointer.data()->` to `$smartpointer->`

2021-07-23 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=389055

Sergio Martins  changed:

   What|Removed |Added

 Resolution|--- |FIXED
  Latest Commit||https://invent.kde.org/sdk/
   ||clazy/commit/74686cc8c884db
   ||cfabb12ea7a926e0eec486846d
 Status|CONFIRMED   |RESOLVED

--- Comment #3 from Sergio Martins  ---
Git commit 74686cc8c884dbcfabb12ea7a926e0eec486846d by Sergio Martins, on
behalf of Waqar Ahmed.
Committed on 23/07/2021 at 19:33.
Pushed by smartins into branch 'master'.

Add use-arrow-operator

Suggest to use arrow operator with qt smart pointers instead of
.data()->someFunc()

print parent class name in warning

Signed-off-by: Waqar Ahmed 

M  +1-0CheckSources.cmake
M  +1-0ClazyTests.cmake
M  +7-0checks.json
M  +2-0src/Checks.h
A  +90   -0src/checks/manuallevel/use-arrow-operator.cpp [License: LGPL
(v2+)]
A  +39   -0src/checks/manuallevel/use-arrow-operator.h [License: LGPL
(v2+)]
A  +8-0tests/use-arrow-operator/config.json
A  +20   -0tests/use-arrow-operator/main.cpp  *
A  +3-0tests/use-arrow-operator/main.cpp.expected

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://invent.kde.org/sdk/clazy/commit/74686cc8c884dbcfabb12ea7a926e0eec486846d

-- 
You are receiving this mail because:
You are watching all bug changes.

[clazy] [Bug 389055] suggest simplification: `$smartpointer.data()->` to `$smartpointer->`

2018-08-15 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=389055

--- Comment #2 from Sergio Martins  ---
https://codereview.qt-project.org/#/c/230337/ is an example of gcc 4.8 nagging
about missing data()

-- 
You are receiving this mail because:
You are watching all bug changes.

[clazy] [Bug 389055] suggest simplification: `$smartpointer.data()->` to `$smartpointer->`

2018-03-24 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=389055

Sergio Martins  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |CONFIRMED

--- Comment #1 from Sergio Martins  ---
There's some gcc version that doesn't support this, but maybe old enough to
ignore

-- 
You are receiving this mail because:
You are watching all bug changes.

[clazy] [Bug 389055] suggest simplification: `$smartpointer.data()->` to `$smartpointer->`

2018-01-16 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=389055

Sergio Martins  changed:

   What|Removed |Added

   Severity|normal  |wishlist

-- 
You are receiving this mail because:
You are watching all bug changes.