summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2013-11-05 09:30:17 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2013-11-05 09:30:17 +0000
commit974cbc5e43c4aeb9bf4a6bb7ed2718a20a910437 (patch)
tree685c87fc4f293aeb970ffc816c3e547f05c6af92 /lib/CodeGen/CGExpr.cpp
parentb6972e6ddcf4bf0364dfc6d640cadd4c34748916 (diff)
downloadclang-974cbc5e43c4aeb9bf4a6bb7ed2718a20a910437.tar.gz
clang-974cbc5e43c4aeb9bf4a6bb7ed2718a20a910437.tar.bz2
clang-974cbc5e43c4aeb9bf4a6bb7ed2718a20a910437.tar.xz
Lex: Require that '#' be followed by a macro parameter name when preceded by '##'
After lexing a '##', we would look ahead and check to see if it was followed by '__VA_ARGS__'. After doing so, we would then go ahead and lex the token. However we would fail in the case where the '##' was followed by a '#' followed by an identifier because we would have lexed the '#' separately from the identifier, bypassing our parameter validation logic. Instead, lex the tokens coming after the '##' later. This fixes PR17804. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194059 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions