]> granicus.if.org Git - clang/commit
Handle -D arguments ending in a backslash.
authorEli Friedman <eli.friedman@gmail.com>
Wed, 28 Aug 2013 20:35:38 +0000 (20:35 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 28 Aug 2013 20:35:38 +0000 (20:35 +0000)
commit62c90e188931e01fc5b08eae8b25de43ed3a1a7c
treec75b139d1e2ee6e4dbf0b55b0b78be09918334c3
parent3f93d4ce2ba550f1dac4ae544ffe1349e42f708a
Handle -D arguments ending in a backslash.

We translate these into #define directives; to preserve gcc-compatible
semantics (where the expanded macro includes the backslash), we add
an extra "\\\n" to the end of the synthesized "#define".

<rdar://problem/14810220>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189511 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/InitPreprocessor.cpp
test/Preprocessor/macro_backslash.c [new file with mode: 0644]