aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LineEditor/LineEditor.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
commiteacd96d972ff18966fd16443ee1e055de69cb0ce (patch)
tree9b6275564dbc7a0bb56b61be59a127f7ed22fd5a /llvm/lib/LineEditor/LineEditor.cpp
parent502155aff9ca5477d153b5ea6232a40dcee62564 (diff)
downloadllvm-eacd96d972ff18966fd16443ee1e055de69cb0ce.zip
llvm-eacd96d972ff18966fd16443ee1e055de69cb0ce.tar.gz
llvm-eacd96d972ff18966fd16443ee1e055de69cb0ce.tar.bz2
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! llvm-svn: 200786
Diffstat (limited to 'llvm/lib/LineEditor/LineEditor.cpp')
0 files changed, 0 insertions, 0 deletions