[cfe-commits] [PATCH][MS][Review request] - Optional template keyword in Microsoft mode.
Francois Pichet
pichet2000 at gmail.com
Wed Mar 23 21:47:22 PDT 2011
Hi,
Small parser hack to be able to parse type dependent template name
without the "template" keyword in Microsoft mode.
This patch fixes about a dozen compile errors when parsing MSVC STL
headers with clang.
For example:
=========
template <class A>
class C1 {
public:
template <int B>
class Iterator {
};
};
template<class T>
class C2 {
// template is optional in microsoft mode.
typename C1<T>:: /*template*/ Iterator<0> Mypos;
};
ok to commit?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: optional_template_keyword.patch
Type: application/octet-stream
Size: 4431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110324/561c6b5b/attachment.obj>
More information about the cfe-commits
mailing list