aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-06-20 20:39:04 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-06-20 20:39:04 +0000
commit59c30cd804c162dcc1c156bd3bab5c8f1dfd4749 (patch)
tree2ace294c795cea455a8c4ed8c066e8c100d68ec8 /include
parent4b554f4756cefdce6e0109e96d2f13d594b30b8c (diff)
Remove unused ASTContext& arg in RawCommentList::addComment, as pointed out by Chandler in commit message for r158807.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang/AST/ASTContext.h2
-rw-r--r--include/clang/AST/RawCommentList.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h
index cc2d98736f..a3678780f6 100644
--- a/include/clang/AST/ASTContext.h
+++ b/include/clang/AST/ASTContext.h
@@ -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.
diff --git a/include/clang/AST/RawCommentList.h b/include/clang/AST/RawCommentList.h
index bf0b616383..666a3e6859 100644
--- a/include/clang/AST/RawCommentList.h
+++ b/include/clang/AST/RawCommentList.h
@@ -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;