summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-06-26 20:39:18 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-06-26 20:39:18 +0000
commit5188c4b9cc063b1be5fbb4688711f91b7cadd62f (patch)
tree432598630731554a67aef1a0a821c83bdaf122b6 /clang/lib/AST/ASTContext.cpp
parentadd5e9e289b0e0f5e46617219f076c39fecff2a3 (diff)
downloadbcm5719-llvm-5188c4b9cc063b1be5fbb4688711f91b7cadd62f.tar.gz
bcm5719-llvm-5188c4b9cc063b1be5fbb4688711f91b7cadd62f.zip
Implement a lexer for structured comments.
llvm-svn: 159223
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 23751a56f24..ca631736d90 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -90,7 +90,7 @@ const RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const {
// First check whether we have a trailing comment.
if (Comment != RawComments.end() &&
- Comment->isDoxygen() && Comment->isTrailingComment() &&
+ Comment->isDocumentation() && Comment->isTrailingComment() &&
!isa<TagDecl>(D) && !isa<NamespaceDecl>(D)) {
std::pair<FileID, unsigned> CommentBeginDecomp
= SourceMgr.getDecomposedLoc(Comment->getSourceRange().getBegin());
@@ -111,7 +111,7 @@ const RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const {
--Comment;
// Check that we actually have a non-member Doxygen comment.
- if (!Comment->isDoxygen() || Comment->isTrailingComment())
+ if (!Comment->isDocumentation() || Comment->isTrailingComment())
return NULL;
// Decompose the end of the comment.
OpenPOWER on IntegriCloud