summaryrefslogtreecommitdiffstats
path: root/clang/unittests/AST/CommentLexer.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-08-09 00:03:17 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-08-09 00:03:17 +0000
commitca7f80ada0d3bb905572d5711111bb3ac2fec434 (patch)
tree66f31ce77fe5d331251a62453f45fcda8729d061 /clang/unittests/AST/CommentLexer.cpp
parent5fbbc5bfe86f03a9b400757d3a91585f00225c83 (diff)
downloadbcm5719-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/CommentLexer.cpp')
-rw-r--r--clang/unittests/AST/CommentLexer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/unittests/AST/CommentLexer.cpp b/clang/unittests/AST/CommentLexer.cpp
index 8b5d0c8cf01..cab0fdddbc2 100644
--- a/clang/unittests/AST/CommentLexer.cpp
+++ b/clang/unittests/AST/CommentLexer.cpp
@@ -11,6 +11,7 @@
#include "clang/Basic/FileManager.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/AST/CommentLexer.h"
+#include "clang/AST/CommentCommandTraits.h"
#include "llvm/ADT/STLExtras.h"
#include <vector>
@@ -48,7 +49,8 @@ void CommentLexerTest::lexString(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));
while (1) {
OpenPOWER on IntegriCloud