[cfe-commits] r158845 - in /cfe/trunk: include/clang/AST/ASTContext.h include/clang/AST/RawCommentList.h lib/AST/RawCommentList.cpp
Dmitri Gribenko
gribozavr at gmail.com
Wed Jun 20 13:39:04 PDT 2012
Author: gribozavr
Date: Wed Jun 20 15:39:04 2012
New Revision: 158845
URL: http://llvm.org/viewvc/llvm-project?rev=158845&view=rev
Log:
Remove unused ASTContext& arg in RawCommentList::addComment, as pointed out by Chandler in commit message for r158807.
Modified:
cfe/trunk/include/clang/AST/ASTContext.h
cfe/trunk/include/clang/AST/RawCommentList.h
cfe/trunk/lib/AST/RawCommentList.cpp
Modified: cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=158845&r1=158844&r2=158845&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Wed Jun 20 15:39:04 2012
@@ -435,7 +435,7 @@
public:
void addComment(const RawComment &RC) {
- Comments.addComment(RC, *this);
+ Comments.addComment(RC);
}
/// \brief Return the Doxygen-style comment attached to a given declaration.
Modified: cfe/trunk/include/clang/AST/RawCommentList.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/RawCommentList.h?rev=158845&r1=158844&r2=158845&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/RawCommentList.h (original)
+++ cfe/trunk/include/clang/AST/RawCommentList.h Wed Jun 20 15:39:04 2012
@@ -15,7 +15,6 @@
namespace clang {
-class ASTContext;
class ASTReader;
class RawComment {
@@ -143,7 +142,7 @@
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;
Modified: cfe/trunk/lib/AST/RawCommentList.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/RawCommentList.cpp?rev=158845&r1=158844&r2=158845&view=diff
==============================================================================
--- cfe/trunk/lib/AST/RawCommentList.cpp (original)
+++ cfe/trunk/lib/AST/RawCommentList.cpp Wed Jun 20 15:39:04 2012
@@ -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 @@
}
} // unnamed namespace
-void RawCommentList::addComment(const RawComment &RC, ASTContext &Context) {
+void RawCommentList::addComment(const RawComment &RC) {
if (RC.isInvalid())
return;
More information about the cfe-commits
mailing list