[cfe-commits] r74358 - /cfe/trunk/lib/Parse/ParseDecl.cpp
Anders Carlsson
andersca at mac.com
Fri Jun 26 16:44:14 PDT 2009
Author: andersca
Date: Fri Jun 26 18:44:14 2009
New Revision: 74358
URL: http://llvm.org/viewvc/llvm-project?rev=74358&view=rev
Log:
Fix test.
Modified:
cfe/trunk/lib/Parse/ParseDecl.cpp
Modified: cfe/trunk/lib/Parse/ParseDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseDecl.cpp?rev=74358&r1=74357&r2=74358&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseDecl.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDecl.cpp Fri Jun 26 18:44:14 2009
@@ -1278,6 +1278,13 @@
ParseDecltypeSpecifier(DS);
return true;
+ // C++0x auto support.
+ case tok::kw_auto:
+ if (!getLang().CPlusPlus0x)
+ return false;
+
+ isInvalid = DS.SetTypeSpecType(DeclSpec::TST_auto, Loc, PrevSpec);
+ break;
case tok::kw___ptr64:
case tok::kw___w64:
case tok::kw___cdecl:
More information about the cfe-commits
mailing list