From 5b637078e1ab1946ef771210c97ca4b4bfacc4f5 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Fri, 3 May 2013 23:15:20 +0000 Subject: [Doc parsing] Provide diagnostics for unknown documentation commands. // rdar://12381408 llvm-svn: 181071 --- clang/unittests/AST/CommentParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/unittests/AST/CommentParser.cpp') diff --git a/clang/unittests/AST/CommentParser.cpp b/clang/unittests/AST/CommentParser.cpp index 3dce60ab731..d05fb58fafa 100644 --- a/clang/unittests/AST/CommentParser.cpp +++ b/clang/unittests/AST/CommentParser.cpp @@ -58,7 +58,7 @@ FullComment *CommentParserTest::parseString(const char *Source) { FileID File = SourceMgr.createFileIDForMemBuffer(Buf); SourceLocation Begin = SourceMgr.getLocForStartOfFile(File); - Lexer L(Allocator, Traits, Begin, Source, Source + strlen(Source)); + Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source)); Sema S(Allocator, SourceMgr, Diags, Traits, /*PP=*/ NULL); Parser P(L, S, Allocator, SourceMgr, Diags, Traits); -- cgit v1.2.3