diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-09 00:03:17 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-09 00:03:17 +0000 |
commit | aa58081902ad31927df02e8537d972eabe29d6df (patch) | |
tree | b6f5f6acf0c80eaec20a2131369fd81026ede6a0 /lib/AST/RawCommentList.cpp | |
parent | 42f74f21ece01dc8573d5377859d327fbb23b26c (diff) |
Comment parsing: extract TableGen'able pieces into new CommandTraits class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161548 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/RawCommentList.cpp')
-rw-r--r-- | lib/AST/RawCommentList.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/AST/RawCommentList.cpp b/lib/AST/RawCommentList.cpp index 41866cf03f..4f7165f0e4 100644 --- a/lib/AST/RawCommentList.cpp +++ b/lib/AST/RawCommentList.cpp @@ -11,6 +11,7 @@ #include "clang/AST/ASTContext.h" #include "clang/AST/CommentLexer.h" #include "clang/AST/CommentBriefParser.h" +#include "clang/AST/CommentCommandTraits.h" #include "llvm/ADT/STLExtras.h" using namespace clang; @@ -139,10 +140,11 @@ const char *RawComment::extractBriefText(const ASTContext &Context) const { // a separate allocator for all temporary stuff. llvm::BumpPtrAllocator Allocator; - comments::Lexer L(Allocator, + comments::CommandTraits Traits; + comments::Lexer L(Allocator, Traits, Range.getBegin(), comments::CommentOptions(), RawText.begin(), RawText.end()); - comments::BriefParser P(L); + comments::BriefParser P(L, Traits); const std::string Result = P.Parse(); const unsigned BriefTextLength = Result.size(); |