Fix ParagraphComment::isWhitespace(): a paragraph without a non-whitespace
TextComment node was considered whitespace even if it contained other child nodes. llvm-svn: 160474
This commit is contained in:
parent
0de5913855
commit
7b2ca3e80b
|
@ -116,7 +116,8 @@ bool ParagraphComment::isWhitespaceNoCache() const {
|
|||
if (const TextComment *TC = dyn_cast<TextComment>(*I)) {
|
||||
if (!TC->isWhitespace())
|
||||
return false;
|
||||
}
|
||||
} else
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -104,6 +104,9 @@ int test_block_command4(int);
|
|||
/// \brief Aaa
|
||||
int test_block_command5(int);
|
||||
|
||||
/// \brief \c Aaa
|
||||
int test_block_command6(int);
|
||||
|
||||
// expected-warning@+1 {{'\param' command used in a comment that is not attached to a function declaration}}
|
||||
/// \param a Blah blah.
|
||||
int test_param1;
|
||||
|
|
Loading…
Reference in New Issue