diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-05-04 00:47:28 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-05-04 00:47:28 +0000 |
commit | efa78d163214fd9e909ab2bf6911edfbc7a2b9df (patch) | |
tree | db8626b9d3a4fbd0695f0bb9f22c07f56e683eeb /lib/AST/CommentLexer.cpp | |
parent | c95d413660756c474bc8f97e5b32edc7ddff3850 (diff) |
[doc parsing]: Make warning about unknown command
tags off by default for now. Move diagnostic code
to DiagnosticCommentKinds.td. // rdar://12381408
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/CommentLexer.cpp')
-rw-r--r-- | lib/AST/CommentLexer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/AST/CommentLexer.cpp b/lib/AST/CommentLexer.cpp index 82efac64ff..70410d6108 100644 --- a/lib/AST/CommentLexer.cpp +++ b/lib/AST/CommentLexer.cpp @@ -1,6 +1,6 @@ #include "clang/AST/CommentLexer.h" -#include "clang/Lex/LexDiagnostic.h" #include "clang/AST/CommentCommandTraits.h" +#include "clang/AST/CommentDiagnostic.h" #include "clang/Basic/CharInfo.h" #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringSwitch.h" @@ -354,8 +354,7 @@ void Lexer::lexCommentText(Token &T) { if (!Info) { formTokenWithChars(T, TokenPtr, tok::unknown_command); T.setUnknownCommandName(CommandName); - Diag(T.getLocation(), - diag::warn_unknown_comment_command_name); + Diag(T.getLocation(), diag::warn_unknown_comment_command_name); return; } if (Info->IsVerbatimBlockCommand) { |