This is an archive of the discontinued LLVM Phabricator instance.

[flang] Make not yet implemented messages more consistent
ClosedPublic

Authored by PeteSteinfeld on Mar 23 2022, 3:35 PM.

Details

Summary

To make it easier to find things that are not yet implemented, I'm changing the
messages that appear in the compiler's output to all have the string "not yet
implemented:".

These changes apply to files in the front end. I have another set of changes
to files in the lowering code.

Diff Detail

Event Timeline

PeteSteinfeld created this revision.Mar 23 2022, 3:35 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 23 2022, 3:35 PM
PeteSteinfeld requested review of this revision.Mar 23 2022, 3:35 PM
klausler requested changes to this revision.Mar 23 2022, 3:43 PM

You might consider adding a new "_todo_en_US" message class and emitting the "not yet implemented: " prefix in the message emission code. That would ease future rewordings and also make grepping the source for TODO less susceptible to line breaks by clang-format.

flang/lib/Semantics/resolve-names.cpp
3303

It looks like you're erasing a recent fix of mine from resolve-names.cpp here.

3403

And here.

4714

Are you consistently retaining or discarding the TODO comments on or near these messages?

7322

Here's another fix that you're reverting; please retain it.

This revision now requires changes to proceed.Mar 23 2022, 3:43 PM
PeteSteinfeld added inline comments.Mar 23 2022, 4:37 PM
flang/lib/Semantics/resolve-names.cpp
3303

Oops. I mistakenly based these changes on the file in fir-dev. I'll fix it up.

3403

Same here.

4714

I'm not doing anything with the comments in the code. I'm just changing the user facing messages.

7322

Will do.

Responding to Peter's comments.

You might consider adding a new "_todo_en_US" message class and emitting the "not yet implemented: " prefix in the message emission code. That would ease future rewordings and also make grepping the source for TODO less susceptible to line breaks by clang-format.

That seems reasonable. I'd like to do that in a future patch, though.

I can approve this patch when the build failure is resolved.

Fixing the formatting in an attempt to make the buildbots happy.

klausler accepted this revision.Mar 24 2022, 2:18 PM

Feel free to land the patch when the builds are clean.

This revision is now accepted and ready to land.Mar 24 2022, 2:18 PM