| Summary: | clazy does not support analyzer report as plist-multi-file | ||
|---|---|---|---|
| Product: | [Developer tools] clazy | Reporter: | nolange79 |
| Component: | general | Assignee: | Unassigned bugs <unassigned-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | smartins |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Debian testing | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
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