This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Add diagnostics level to YAML output
ClosedPublic

Authored by DmitryPolukhin on May 2 2020, 2:53 AM.

Details

Summary

Also added BuildDirectory for completness and removed unused Fix.

Test Plan: check-all

Diff Detail

Event Timeline

DmitryPolukhin created this revision.May 2 2020, 2:53 AM

@alexfh and @gribozavr2 friendly ping could you please take a look

DmitryPolukhin added a subscriber: aaron.ballman.

@alexfh, @gribozavr2, @aaron.ballman - friendly ping, please take a look to this diff. It is just trivial implementation of TODO in the code.

aaron.ballman added inline comments.Jun 15 2020, 3:53 AM
clang/include/clang/Tooling/DiagnosticsYaml.h
109

Do we have to handle notes as well?

DmitryPolukhin marked an inline comment as done.Jun 15 2020, 5:32 AM
DmitryPolukhin added inline comments.
clang/include/clang/Tooling/DiagnosticsYaml.h
109

clang::tooling::Diagnostic::Level supports only 2 levels error and warning:
https://github.com/llvm/llvm-project/blob/master/clang/include/clang/Tooling/Core/Diagnostic.h#L65

aaron.ballman accepted this revision.Jun 15 2020, 6:00 AM

LGTM!

clang/include/clang/Tooling/DiagnosticsYaml.h
109

Huh, good to know!

This revision is now accepted and ready to land.Jun 15 2020, 6:00 AM

@aaron.ballman thank you for review and quick response!

This revision was automatically updated to reflect the committed changes.