This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Add line/column to export-fixes yaml
DraftPublic

Authored by rpbeltran on Aug 1 2023, 3:43 PM.
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
njames93
Summary

This change adds line and column numbers to the YAML output from
export-fixes. Currently, line and column numbers are only given in human
readable formats while YAML output only gives a file name and offset.

This is unfortunate for tools that want to parse clang tidy output in a
machine readble format but do not have access to the original files or
do not want to use offsets.

For efficiency, line and column information is only to be produced if
export-fixes is enabled.

Diff Detail

Event Timeline

rpbeltran created this revision.Aug 1 2023, 3:43 PM
Herald added a project: Restricted Project. · View Herald Transcript
rpbeltran retitled this revision from [clang-tidy] Add line/column to export-fixes yaml to [WIP] [clang-tidy] Add line/column to export-fixes yaml.Aug 1 2023, 3:46 PM
rpbeltran updated this revision to Diff 546259.Aug 1 2023, 4:13 PM

Added missing arg in call to runClangTidy

rpbeltran updated this revision to Diff 547932.Aug 7 2023, 1:38 PM

Added lines/numbers to notes as well and fixed problems with draft

rpbeltran retitled this revision from [WIP] [clang-tidy] Add line/column to export-fixes yaml to [clang-tidy] Add line/column to export-fixes yaml.Aug 7 2023, 1:39 PM