From: Douglas Gregor Date: Fri, 7 Oct 2011 20:35:25 +0000 (+0000) Subject: Add braces around do-while body. The lack of them gives me the chills X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8828ee7faa42f889ade3bb635dc5f1338be671b1;p=clang Add braces around do-while body. The lack of them gives me the chills git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141411 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseDeclCXX.cpp b/lib/Parse/ParseDeclCXX.cpp index 5d7a7729f1..1ec6fcbaed 100644 --- a/lib/Parse/ParseDeclCXX.cpp +++ b/lib/Parse/ParseDeclCXX.cpp @@ -2689,9 +2689,9 @@ void Parser::ParseCXX0XAttributes(ParsedAttributesWithRange &attrs, if (!endLoc) endLoc = &Loc; - do + do { ParseCXX0XAttributeSpecifier(attrs, endLoc); - while (isCXX0XAttributeSpecifier()); + } while (isCXX0XAttributeSpecifier()); attrs.Range = SourceRange(StartLoc, *endLoc); }