This is an archive of the discontinued LLVM Phabricator instance.

[lldb][expr] Propagate ClangDynamicCheckerFunctions::Install() errors to caller
ClosedPublic

Authored by sgraenitz on Mar 21 2023, 9:40 AM.

Details

Summary

I came accross this, because a lot of regression tests were saying:

(lldb) p argc
error: expression failed to parse:
error: couldn't install checkers, unknown error

With this change, error messages provide more detail:

(lldb) p argc
error: expression failed to parse:
error: couldn't install checkers:
error: Couldn't lookup symbols:
  __objc_load

I didn't find a case where Diagnostics() is not empty. Also it looks like this isn't covered in any test (yet).

Diff Detail

Event Timeline

sgraenitz created this revision.Mar 21 2023, 9:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2023, 9:40 AM
sgraenitz requested review of this revision.Mar 21 2023, 9:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2023, 9:40 AM
Michael137 accepted this revision.Mar 21 2023, 9:52 AM
This revision is now accepted and ready to land.Mar 21 2023, 9:52 AM
bulbazord accepted this revision.Mar 21 2023, 10:32 AM

Thanks for improving the error message here!

Thanks for the quick replies!