Fix parens warning in assert in ASTMatchFinder

Change-Id: Ie34f9c6846b98fba87449e73299519fc2346bac1
llvm-svn: 346996
This commit is contained in:
Erich Keane 2018-11-15 21:35:35 +00:00
parent 22bfa99448
commit a6e4a3987c
1 changed files with 7 additions and 7 deletions

View File

@ -676,13 +676,13 @@ private:
// c) there is a bug in the AST, and the node is not reachable
// Usually the traversal scope is the whole AST, which precludes b.
// Bugs are common enough that it's worthwhile asserting when we can.
assert(Node.get<TranslationUnitDecl>() ||
/* Traversal scope is limited if none of the bounds are the TU */
llvm::none_of(ActiveASTContext->getTraversalScope(),
[](Decl *D) {
return D->getKind() == Decl::TranslationUnit;
}) &&
"Found node that is not in the complete parent map!");
assert((Node.get<TranslationUnitDecl>() ||
/* Traversal scope is limited if none of the bounds are the TU */
llvm::none_of(ActiveASTContext->getTraversalScope(),
[](Decl *D) {
return D->getKind() == Decl::TranslationUnit;
})) &&
"Found node that is not in the complete parent map!");
return false;
}
if (Parents.size() == 1) {