]> granicus.if.org Git - clang/commit
Downgrade unnecessary "typename" from error to warning in Microsoft mode.
authorFrancois Pichet <pichet2000@gmail.com>
Sun, 24 Apr 2011 11:24:13 +0000 (11:24 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Sun, 24 Apr 2011 11:24:13 +0000 (11:24 +0000)
commita5d318ad4ad3a110b3abb34f765e69b76f7c0bcd
treed2c32fee3737d08db042f13016da3397874f67d7
parentb9e6b2c215d0a7930ad160b054bc86353da4a517
Downgrade unnecessary "typename" from error to warning in Microsoft mode.
This fixes 1 error when parsing MSVC 2008 headers with clang.

Must "return true;" even if it is a warning because the rest of the code path assumes that SS is set to something. The parser will get back on its feet and continue parsing the rest of the declaration correctly so it is not a problem.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130088 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
lib/Parse/Parser.cpp
test/Parser/MicrosoftExtensions.cpp