forked from OSchip/llvm-project
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:
parent
4cb2e2dc63
commit
93b9ecba9b
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue