[flang-commits] [PATCH] D151154: [flang][preprocessing] Allow keyword macro to rename a function-like macro
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Mon May 22 14:01:20 PDT 2023
klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
klausler requested review of this revision.
#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.
https://reviews.llvm.org/D151154
Files:
flang/lib/Parser/preprocessor.cpp
flang/test/Preprocessing/renaming.F
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151154.524482.patch
Type: text/x-patch
Size: 5037 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230522/5436bc77/attachment-0001.bin>
More information about the flang-commits
mailing list