Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[report-converter] Support Clang 17.0+ FixIt in Clang-Tidy #4052

Merged
merged 3 commits into from
Oct 27, 2023

Conversation

dkrupp
Copy link
Member

@dkrupp dkrupp commented Oct 20, 2023

clang-tidy version 17 introduced a new fixit diagnostic formatting. The report converter is now prepared to parse this new format. It also still supports the old format.

Fixes #4047

@dkrupp dkrupp requested a review from whisperity October 20, 2023 13:40
@dkrupp dkrupp force-pushed the fixit_support_clang17 branch from b03e840 to a7fcd4a Compare October 20, 2023 14:32
@whisperity whisperity changed the title clang-tidy report converter now supports clang17 fixit format [report-converter] Support Clang 17.0+ FixIt in Clang-Tidy Oct 24, 2023
@whisperity whisperity added bugfix 🔨 tools 🛠️ Meta-tag for all the additional tools supplied with CodeChecker: plist2html, tu_collector, etc. report-converter 🔄 labels Oct 24, 2023
@whisperity whisperity added this to the release 6.23.0 milestone Oct 24, 2023
@Ericsson Ericsson deleted a comment from dkrupp Oct 24, 2023
@whisperity
Copy link
Contributor

With the suggested changes, this looks fine for 6.23, but for 6.24 we should consider dropping the conversion from "random meaningless stdout text" to plist in favour of "well-formatted message and fix YAML" to plist. For a very long time now, Clang-Tidy was capable of dumping the structure of the created diagnostics (all the notes, warnings, and fixits, see https://github.com/llvm/llvm-project/blob/llvmorg-17.0.0/clang-tools-extra/test/clang-tidy/infrastructure/export-diagnostics.cpp!) in YAML.

@dkrupp dkrupp force-pushed the fixit_support_clang17 branch from a4b8e22 to 74a295e Compare October 26, 2023 16:33
dkrupp and others added 3 commits October 26, 2023 21:37
clang-tidy version 17 introduced a new fixit diagnostic formatting.
The report converter is now prepared to parse this new format.
It also still supports the old format.
@dkrupp dkrupp force-pushed the fixit_support_clang17 branch from 74a295e to 3c1a426 Compare October 26, 2023 19:38
@dkrupp dkrupp requested a review from whisperity October 27, 2023 07:34
Copy link
Contributor

@whisperity whisperity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix 🔨 report-converter 🔄 tools 🛠️ Meta-tag for all the additional tools supplied with CodeChecker: plist2html, tu_collector, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FixIt parsing of Clang-Tidy output broken by changes to Diagnostic Printer in LLVM 17.0.1
2 participants