aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LineEditor/LineEditor.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-02-04 19:18:28 +0000
committerJustin Bogner <mail@justinbogner.com>2014-02-04 19:18:28 +0000
commit502155aff9ca5477d153b5ea6232a40dcee62564 (patch)
tree29fccfcb577756f8cd82ae053ba41b88b23e2e38 /llvm/lib/LineEditor/LineEditor.cpp
parentaacfe098670c08e104ccac07184bc880fb13ce35 (diff)
downloadllvm-502155aff9ca5477d153b5ea6232a40dcee62564.zip
llvm-502155aff9ca5477d153b5ea6232a40dcee62564.tar.gz
llvm-502155aff9ca5477d153b5ea6232a40dcee62564.tar.bz2
Fix whitespace handling in ## operator
In x ## y, where x and y are regular tokens, whitespace between x and ## is ignored, and whitespace between ## and y is also ignored. When either x or y is a function argument, whitespace was preserved, but it should not be. This patch removes the checks for whitespace before ## and before y, and in the special case where x is an empty macro argument and y is a regular token, actively removes whitespace before y. One existing test is affected by that change, but as clang's output now matches the standard's requirements and that of GCC, I've tweaked the testcase. Patch by Harald van Dijk! llvm-svn: 200785
Diffstat (limited to 'llvm/lib/LineEditor/LineEditor.cpp')
0 files changed, 0 insertions, 0 deletions