Skip to content

Commit

Permalink
Merge pull request #4062 from dkrupp/fixit_notes
Browse files Browse the repository at this point in the history
[report-converter] FixIts from Clang-Tidy will be rendered as notes instead of events
  • Loading branch information
bruntib authored Oct 27, 2023
2 parents 9f38b00 + 5d6605b commit 08aec60
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def _parse_fixits(
# a line number, and then a | character.
col = line.find(message_text) - line.find("|") - 1

report.bug_path_events.append(BugPathEvent(
report.notes.append(BugPathEvent(
f"{message_text} (fixit)",
report.file,
report.line,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,24 @@
<key>line</key>
<integer>4</integer>
</dict>
<key>path</key>
<key>notes</key>
<array>
<dict>
<key>depth</key>
<key>location</key>
<dict>
<key>col</key>
<integer>12</integer>
<key>file</key>
<integer>0</integer>
<key>kind</key>
<string>event</string>
<key>location</key>
<dict>
<key>col</key>
<integer>12</integer>
<key>file</key>
<integer>0</integer>
<key>line</key>
<integer>4</integer>
<key>line</key>
<integer>4</integer>
</dict>
<key>message</key>
<string>nullptr (fixit)</string>
</dict>
</array>
<key>path</key>
<array>
<dict>
<key>depth</key>
<integer>0</integer>
Expand Down

0 comments on commit 08aec60

Please sign in to comment.