llvm-project/clang/lib
David Majnemer 76faf1f525 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.

llvm-svn: 194059
2013-11-05 09:30:17 +00:00
..
ARCMigrate ObjectiveC migrator. When inferring readwrite property, 2013-11-01 00:26:48 +00:00
AST C++1y sized deallocation: if we have a use, but not a definition, of a sized 2013-11-05 09:12:18 +00:00
ASTMatchers Resubmit "Refactor DynTypedMatcher into a value type class, just like Matcher<T>." 2013-10-29 14:37:15 +00:00
Analysis Fixed bug with checking the kind of types. 2013-10-31 15:38:12 +00:00
Basic Include non-explicit submodules in exported module list 2013-11-04 21:51:33 +00:00
CodeGen C++1y sized deallocation: if we have a use, but not a definition, of a sized 2013-11-05 09:12:18 +00:00
Driver clang-format this if. 2013-11-04 17:13:51 +00:00
Edit ObjectiveC migrator: When doing migration, migrator must suggest 2013-10-01 21:16:29 +00:00
Format clang-format: Fix indenting corner case with comment and else. 2013-10-30 14:04:10 +00:00
Frontend C++1y sized deallocation: if we have a use, but not a definition, of a sized 2013-11-05 09:12:18 +00:00
FrontendTool Remove -ast-dump-xml. 2013-10-07 20:56:34 +00:00
Headers Define [U]LLONG_{MIN,MAX} for C++11, add tests. 2013-10-27 19:00:49 +00:00
Index Avoid using the 'index' namespace as scope. 2013-08-21 00:49:25 +00:00
Lex Lex: Require that '#' be followed by a macro parameter name when preceded by '##' 2013-11-05 09:30:17 +00:00
Parse Try to correct a mistyped "-" or ">" to "->" for some C++ cases. 2013-11-04 18:59:34 +00:00
Rewrite Fix typo: inccrementally 2013-10-13 12:02:16 +00:00
Sema Sema: Improve comment introduced in r193397 2013-11-05 08:01:18 +00:00
Serialization Include non-explicit submodules in exported module list 2013-11-04 21:51:33 +00:00
StaticAnalyzer [analyzer] Track the count of NSOrderedSet similarly to other fast enumerations. 2013-11-04 19:13:08 +00:00
Tooling Use Rewriter::overwriteChangedFiles() directly 2013-10-29 08:32:41 +00:00
CMakeLists.txt Fix dependencies now that the ARC migrator depends on the static analyzer. 2013-08-22 15:50:02 +00:00
Makefile Fix dependencies now that the ARC migrator depends on the static analyzer. 2013-08-22 15:50:02 +00:00