This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Make Fix-Its also apply to top-level expressions
ClosedPublic

Authored by teemperor on Mar 30 2020, 1:32 AM.

Details

Summary

Currently top-level expressions won't automatically get Fix-Its applied. The reason
for that is that we only set the m_fixed_text member if we have a wrapping
source code (I.e. m_source_code is not zero and is wrapping some expressions).

This patch just always sets m_fixed_text to get this working.

Diff Detail

Event Timeline

teemperor created this revision.Mar 30 2020, 1:32 AM
labath accepted this revision.Mar 30 2020, 1:41 AM

Sounds simple enough.

This revision is now accepted and ready to land.Mar 30 2020, 1:41 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2020, 3:13 AM