]> granicus.if.org Git - clang/commitdiff
_inline is an alias for inline in MSVC.
authorFrancois Pichet <pichet2000@gmail.com>
Wed, 6 Oct 2010 13:02:48 +0000 (13:02 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Wed, 6 Oct 2010 13:02:48 +0000 (13:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115785 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/TokenKinds.def
test/Parser/MicrosoftExtensions.c

index 8e0653464167747ee3a9edd91d6f5f3a7ee77a55..f222eeaf70815532c3c45bb1be578fb904f7d0f4 100644 (file)
@@ -377,6 +377,7 @@ ALIAS("_fastcall"    , __fastcall , KEYMS | KEYBORLAND)
 ALIAS("_stdcall"     , __stdcall  , KEYMS | KEYBORLAND)
 ALIAS("_thiscall"    , __thiscall , KEYMS)
 ALIAS("_uuidof"      , __uuidof   , KEYMS | KEYBORLAND)
+ALIAS("_inline"      , inline     , KEYMS)
 
 // Borland Extensions which should be disabled in strict conformance mode.
 ALIAS("_pascal"      , __pascal   , KEYBORLAND)
index 3dfa241fa178e9567d03093915833304de992845..dcb55ad50cf392810a09a59c184c5e3d234a1b18 100644 (file)
@@ -21,6 +21,7 @@ void __forceinline InterlockedBitTestAndSet (long *Base, long Bit)
     setc al
   };
 }
+_inline int foo99() { return 99; }
 
 void *_alloca(int);