diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-06-26 20:39:18 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-06-26 20:39:18 +0000 |
commit | 2d44d77fed3200e2eff289f55493317e90d3398c (patch) | |
tree | d1d93511e3b05ef54497369d2d0ca603499d2862 /lib/AST/ASTContext.cpp | |
parent | 5283c99365ec4697a5a6bb2b2505469a9aa474d5 (diff) |
Implement a lexer for structured comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159223 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 23751a56f2..ca631736d9 100644 --- a/lib/AST/ASTContext.cpp +++ b/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. |