public:
void addComment(const RawComment &RC) {
- Comments.addComment(RC, *this);
+ Comments.addComment(RC);
}
/// \brief Return the Doxygen-style comment attached to a given declaration.
namespace clang {
-class ASTContext;
class ASTReader;
class RawComment {
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;
//===----------------------------------------------------------------------===//
#include "clang/AST/RawCommentList.h"
-#include "clang/AST/ASTContext.h"
#include "llvm/ADT/STLExtras.h"
using namespace clang;
}
} // unnamed namespace
-void RawCommentList::addComment(const RawComment &RC, ASTContext &Context) {
+void RawCommentList::addComment(const RawComment &RC) {
if (RC.isInvalid())
return;