From df5322bedb2068f67a1decddadfc31a345d5aa44 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 18 Sep 2014 03:49:06 +0000 Subject: [PATCH] Work around MSVC parser bug by putting redundant braces around the body of this range-based for loop. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@218011 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/DataRecursiveASTVisitor.h | 3 ++- include/clang/AST/RecursiveASTVisitor.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/clang/AST/DataRecursiveASTVisitor.h b/include/clang/AST/DataRecursiveASTVisitor.h index e8ef806445..0833d7afbf 100644 --- a/include/clang/AST/DataRecursiveASTVisitor.h +++ b/include/clang/AST/DataRecursiveASTVisitor.h @@ -2146,8 +2146,9 @@ bool RecursiveASTVisitor::TraverseLambdaExpr(LambdaExpr *S) { } auto *T = Proto.getTypePtr(); - for (const auto &E : T->exceptions()) + for (const auto &E : T->exceptions()) { TRY_TO(TraverseType(E)); + } if (Expr *NE = T->getNoexceptExpr()) TRY_TO(TraverseStmt(NE)); diff --git a/include/clang/AST/RecursiveASTVisitor.h b/include/clang/AST/RecursiveASTVisitor.h index af0dd6dc22..5083cbf5de 100644 --- a/include/clang/AST/RecursiveASTVisitor.h +++ b/include/clang/AST/RecursiveASTVisitor.h @@ -2168,8 +2168,9 @@ bool RecursiveASTVisitor::TraverseLambdaExpr(LambdaExpr *S) { } auto *T = Proto.getTypePtr(); - for (const auto &E : T->exceptions()) + for (const auto &E : T->exceptions()) { TRY_TO(TraverseType(E)); + } if (Expr *NE = T->getNoexceptExpr()) TRY_TO(TraverseStmt(NE)); -- 2.50.1