aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorPeter Klausler <pklausler@nvidia.com>2023-07-20 10:39:04 -0700
committerPeter Klausler <pklausler@nvidia.com>2023-07-21 14:30:40 -0700
commit28eec1bd85d2a0eb342fbad8fb2cace389e772d5 (patch)
tree5b387277fe2a690d7ff0481766385dfb29afceb0 /clang/lib/CodeGen/CodeGenModule.cpp
parent290a98c7b00899b6aba0fc892e8f29fecc00a82e (diff)
downloadllvm-28eec1bd85d2a0eb342fbad8fb2cace389e772d5.zip
llvm-28eec1bd85d2a0eb342fbad8fb2cace389e772d5.tar.gz
llvm-28eec1bd85d2a0eb342fbad8fb2cace389e772d5.tar.bz2
[flang] Portability warning and documentation for an obscure extension
A quotation mark can appear in a Fortran character literal by doubling it; for example, PRINT *, "'""'" prints '"'. When those doubled quotation marks are split by a free form line continuation, the continuation line should have an ampersand before the second quotation mark. But most compilers, including this one, allow the second quotation mark to appear as the first character on the continuation line, too. So this works: print *, "'"& "'" but it really should be written as: print *, "'"& &"'" Emit a portability warning and document that we support this near-universal extension. Differential Revision: https://reviews.llvm.org/D155973
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions