This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Add unittests for a few FileSpec methods
ClosedPublic

Authored by bulbazord on Apr 7 2023, 11:43 AM.

Details

Summary

This adds tests for:

  • FileSpec::TestFileNameExtensions
  • FileSpec::TestFileNameStrippingExtension
  • FileSpec::IsSourceImplementationFile

This additionally updates incorrect documentation.

Diff Detail

Event Timeline

bulbazord created this revision.Apr 7 2023, 11:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2023, 11:43 AM
bulbazord requested review of this revision.Apr 7 2023, 11:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2023, 11:43 AM
mib added inline comments.Apr 7 2023, 11:51 AM
lldb/include/lldb/Utility/FileSpec.h
330

This sounds like a pretty intrusive change ... was the comment wrong or did change the implementation on another commit ?

JDevlieghere added inline comments.Apr 7 2023, 12:27 PM
lldb/include/lldb/Utility/FileSpec.h
330

I changed the behavior in ad8d48f9036f9 but forgot to update the comment.

This revision is now accepted and ready to land.Apr 7 2023, 12:27 PM
mib accepted this revision.Apr 7 2023, 12:27 PM
mib added inline comments.
lldb/include/lldb/Utility/FileSpec.h
330

LGTM then :)

This revision was automatically updated to reflect the committed changes.