This is an archive of the discontinued LLVM Phabricator instance.

[flang][preprocessing] Allow keyword macro to rename a function-like macro
ClosedPublic

Authored by klausler on May 22 2023, 2:01 PM.

Details

Summary

#define FOO(x) ((x)+1)
#define BAR FOO
print *, BAR(1)

should work as one would expect.

Fixes https://github.com/llvm/llvm-project/issues/47162.

Diff Detail

Event Timeline

klausler created this revision.May 22 2023, 2:01 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.May 22 2023, 2:01 PM
PeteSteinfeld accepted this revision.May 22 2023, 2:17 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.May 22 2023, 2:17 PM
This revision was landed with ongoing or failed builds.May 22 2023, 2:44 PM
This revision was automatically updated to reflect the committed changes.