Author: erichkeane Date: Thu Nov 15 13:35:35 2018 New Revision: 346996 URL: http://llvm.org/viewvc/llvm-project?rev=346996&view=rev Log: Fix parens warning in assert in ASTMatchFinder
Change-Id: Ie34f9c6846b98fba87449e73299519fc2346bac1 Modified: cfe/trunk/lib/ASTMatchers/ASTMatchFinder.cpp Modified: cfe/trunk/lib/ASTMatchers/ASTMatchFinder.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/ASTMatchers/ASTMatchFinder.cpp?rev=346996&r1=346995&r2=346996&view=diff ============================================================================== --- cfe/trunk/lib/ASTMatchers/ASTMatchFinder.cpp (original) +++ cfe/trunk/lib/ASTMatchers/ASTMatchFinder.cpp Thu Nov 15 13:35:35 2018 @@ -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) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits