aboutsummaryrefslogtreecommitdiff
path: root/lib/Rewrite/Rewriter.cpp
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2011-04-13 02:38:49 +0000
committerFrancois Pichet <pichet2000@gmail.com>2011-04-13 02:38:49 +0000
commit6943e9befee204becfae55de1298b3d5fee87934 (patch)
treec0640128f27b36579cf4343aaf5b4e6647d32a14 /lib/Rewrite/Rewriter.cpp
parentad3692bbe1874abafae1757a2b9d3bfa2249dc43 (diff)
In Microsoft mode, within class scope, if a CXXScopeSpec's type is equal to the type of one of the base classes then downgrade the missing typename error to a warning. Up to now this is the only case I found where MSVC doesn't require "typename" at class scope. Really strange!
This fixes 1 error when parsing the MSVC 2008 header files. Example: template<class T> class A { public: typedef int TYPE; }; template<class T> class B : public A<T> { public: A<T>::TYPE a; // no typename required because A<T> is a base class. }; git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129425 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Rewrite/Rewriter.cpp')
0 files changed, 0 insertions, 0 deletions