summaryrefslogtreecommitdiff
path: root/unittests/AST
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-05-03 23:15:20 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-05-03 23:15:20 +0000
commitad6fd9f93ce0d328397e8d57ef7117ced24fc8e2 (patch)
treeff65aa9339d215a60b3a59212e7795cc6fcec093 /unittests/AST
parentcc2b653c319599f502425d2c3de29865d47bb9e4 (diff)
downloadclang-ad6fd9f93ce0d328397e8d57ef7117ced24fc8e2.tar.gz
clang-ad6fd9f93ce0d328397e8d57ef7117ced24fc8e2.tar.bz2
clang-ad6fd9f93ce0d328397e8d57ef7117ced24fc8e2.tar.xz
[Doc parsing] Provide diagnostics for unknown documentation
commands. // rdar://12381408 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181071 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/AST')
-rw-r--r--unittests/AST/CommentLexer.cpp2
-rw-r--r--unittests/AST/CommentParser.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/unittests/AST/CommentLexer.cpp b/unittests/AST/CommentLexer.cpp
index 507daf8391..fc0fd77275 100644
--- a/unittests/AST/CommentLexer.cpp
+++ b/unittests/AST/CommentLexer.cpp
@@ -64,7 +64,7 @@ void CommentLexerTest::lexString(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));
while (1) {
Token Tok;
diff --git a/unittests/AST/CommentParser.cpp b/unittests/AST/CommentParser.cpp
index 3dce60ab73..d05fb58faf 100644
--- a/unittests/AST/CommentParser.cpp
+++ b/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);