]> granicus.if.org Git - clang/commitdiff
Remove redundant semicolons which are null statements.
authorDmitri Gribenko <gribozavr@gmail.com>
Mon, 10 Sep 2012 21:20:09 +0000 (21:20 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Mon, 10 Sep 2012 21:20:09 +0000 (21:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163546 91177308-0d34-0410-b5e6-96231b3b80d8

13 files changed:
lib/AST/CommentSema.cpp
lib/AST/DeclBase.cpp
lib/AST/DeclPrinter.cpp
lib/Analysis/PrintfFormatString.cpp
lib/Analysis/ScanfFormatString.cpp
lib/CodeGen/CGExprCXX.cpp
lib/Rewrite/Frontend/RewriteModernObjC.cpp
lib/Rewrite/Frontend/RewriteObjC.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaTemplate.cpp
lib/Sema/TreeTransform.h
lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp

index 953afe147eaf9683e7d203589ea96928ff9da4dc..e57dac71044d245aba0193bf14a9d78f682fbfd4 100644 (file)
@@ -675,7 +675,7 @@ unsigned Sema::correctTypoInParmVarReference(
   if (Corrector.getBestDecl())
     return Corrector.getBestDeclIndex();
   else
-    return ParamCommandComment::InvalidParamIndex;;
+    return ParamCommandComment::InvalidParamIndex;
 }
 
 namespace {
index f9ce46def5b99449fa6ba91ba69c08f63e009667..4400d503f263b68e4698c6401813ecfaa3327d16 100644 (file)
@@ -961,7 +961,7 @@ DeclContext::lookup_result
 ExternalASTSource::SetExternalVisibleDeclsForName(const DeclContext *DC,
                                                   DeclarationName Name,
                                                   ArrayRef<NamedDecl*> Decls) {
-  ASTContext &Context = DC->getParentASTContext();;
+  ASTContext &Context = DC->getParentASTContext();
 
   StoredDeclsMap *Map;
   if (!(Map = DC->LookupPtr.getPointer()))
index 4cba2b0977fadcd9340b364ec3da9718f71f306e..56fc8e19c4f4e31c13dd77b78f551e1e1b862256 100644 (file)
@@ -462,7 +462,7 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) {
           if (I)
             Proto += ", ";
 
-          Proto += FT->getExceptionType(I).getAsString(SubPolicy);;
+          Proto += FT->getExceptionType(I).getAsString(SubPolicy);
         }
       Proto += ")";
     } else if (FT && isNoexceptExceptionSpec(FT->getExceptionSpecType())) {
index 9a4f0ca6bba839c05d84ac45ff122662d49bc5eb..b85c1c425b2b69ee6ca5655f843f9a329540d641 100644 (file)
@@ -223,7 +223,7 @@ bool clang::analyze_format_string::ParsePrintfString(FormatStringHandler &H,
     // Did a fail-stop error of any kind occur when parsing the specifier?
     // If so, don't do any more processing.
     if (FSR.shouldStop())
-      return true;;
+      return true;
     // Did we exhaust the string or encounter an error that
     // we can recover from?
     if (!FSR.hasValue())
index 082c06af5893233bcd44981a507e1ed4fb18651d..92a7d9c1dd4ecdfab8d9b90ee67acbd324f32088 100644 (file)
@@ -476,7 +476,7 @@ bool clang::analyze_format_string::ParseScanfString(FormatStringHandler &H,
     // Did a fail-stop error of any kind occur when parsing the specifier?
     // If so, don't do any more processing.
     if (FSR.shouldStop())
-      return true;;
+      return true;
       // Did we exhaust the string or encounter an error that
       // we can recover from?
     if (!FSR.hasValue())
index b4cd5c1c165f4d197cd25c7984f8b73545e3d3c3..3aa5e747812d6f828dbea027c75f3301b801feb3 100644 (file)
@@ -886,7 +886,7 @@ CodeGenFunction::EmitNewArrayInitializer(const CXXNewExpr *E,
     if (constNum->getZExtValue() <= initializerElements) {
       // If there was a cleanup, deactivate it.
       if (cleanupDominator)
-        DeactivateCleanupBlock(cleanup, cleanupDominator);;
+        DeactivateCleanupBlock(cleanup, cleanupDominator);
       return;
     }
   } else {
index 0dbdbaee332aa49aee360ea4d749b239d5ae34ac..b2ba0f0359a493b650ef3a7b11252df4bfb49873 100644 (file)
@@ -4866,7 +4866,7 @@ void RewriteModernObjC::RewriteBlockPointerDecl(NamedDecl *ND) {
       else if (*argListBegin ==  '<') {
         buf += "/*"; 
         buf += *argListBegin++;
-        OrigLength++;;
+        OrigLength++;
         while (*argListBegin != '>') {
           buf += *argListBegin++;
           OrigLength++;
index 5a0ac541be275b6a59f5981a8b6432ffd9cb454b..62def16ab5bc3cdf662c9d8705228f9f756b82df 100644 (file)
@@ -4183,7 +4183,7 @@ void RewriteObjC::RewriteBlockPointerDecl(NamedDecl *ND) {
       else if (*argListBegin ==  '<') {
         buf += "/*"; 
         buf += *argListBegin++;
-        OrigLength++;;
+        OrigLength++;
         while (*argListBegin != '>') {
           buf += *argListBegin++;
           OrigLength++;
index 318342ec7615fae053b3861cc8ff1cc7cc739b6c..5ee28da4efa773a4704b49eefcf7bd6f37abd75e 100644 (file)
@@ -4322,7 +4322,7 @@ bool SpecialMemberDeletionInfo::isAccessible(Subobject Subobj,
   /// If we're operating on a base class, the object type is the
   /// type of this special member.
   QualType objectTy;
-  AccessSpecifier access = target->getAccess();;
+  AccessSpecifier access = target->getAccess();
   if (CXXBaseSpecifier *base = Subobj.dyn_cast<CXXBaseSpecifier*>()) {
     objectTy = S.Context.getTypeDeclType(MD->getParent());
     access = CXXRecordDecl::MergeAccess(base->getAccessSpecifier(), access);
index 0905607e7205a2cd9290f761d7a7a89f22ee5c43..dc5fc284dcadfae8c60900fed1be5d448476cef2 100644 (file)
@@ -413,7 +413,7 @@ Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc,
 /// Retrieve the UuidAttr associated with QT.
 static UuidAttr *GetUuidAttrOfType(QualType QT) {
   // Optionally remove one level of pointer, reference or array indirection.
-  const Type *Ty = QT.getTypePtr();;
+  const Type *Ty = QT.getTypePtr();
   if (QT->isPointerType() || QT->isReferenceType())
     Ty = QT->getPointeeType().getTypePtr();
   else if (QT->isArrayType())
index 1e81f0d2996ae63cc0b08e7c632c5f3f2fc5f819..db9f7d3585e39247e71e28beb713ccdf772ce373 100644 (file)
@@ -4426,7 +4426,7 @@ ExprResult Sema::CheckTemplateArgument(NonTypeTemplateParmDecl *Param,
     case NPV_NullPointer:
       Diag(Arg->getExprLoc(), diag::warn_cxx98_compat_template_arg_null);
       Converted = TemplateArgument((Decl *)0);
-      return Owned(Arg);;
+      return Owned(Arg);
     }
   }
 
index 19636f41438f1b0132c74585bef5f3801c68f967..0c1f1a42a04123a9faa815d61b39761871ce1c18 100644 (file)
@@ -6368,7 +6368,7 @@ TreeTransform<Derived>::TransformCallExpr(CallExpr *E) {
   if (!getDerived().AlwaysRebuild() &&
       Callee.get() == E->getCallee() &&
       !ArgChanged)
-    return SemaRef.MaybeBindToTemporary(E);;
+    return SemaRef.MaybeBindToTemporary(E);
 
   // FIXME: Wrong source location information for the '('.
   SourceLocation FakeLParenLoc
index 7a2586557168b520c856ceb74568976c7e12205a..90872058af55ded66102c5f4226f7cbd817e516e 100644 (file)
@@ -85,7 +85,7 @@ static bool scan_ivar_release(Stmt *S, ObjCIvarDecl *ID,
                                             Expr::NPC_ValueDependentIsNull)) {
               // This is only a 'release' if the property kind is not
               // 'assign'.
-              return PD->getSetterKind() != ObjCPropertyDecl::Assign;;
+              return PD->getSetterKind() != ObjCPropertyDecl::Assign;
             }
 
   // Recurse to children.