summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-02-04 19:18:35 +0000
committerJustin Bogner <mail@justinbogner.com>2014-02-04 19:18:35 +0000
commit6ee824e41dd3b6ed62dc1fabd4809cef7eb4ea37 (patch)
treeb9bfdf3cccbdbe64a68c6dc6bff0ca3c7bb43146 /lib/CodeGen/CodeGenFunction.cpp
parentb3a4bdd8aaf30212c037d9ca00c67376e84c5a68 (diff)
downloadclang-6ee824e41dd3b6ed62dc1fabd4809cef7eb4ea37.tar.gz
clang-6ee824e41dd3b6ed62dc1fabd4809cef7eb4ea37.tar.bz2
clang-6ee824e41dd3b6ed62dc1fabd4809cef7eb4ea37.tar.xz
Fix whitespace handling in empty macro expansions
When a macro expansion does not result in any tokens, and the macro name is preceded by whitespace, the whitespace should be passed to the first token that follows the macro expansion. Similarly when a macro expansion ends with a placemarker token, and that placemarker token is preceded by whitespace. This worked already for top-level macro expansions, but is now extended to also work for nested macro expansions. Patch by Harald van Dijk! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions