This is an archive of the discontinued LLVM Phabricator instance.

[llvm-debuginfo-analyzer] Return by reference instead of value - Warning analysis data.
ClosedPublic

Authored by CarlosAlbertoEnciso on Nov 15 2022, 10:12 PM.

Details

Summary

The following functions are used in the unittest, to access
information about invalid information detected by the Reader
during the debug information analysis:

  • getDebugTags
  • getWarningOffsets
  • getInvalidLocations
  • getInvalidCoverages
  • getInvalidRanges
  • getLinesZero

Just return a reference to the container with the information.

Note: Issue discovered by the smart pointers changes to the tool.
https://reviews.llvm.org/D137933

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2022, 10:12 PM
CarlosAlbertoEnciso requested review of this revision.Nov 15 2022, 10:12 PM
dblaikie accepted this revision.Nov 16 2022, 11:13 AM

Sounds good (this sort of cleanup is fine for post-commit review, FWIW)

This revision is now accepted and ready to land.Nov 16 2022, 11:13 AM

Sounds good (this sort of cleanup is fine for post-commit review, FWIW)

Thanks for all your help in the reviews.