summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-02-04 19:18:32 +0000
committerJustin Bogner <mail@justinbogner.com>2014-02-04 19:18:32 +0000
commitb3a4bdd8aaf30212c037d9ca00c67376e84c5a68 (patch)
treeaa92b0eb8bbb1b80b892dc7832ff140b0f857cb1 /lib/CodeGen/CodeGenFunction.cpp
parent2b307d01584f8844e18321145ec76c5290054dcd (diff)
downloadclang-b3a4bdd8aaf30212c037d9ca00c67376e84c5a68.tar.gz
clang-b3a4bdd8aaf30212c037d9ca00c67376e84c5a68.tar.bz2
clang-b3a4bdd8aaf30212c037d9ca00c67376e84c5a68.tar.xz
Fix whitespace handling in empty macro arguments
When a function-like macro definition ends with one of the macro's parameters, and the argument is empty, any whitespace before the parameter name in the macro definition needs to be preserved. Promoting the existing NextTokGetsSpace to a preserved bit-field and checking it at the end of the macro expansion allows it to be moved to the first token following the macro expansion result. Patch by Harald van Dijk! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions