Fix parsing certain kinds of strings in the MS section pragmas
authorReid Kleckner <reid@kleckner.net>
Fri, 18 Jul 2014 00:13:16 +0000 (00:13 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 18 Jul 2014 00:13:16 +0000 (00:13 +0000)
commit722b1df869685778662a09e92f47a5d7fda7905a
tree0adc5141b3d853d8574758c54c477c47682f31d0
parent8ef7a6a15b4e1f9d94f2ae871621736f91779111
Fix parsing certain kinds of strings in the MS section pragmas

We were crashing on the relevant test case inputs.  Also, refactor this
code a bit so we can report failure and slurp the pragma tokens without
returning a diagnostic id.  This is more consistent with the rest of the
parser and sema code.

llvm-svn: 213337
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/include/clang/Parse/Parser.h
clang/lib/Parse/ParsePragma.cpp
clang/test/Sema/pragma-section.c