[cfe-commits] r47160 - in /cfe/trunk: include/clang/Basic/TokenKinds.def test/Sema/c89.c
Chris Lattner
sabre at nondot.org
Fri Feb 15 10:02:59 PST 2008
Author: lattner
Date: Fri Feb 15 12:02:59 2008
New Revision: 47160
URL: http://llvm.org/viewvc/llvm-project?rev=47160&view=rev
Log:
Fix PR2041: restrict is not a keyword in c90.
Modified:
cfe/trunk/include/clang/Basic/TokenKinds.def
cfe/trunk/test/Sema/c89.c
Modified: cfe/trunk/include/clang/Basic/TokenKinds.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/TokenKinds.def?rev=47160&r1=47159&r2=47160&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/TokenKinds.def (original)
+++ cfe/trunk/include/clang/Basic/TokenKinds.def Fri Feb 15 12:02:59 2008
@@ -204,7 +204,7 @@
KEYWORD(int , 0)
KEYWORD(long , 0)
KEYWORD(register , 0)
-KEYWORD(restrict , EXTC90) // Ext in C90
+KEYWORD(restrict , NOTC90) // Not in C90
KEYWORD(return , 0)
KEYWORD(short , 0)
KEYWORD(signed , 0)
Modified: cfe/trunk/test/Sema/c89.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/c89.c?rev=47160&r1=47159&r2=47160&view=diff
==============================================================================
--- cfe/trunk/test/Sema/c89.c (original)
+++ cfe/trunk/test/Sema/c89.c Fri Feb 15 12:02:59 2008
@@ -30,3 +30,6 @@
/* PR1999 */
void test5(register);
+/* PR2041 */
+int *restrict;
+
More information about the cfe-commits
mailing list