[cfe-commits] r145580 - in /cfe/trunk: include/clang/Basic/TokenKinds.def test/Parser/MicrosoftExtensions.cpp

Francois Pichet pichet2000 at gmail.com
Thu Dec 1 00:30:48 PST 2011


Author: fpichet
Date: Thu Dec  1 02:30:47 2011
New Revision: 145580

URL: http://llvm.org/viewvc/llvm-project?rev=145580&view=rev
Log:
Change the Microsoft __interface keyword to be an alias for struct (not class) since members are public by default.

Modified:
    cfe/trunk/include/clang/Basic/TokenKinds.def
    cfe/trunk/test/Parser/MicrosoftExtensions.cpp

Modified: cfe/trunk/include/clang/Basic/TokenKinds.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/TokenKinds.def?rev=145580&r1=145579&r2=145580&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/TokenKinds.def (original)
+++ cfe/trunk/include/clang/Basic/TokenKinds.def Thu Dec  1 02:30:47 2011
@@ -501,7 +501,7 @@
 ALIAS("_uuidof"      , __uuidof   , KEYMS | KEYBORLAND)
 ALIAS("_inline"      , inline     , KEYMS)
 ALIAS("_declspec"    , __declspec , KEYMS)
-ALIAS("__interface"  , class      , KEYMS)
+ALIAS("__interface"  , struct     , KEYMS)
 
 // Borland Extensions which should be disabled in strict conformance mode.
 ALIAS("_pascal"      , __pascal   , KEYBORLAND)

Modified: cfe/trunk/test/Parser/MicrosoftExtensions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/MicrosoftExtensions.cpp?rev=145580&r1=145579&r2=145580&view=diff
==============================================================================
--- cfe/trunk/test/Parser/MicrosoftExtensions.cpp (original)
+++ cfe/trunk/test/Parser/MicrosoftExtensions.cpp Thu Dec  1 02:30:47 2011
@@ -165,6 +165,11 @@
    virtual void foo2() = 0;
 };
 
+void interface_test() {
+  MicrosoftInterface* a;
+  a->foo1();
+}
+
 __int64 x7 = __int64(0);
 
 





More information about the cfe-commits mailing list