]> granicus.if.org Git - clang/commit
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)
commitfadb218b323f63cff2158f99bf86f116d89ffc8f
treecff1e1a699ccf51c8acabfe6c571525549f1e545
parent874648372ca0655f6842126d2fc2893672f0eee5
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213337 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Parse/Parser.h
lib/Parse/ParsePragma.cpp
test/Sema/pragma-section.c