From: Erich Keane Date: Thu, 15 Nov 2018 21:35:35 +0000 (+0000) Subject: Fix parens warning in assert in ASTMatchFinder X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a4dbff1ff1f15600fa251ed1eb429c1e60d3206;p=clang Fix parens warning in assert in ASTMatchFinder Change-Id: Ie34f9c6846b98fba87449e73299519fc2346bac1 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346996 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ASTMatchers/ASTMatchFinder.cpp b/lib/ASTMatchers/ASTMatchFinder.cpp index 8d65714317..32d8282f6d 100644 --- a/lib/ASTMatchers/ASTMatchFinder.cpp +++ b/lib/ASTMatchers/ASTMatchFinder.cpp @@ -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() || - /* 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() || + /* 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) {