Remove unused ASTContext& arg in RawCommentList::addComment, as pointed out by Chandler in commit message for r158807.

llvm-svn: 158845
This commit is contained in:
Dmitri Gribenko 2012-06-20 20:39:04 +00:00
parent 4cb2e2dc63
commit 93b9ecba9b
3 changed files with 3 additions and 5 deletions

View 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.

View 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;

View 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;