[clazy] [Bug 502406] New: clazy does not support analyzer report as plist-multi-file
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Fri Apr 4 14:32:51 BST 2025
https://bugs.kde.org/show_bug.cgi?id=502406
Bug ID: 502406
Summary: clazy does not support analyzer report as
plist-multi-file
Classification: Developer tools
Product: clazy
Version: unspecified
Platform: Debian testing
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: nolange79 at gmail.com
CC: smartins at kde.org
Target Milestone: ---
SUMMARY
Trying to include clazy with CodeChecker proved problematic. CodeChecker asks
clang
to output reports with `-Xclang -analyzer-output=plist-multi-file`.
The clazy reports are not added there and are missing.
STEPS TO REPRODUCE
``` c++
#include <QtCore/QObject>
class MyObj : public QObject
{
Q_OBJECT
public:
MyObj();
void mySlot(int);
signals:
void mySig();
void mySig(int);
void mySig2(int) const;
};
void test()
{
unsigned uninit;
unsigned unused = uninit * 2;
MyObj *o;
o->connect(o, qOverload<int>(&MyObj::mySig), o, &MyObj::mySlot); // OK
o->connect(o, qConstOverload<int>(&MyObj::mySig2), o, &MyObj::mySlot); //
OK
o->connect(o, qNonConstOverload<int>(&MyObj::mySig), o, &MyObj::mySlot); //
OK
o->connect(o, qOverload<int>(&MyObj::mySlot), o, &MyObj::mySlot); // Warn
}
```
compile this with arguments similar to this:
clang++ --analyze -Qunused-arguments -Xclang -load -Xclang ClazyPlugin.so
-Xclang -add-plugin -Xclang clazy -Xclang -isystem
/usr/include/x86_64-linux-gnu/qt6/QtCore -isystem
/usr/include/x86_64-linux-gnu/qt6 -isystem
/usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -Xclang
-analyzer-output=plist-multi-file bug374951.cpp
OBSERVED RESULT
The report will include only the non-clazy issues.
EXPECTED RESULT
The report should include all issues.
SOFTWARE/OS VERSIONS
Linux: Debian Testing amd64
Qt Version: 6.8.2
ADDITIONAL INFORMATION
clazy is debians packaged v1.13-1
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list