]> granicus.if.org Git - clang/commitdiff
Remove unused ASTContext& arg in RawCommentList::addComment, as pointed out by Chandl...
authorDmitri Gribenko <gribozavr@gmail.com>
Wed, 20 Jun 2012 20:39:04 +0000 (20:39 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Wed, 20 Jun 2012 20:39:04 +0000 (20:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158845 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTContext.h
include/clang/AST/RawCommentList.h
lib/AST/RawCommentList.cpp

index cc2d98736f79da168b643b1bf2d775f5679d8ebd..a3678780f682f2143945f66e7559c8af62c8606d 100644 (file)
@@ -435,7 +435,7 @@ public:
 
 public:
   void addComment(const RawComment &RC) {
-    Comments.addComment(RC, *this);
+    Comments.addComment(RC);
   }
 
   /// \brief Return the Doxygen-style comment attached to a given declaration.
index bf0b616383e08f7c7579b4dd3d159cdad58bafe9..666a3e6859427898377600e9bf522d702b03bd2a 100644 (file)
@@ -15,7 +15,6 @@
 
 namespace clang {
 
-class ASTContext;
 class ASTReader;
 
 class RawComment {
@@ -143,7 +142,7 @@ public:
   RawCommentList(SourceManager &SourceMgr) :
     SourceMgr(SourceMgr), OnlyWhitespaceSeen(true) { }
 
-  void addComment(const RawComment &RC, ASTContext &Context);
+  void addComment(const RawComment &RC);
 
   ArrayRef<RawComment> getComments() const {
     return Comments;
index 07776779e87059c2471ecb3d30e2e77071a416fb..06510294e77f494798b148168bb2eb069eb1e901 100644 (file)
@@ -8,7 +8,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "clang/AST/RawCommentList.h"
-#include "clang/AST/ASTContext.h"
 #include "llvm/ADT/STLExtras.h"
 
 using namespace clang;
@@ -155,7 +154,7 @@ bool onlyWhitespaceBetweenComments(SourceManager &SM,
 }
 } // unnamed namespace
 
-void RawCommentList::addComment(const RawComment &RC, ASTContext &Context) {
+void RawCommentList::addComment(const RawComment &RC) {
   if (RC.isInvalid())
     return;