summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Comment.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-07-19 00:01:56 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-07-19 00:01:56 +0000
commit7b2ca3e80bf3bb9ff8fbe0d5cc773b2cf07f6608 (patch)
tree40bf67520ddb0acfdc7f03c54dbb1d9b665fb1d4 /clang/lib/AST/Comment.cpp
parent0de5913855f8fc938d5a9eed5de89761c9c9c966 (diff)
downloadbcm5719-llvm-7b2ca3e80bf3bb9ff8fbe0d5cc773b2cf07f6608.tar.gz
bcm5719-llvm-7b2ca3e80bf3bb9ff8fbe0d5cc773b2cf07f6608.zip
Fix ParagraphComment::isWhitespace(): a paragraph without a non-whitespace
TextComment node was considered whitespace even if it contained other child nodes. llvm-svn: 160474
Diffstat (limited to 'clang/lib/AST/Comment.cpp')
-rw-r--r--clang/lib/AST/Comment.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/Comment.cpp b/clang/lib/AST/Comment.cpp
index f3f4d9bf16e..82dbed47f8a 100644
--- a/clang/lib/AST/Comment.cpp
+++ b/clang/lib/AST/Comment.cpp
@@ -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;
}
OpenPOWER on IntegriCloud