https://bugs.kde.org/show_bug.cgi?id=515127

            Bug ID: 515127
           Summary: clazy drops diagnostics without FixIts when exporting
                    fixes (unlike clang-tidy)
    Classification: Developer tools
           Product: clazy
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 188927
  --> https://bugs.kde.org/attachment.cgi?id=188927&action=edit
script to build and analyze

SUMMARY
When using clazy-standalone with --export-fixes, diagnostics that do not
produce fixits are silently omitted from the exported YAML.

This differs from clang-tidy behavior, which always exports diagnostics, even
when Replacements: [].

This makes clazy unusable as a diagnostics provider for Qt Creator, which rely
on exported diagnostics from .yaml files to populate the Diagnostics pane.

STEPS TO REPRODUCE
1. On Linux install clazy
2. Download CMakeLists.tst, main.cpp and analyze.sh.
3. chmod+x analyze.sh && analyze.sh

OBSERVED RESULT
clazy-standalone-fixes.yaml not the same as clazy-tidy-fixes.yaml

EXPECTED RESULT
clazy-standalone-fixes.yaml == clazy-tidy-fixes.yaml

SOFTWARE/OS VERSIONS
[taurus@lix test-clang-tidy]$ cat /etc/fedora-release 
Fedora release 43 (Forty Three)
[taurus@lix test-clang-tidy]$ clazy --version
clazy version: 1.16
clang version: 21.1.8
[taurus@lix test-clang-tidy]$ clang --version
clang version 21.1.8 (Fedora 21.1.8-3.fc43)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang.cfg
[taurus@lix test-clang-tidy]$ clang-tidy --version
LLVM (http://llvm.org/):
  LLVM version 21.1.8
  Optimized build.
[taurus@lix test-clang-tidy]$ qmake-qt5 --version
QMake version 3.1
Using Qt version 5.15.18 in /usr/lib64

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

Reply via email to