diff options
| -rw-r--r-- | clang/include/clang/AST/ASTContext.h | 2 | ||||
| -rw-r--r-- | clang/include/clang/AST/RawCommentList.h | 3 | ||||
| -rw-r--r-- | clang/lib/AST/RawCommentList.cpp | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h index cc2d98736f7..a3678780f68 100644 --- a/clang/include/clang/AST/ASTContext.h +++ b/clang/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/clang/include/clang/AST/RawCommentList.h b/clang/include/clang/AST/RawCommentList.h index bf0b616383e..666a3e68594 100644 --- a/clang/include/clang/AST/RawCommentList.h +++ b/clang/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; diff --git a/clang/lib/AST/RawCommentList.cpp b/clang/lib/AST/RawCommentList.cpp index 07776779e87..06510294e77 100644 --- a/clang/lib/AST/RawCommentList.cpp +++ b/clang/lib/AST/RawCommentList.cpp @@ -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; |

