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-b...@kde.org
          Reporter: nolang...@gmail.com
                CC: smart...@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 watching all bug changes.

Reply via email to