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 | ca7f80ada0d3bb905572d5711111bb3ac2fec434 (patch) | |
tree | 66f31ce77fe5d331251a62453f45fcda8729d061 /clang/lib/AST/RawCommentList.cpp | |
parent | 5fbbc5bfe86f03a9b400757d3a91585f00225c83 (diff) | |
download | bcm5719-llvm-ca7f80ada0d3bb905572d5711111bb3ac2fec434.tar.gz bcm5719-llvm-ca7f80ada0d3bb905572d5711111bb3ac2fec434.zip |
Comment parsing: extract TableGen'able pieces into new CommandTraits class.
llvm-svn: 161548
Diffstat (limited to 'clang/lib/AST/RawCommentList.cpp')
-rw-r--r-- | clang/lib/AST/RawCommentList.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/AST/RawCommentList.cpp b/clang/lib/AST/RawCommentList.cpp index 41866cf03f1..4f7165f0e4a 100644 --- a/clang/lib/AST/RawCommentList.cpp +++ b/clang/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(); |