diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-09-13 20:36:01 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-09-13 20:36:01 +0000 |
commit | abcf0dccc9cd4c802f4e7797bf452c6808d2226f (patch) | |
tree | 7a950299eccacee691c4265483b05e3662a1b448 /lib/AST/CommentSema.cpp | |
parent | 9fb6f7939c4b76b444b7f7b2761b130e7709ac08 (diff) |
Comment parsing: handle \deprecated command. It is a block command, but it
should be fine to use it without further explanations in the attached
paragraph, so the warning about empty paragraph was turned off for it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/CommentSema.cpp')
-rw-r--r-- | lib/AST/CommentSema.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AST/CommentSema.cpp b/lib/AST/CommentSema.cpp index 477717f735..6d84a2a4b9 100644 --- a/lib/AST/CommentSema.cpp +++ b/lib/AST/CommentSema.cpp @@ -415,6 +415,9 @@ FullComment *Sema::actOnFullComment( } void Sema::checkBlockCommandEmptyParagraph(BlockCommandComment *Command) { + if (Traits.getCommandInfo(Command->getCommandID())->IsEmptyParagraphAllowed) + return; + ParagraphComment *Paragraph = Command->getParagraph(); if (Paragraph->isWhitespace()) { SourceLocation DiagLoc; |