[LLVMdev] fix a "does not name a type" bug in VASTContext.h

Qingrui Liu liuqingrui422 at gmail.com
Thu Mar 8 06:22:21 PST 2012


Hi all,
   I find a bug in the VASTContext.h of the latest clang. I fixed it and
commit a patch for it. As follows:

>From 447d31176b513a03b253eb25ef314c2a3c0e428a Mon Sep 17 00:00:00 2001
From: Tsingray <tsingray at buildbot-slave-desktop.(none)>
Date: Thu, 8 Mar 2012 22:11:54 +0800
Subject: [PATCH] fix a 'does not name a type' bug in VASTContext.h

---
 include/clang/AST/ASTContext.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h
index 3bdac2d..530f957 100644
--- a/include/clang/AST/ASTContext.h
+++ b/include/clang/AST/ASTContext.h
@@ -480,7 +480,7 @@ public:
                                   const FieldDecl *LastFD) const;

   // Access to the set of methods overridden by the given C++ method.
-  typedef CXXMethodVector::const_iterator overridden_cxx_method_iterator;
+  typedef CXXMethodVector::iterator overridden_cxx_method_iterator;
   overridden_cxx_method_iterator
   overridden_methods_begin(const CXXMethodDecl *Method) const;

-- 
1.7.0.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120308/7ee1a1f8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-a-does-not-name-a-type-bug-in-VASTContext.h.patch
Type: application/octet-stream
Size: 935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120308/7ee1a1f8/attachment.obj>


More information about the llvm-dev mailing list