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/unittests/AST/CommentParser.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/unittests/AST/CommentParser.cpp')
-rw-r--r-- | clang/unittests/AST/CommentParser.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/unittests/AST/CommentParser.cpp b/clang/unittests/AST/CommentParser.cpp index 1e106c59f18..7258a7ef576 100644 --- a/clang/unittests/AST/CommentParser.cpp +++ b/clang/unittests/AST/CommentParser.cpp @@ -14,6 +14,7 @@ #include "clang/AST/CommentLexer.h" #include "clang/AST/CommentParser.h" #include "clang/AST/CommentSema.h" +#include "clang/AST/CommentCommandTraits.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/Allocator.h" #include <vector> @@ -54,11 +55,12 @@ FullComment *CommentParserTest::parseString(const char *Source) { FileID File = SourceMgr.createFileIDForMemBuffer(Buf); SourceLocation Begin = SourceMgr.getLocForStartOfFile(File); - comments::Lexer L(Allocator, Begin, CommentOptions(), + comments::CommandTraits Traits; + comments::Lexer L(Allocator, Traits, Begin, CommentOptions(), Source, Source + strlen(Source)); - comments::Sema S(Allocator, SourceMgr, Diags); - comments::Parser P(L, S, Allocator, SourceMgr, Diags); + comments::Sema S(Allocator, SourceMgr, Diags, Traits); + comments::Parser P(L, S, Allocator, SourceMgr, Diags, Traits); comments::FullComment *FC = P.parseFullComment(); if (DEBUG) { |