Bug 502406 - clazy does not support analyzer report as plist-multi-file
Summary: clazy does not support analyzer report as plist-multi-file
Status: REPORTED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-04 13:32 UTC by nolange79
Modified: 2025-04-04 13:32 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 nolange79 2025-04-04 13:32:51 UTC
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