« Return to Thread: fix a "does not name a type" bug in VASTContext.h

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

by Qingrui Liu :: Rate this Message:

| View in Thread

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@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


_______________________________________________
LLVM Developers mailing list
LLVMdev@...         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

0001-fix-a-does-not-name-a-type-bug-in-VASTContext.h.patch (1K) Download Attachment

 « Return to Thread: fix a "does not name a type" bug in VASTContext.h