summaryrefslogtreecommitdiffstats
path: root/clang/lib/ASTMatchers
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2018-11-15 21:35:35 +0000
committerErich Keane <erich.keane@intel.com>2018-11-15 21:35:35 +0000
commita6e4a3987ca59716576f4107f521bb4225dfee98 (patch)
tree3d857746abd914e8bc05f60f88611db95dd11d76 /clang/lib/ASTMatchers
parent22bfa99448ec2d706ddb6a831e1b1f0d2ea5c524 (diff)
downloadbcm5719-llvm-a6e4a3987ca59716576f4107f521bb4225dfee98.tar.gz
bcm5719-llvm-a6e4a3987ca59716576f4107f521bb4225dfee98.zip
Fix parens warning in assert in ASTMatchFinder
Change-Id: Ie34f9c6846b98fba87449e73299519fc2346bac1 llvm-svn: 346996
Diffstat (limited to 'clang/lib/ASTMatchers')
-rw-r--r--clang/lib/ASTMatchers/ASTMatchFinder.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/ASTMatchers/ASTMatchFinder.cpp b/clang/lib/ASTMatchers/ASTMatchFinder.cpp
index 8d65714317d..32d8282f6df 100644
--- a/clang/lib/ASTMatchers/ASTMatchFinder.cpp
+++ b/clang/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<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) {
OpenPOWER on IntegriCloud