]> granicus.if.org Git - clang/commitdiff
Add braces around do-while body. The lack of them gives me the chills
authorDouglas Gregor <dgregor@apple.com>
Fri, 7 Oct 2011 20:35:25 +0000 (20:35 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 7 Oct 2011 20:35:25 +0000 (20:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141411 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseDeclCXX.cpp

index 5d7a7729f1886daca16d74051cf002fdcae88c4a..1ec6fcbaed884bbf0d706e27d0c118175bac0c32 100644 (file)
@@ -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);
 }