[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-02-26 Thread Eike Ziller
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #30 from Eike Ziller  ---
Just for the record: clazy-incorrect-emit was also affected (and is now fixed).

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-02-25 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=431186

Sergio Martins  changed:

   What|Removed |Added

 Resolution|--- |FIXED
  Latest Commit||https://invent.kde.org/sdk/
   ||clazy/commit/876796fb007cd6
   ||245fda37b6035b2504fdb6ad6e
 Status|REOPENED|RESOLVED

--- Comment #29 from Sergio Martins  ---
Git commit 876796fb007cd6245fda37b6035b2504fdb6ad6e by Sergio Martins.
Committed on 25/02/2021 at 20:16.
Pushed by smartins into branch '1.9'.

Fix -Wconnect-non-signal when fixits are enabled on macOS

Partially reverts d6b07989e7a921. The fixit for copyable-polymorphic
is now guarded by an opt-in env variable. I think it's not worth the slow
down anyway, and since it causes regressions for connect-non-signal,
disable it by default

M  +9-2src/AccessSpecifierManager.cpp
M  +1-0src/AccessSpecifierManager.h

https://invent.kde.org/sdk/clazy/commit/876796fb007cd6245fda37b6035b2504fdb6ad6e

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-02-24 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #28 from Sergio Martins  ---
I've finally reproduced without QtCreator. Needs the -export-fixes=foo argument
to reproduce

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-02-24 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #27 from Sergio Martins  ---
thanks, I'll have a try

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-02-24 Thread Eike Ziller
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #26 from Eike Ziller  ---
(In reply to Sergio Martins from comment #25)
> can you paste here the commands you use to compile and install clazy ?
> If it's done within a QtCreator build, are there instructions I can do the
> same ?

Sure.

mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=../install -DCMAKE_PREFIX_PATH=/usr/local/opt/llvm .. &&
cmake --build . && cmake --install .

LLVM in /usr/local/opt/llvm is from brew, version 11.1.0.
cmake version 3.19.4
ninja version 1.10.2
Xcode 12.4

I point Qt Creator to that clazy-standalone binary in the options (Analyzer >
Clang Tools).

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-02-24 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #25 from Sergio Martins  ---
can you paste here the commands you use to compile and install clazy ?
If it's done within a QtCreator build, are there instructions I can do the same
?

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-02-24 Thread Eike Ziller
https://bugs.kde.org/show_bug.cgi?id=431186

Eike Ziller  changed:

   What|Removed |Added

 CC||eike.zil...@qt.io

--- Comment #24 from Eike Ziller  ---
I can reproduce the issue on macOS (11.2).

I managed to track this down to

Reapply d6b07989e7a9211b21ecb9b9f8bd4d237bcc453e. (2575f65c)
https://invent.kde.org/sdk/clazy/-/commit/2575f65c021a8ae18aa2de2bab4b07c8fc2b4a6b

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

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

--- Comment #23 from Sergio Martins  ---
Thierry, can you reproduce with clazy master ?

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-02-03 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #22 from Sergio Martins  ---
What do we know so far, is it Windows only ?

Thierry, did you repro on macOS ?
Anyone repro on Linux ?

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-25 Thread Thierry Bastian
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #21 from Thierry Bastian  ---
hmm I tried again and now I'm getting those warnings. There must be something
in the environment somewhere that is making a difference.

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-25 Thread Thierry Bastian
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #20 from Thierry Bastian  ---
interestingly, I tried clay 1.9 that I built myself and it is also fine...

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-25 Thread Thierry Bastian
https://bugs.kde.org/show_bug.cgi?id=431186

Thierry Bastian  changed:

   What|Removed |Added

 CC||thier...@filewave.com

--- Comment #19 from Thierry Bastian  ---
I tried with 1.8 on my MacOS (built it myself) and it worked (as it did with Qt
creator 4.13 before). No warnings.

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-21 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #18 from Sergio Martins  ---
Interesting, can you open the compile_commands.json, go to the line of your
translation unit, and start removing compiler flags until you can't repro ?

I think there's some flag which is the culprit.

Another idea is to test clazy from 
https://downloads.kdab.com/clazy/1.8/clazy_v1.8-msvc2019.zip instead of the one
shipped with QtC.

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=431186

joshua.l.he...@gmail.com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|DOWNSTREAM  |---
 Ever confirmed|0   |1

--- Comment #17 from joshua.l.he...@gmail.com ---
Reported to QtCreator bugs, but:

This is reproducible outside Qt Creator. E.g. for the project in test.zip, pass
-DCMAKE_EXPORT_COMPILE_COMMANDS to the cmake command line, and then run
clazy-standalone with -p  on your file. You will get the same false
positive as in Creator (on macOS at least; this particular example does not
trigger for me on Linux, but I've seen the warning in more complex projects).

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-20 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=431186

Sergio Martins  changed:

   What|Removed |Added

 Resolution|--- |DOWNSTREAM
 Status|REPORTED|RESOLVED

--- Comment #16 from Sergio Martins  ---
This is a bug in QtCreator's clazy integration, needs to be reported at
https://bugs.qt.io instead

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #15 from joshua.l.he...@gmail.com ---
Hmmm...I get the same "...is not a signal [clazy-connect-non-signal]" warning
when connecting to all of these signals that are inherited from
QAbstractItemView
connect(this, ::entered, this, ::itemEntered);
connect(this, ::pressed, this, ::itemEntered);
connect(this, ::viewportEntered, this, ::itemEntered);
connect(this, ::activated, this, ::itemEntered);
connect(this, ::clicked, this, ::itemEntered);

as well as from these signals inherited from QTreeView:
connect(this, ::collapsed, this, ::itemEntered);
connect(this, ::expanded, this, ::itemEntered);

but NOT from any of these signals inherited from QTreeWidget:
connect(this, ::itemEntered, this, ::itemEntered);
connect(this, ::itemExpanded, this, ::itemEntered);
connect(this, ::itemPressed, this, ::itemEntered);
connect(this, ::currentItemChanged, this,
::itemEntered);
connect(this, ::itemSelectionChanged, this,
::itemEntered);

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #14 from joshua.l.he...@gmail.com ---
Qtcreator code analysis tools, both the "realtime" analysis that underlines the
text and the "Analyze > Clang-Tidy and Clazy" anlysis.

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #13 from Sergio Martins  ---
thanks, that built fine, but doesn't show the problem

Is this something you're seeing when compiling the project with clazy =
(clang+mingw+clazy plugin) or is this a warning you're seeing in QtCreator code
analysis tools (which underlines the problem) ?

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=431186

joshua.l.he...@gmail.com changed:

   What|Removed |Added

 Attachment #134713|0   |1
is obsolete||
 Attachment #134714|0   |1
is obsolete||
 Attachment #134715|0   |1
is obsolete||
 Attachment #134716|0   |1
is obsolete||
 Attachment #134717|0   |1
is obsolete||
 Attachment #134718|0   |1
is obsolete||

--- Comment #12 from joshua.l.he...@gmail.com ---
Created attachment 134723
  --> https://bugs.kde.org/attachment.cgi?id=134723=edit
Clazy bug project

Hopefully this is sufficient. Apologies if not.

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #11 from Sergio Martins  ---
thanks

can you upload a single .zip and make sure it compiles ?

I think something went wrong with your upload, some files say:

#include "Error in " Util.relativeFilePath('C:/Users/jhertz/Dropbox (NU College
of Eng'g)/Files/CPP/Qt/mainwindow.h', 'C:/Users/jhertz/Dropbox (NU College of
Eng'g)/Files/CPP/Qt' + '/' + Util.path('mainwindow.cpp'))": SyntaxError:
Unexpected token `identifier'"
#include "ui_mainwindow.h"

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #10 from joshua.l.he...@gmail.com ---
Apologies if this is not the info you need. Not consciously using precompiled
headers or ccache. 

11:29:47: Running steps for project clazybugtest...
11:29:47: Starting: "C:\Qt\5.12.1\mingw73_64\bin\qmake.exe"
"C:\Users\...\Files\CPP\Qt\clazybugtest\clazybugtest.pro" -spec win32-g++
"CONFIG+=debug" "CONFIG+=qml_debug"
Info: creating stash file
C:\Users\...\Files\CPP\Qt\build-clazybugtest-Desktop_Qt_5_12_1_MinGW_64_bit-Debug\.qmake.stash
11:29:48: The process "C:\Qt\5.12.1\mingw73_64\bin\qmake.exe" exited normally.
11:29:48: Starting: "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" -f
"C:/Users/.../Files/CPP/Qt/build-clazybugtest-Desktop_Qt_5_12_1_MinGW_64_bit-Debug/Makefile"
qmake_all
mingw32-make: Nothing to be done for 'qmake_all'.
11:29:49: The process "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" exited
normally.
11:29:49: Starting: "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" -j4

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #9 from joshua.l.he...@gmail.com ---
Using Qt 5.12.1, with both MinGW 64 bit and a MinGW Static compile

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #8 from joshua.l.he...@gmail.com ---
Created attachment 134718
  --> https://bugs.kde.org/attachment.cgi?id=134718=edit
subclass header

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #7 from joshua.l.he...@gmail.com ---
Created attachment 134717
  --> https://bugs.kde.org/attachment.cgi?id=134717=edit
subclass implementation; bug found here

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #6 from joshua.l.he...@gmail.com ---
Created attachment 134716
  --> https://bugs.kde.org/attachment.cgi?id=134716=edit
mainwindow header

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #5 from joshua.l.he...@gmail.com ---
Created attachment 134715
  --> https://bugs.kde.org/attachment.cgi?id=134715=edit
mainwindow file

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #4 from joshua.l.he...@gmail.com ---
Created attachment 134714
  --> https://bugs.kde.org/attachment.cgi?id=134714=edit
main file

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #3 from joshua.l.he...@gmail.com ---
Created attachment 134713
  --> https://bugs.kde.org/attachment.cgi?id=134713=edit
pro file

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #2 from Sergio Martins  ---
Do you have either precompiled headers turned on, or ccache running ?

Can you paste the complete compiler invocation ?

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=431186

Sergio Martins  changed:

   What|Removed |Added

   Assignee|unassigned-b...@kde.org |smart...@kde.org

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

[clazy] [Bug 431186] QAbstractItemView::entered not recognized as a signal [clazy-connect-non-signal]

2021-01-10 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=431186

--- Comment #1 from Sergio Martins  ---
Git commit d3f6b6606b170c7daf8abdd24ac69e562e86b9b8 by Sergio Martins.
Committed on 10/01/2021 at 13:40.
Pushed by smartins into branch 'master'.

connect-non-signal: Add a testcsae for bug 431186

I can't reproduce

A  +9-0tests/connect-non-signal/bug431186.cpp  *
A  +0-0tests/connect-non-signal/bug431186.cpp.expected
M  +3-0tests/connect-non-signal/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://invent.kde.org/sdk/clazy/commit/d3f6b6606b170c7daf8abdd24ac69e562e86b9b8

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