Lex: Don't let annotation tokens get into macro expansion
authorDavid Majnemer <david.majnemer@gmail.com>
Sun, 28 Dec 2014 07:42:49 +0000 (07:42 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sun, 28 Dec 2014 07:42:49 +0000 (07:42 +0000)
commitf2d3bc047406f811c2942de9cd3d84bc4b6c8f54
tree9b279a0b21004d4b8c1544a0b531629d027f2741
parenta894e9e070e10c54e4a012bd5f93eafedf050ff9
Lex: Don't let annotation tokens get into macro expansion

We'd let annotation tokens from '#pragma pack' and the like get inside a
function-like macro.  This would lead to terror and mayhem; stop the
madness early.

This fixes PR22037.

llvm-svn: 224896
clang/include/clang/Basic/DiagnosticLexKinds.td
clang/lib/Lex/PPDirectives.cpp
clang/test/Preprocessor/macro_arg_directive.c