From ca7f80ada0d3bb905572d5711111bb3ac2fec434 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Thu, 9 Aug 2012 00:03:17 +0000 Subject: Comment parsing: extract TableGen'able pieces into new CommandTraits class. llvm-svn: 161548 --- clang/unittests/AST/CommentLexer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'clang/unittests/AST/CommentLexer.cpp') 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 @@ -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) { -- cgit v1.2.3