When expanding macro arguments, treat '##' coming from an argument as a normal token.
commit0fd9c48dfc6a324d8399b0b43ab4b943a1b1b843
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 7 Jul 2011 03:40:37 +0000 (7 03:40 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 7 Jul 2011 03:40:37 +0000 (7 03:40 +0000)
tree208301375238dcf53719a0ec463d19b8d7b63ea3
parentb73377eeb3eff76be134203aebb6068244b177f3
When expanding macro arguments, treat '##' coming from an argument as a normal token.

e.g.

#define M(x) A x B
M(##) // should expand to 'A ## B', not 'AB'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134588 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/TokenLexer.cpp
test/Preprocessor/macro_paste_hashhash.c