[cfe-commits] [PATCH][MS][Review request] - Microsoft function specialization at scope scope

Francois Pichet pichet2000 at gmail.com
Thu Jun 16 18:26:49 PDT 2011

I struggled getting this patch right and I am not confident enough to
submit it directly without review so here it is:
Template function specialization at class scope for -fms-extensions

template <class T>
class B {
   template <class U>
   void f(U p) {   }

   template <>
    void f(int p) {	}  // <= not standard C++, Microsoft extension

As Doug suggested to me on the IRC chat, I created a new Decl node:
This node hold a temporary CXXMethodDecl and it will use it to create
an explicit specialization during class instantiation.

This patch is necessary to parse the MSVC 2010, MFC and ATL code.
PS: I'll add serialization in a follow-up patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ClassScopeExplicitSpec.patch
Type: application/octet-stream
Size: 17347 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110616/ba09736f/attachment.obj>

More information about the cfe-commits mailing list