This is an archive of the discontinued LLVM Phabricator instance.

[flang] Use value instead of getValue (NFC)
ClosedPublic

Authored by kazu on Jul 22 2022, 11:35 PM.

Details

Summary

Flang C++ Style Guide tells us to use x.value() when no presence test
is obviously protecting the reference. Since a failure in EXPECT_TRUE
doesn't terminate a given test, I don't count it as "protection" here.

Diff Detail

Event Timeline

kazu created this revision.Jul 22 2022, 11:35 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 22 2022, 11:35 PM
kazu requested review of this revision.Jul 22 2022, 11:35 PM
clementval accepted this revision.Jul 25 2022, 12:17 AM
This revision is now accepted and ready to land.Jul 25 2022, 12:17 AM
This revision was automatically updated to reflect the committed changes.