]> granicus.if.org Git - clang/commitdiff
Remove ';' after method definition. Noticed by clang++, which one would think
authorDaniel Dunbar <daniel@zuster.org>
Sat, 19 Dec 2009 17:50:07 +0000 (17:50 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 19 Dec 2009 17:50:07 +0000 (17:50 +0000)
would have a higher respect for its own code. This is getting old, is this
warning really adding value?

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91779 91177308-0d34-0410-b5e6-96231b3b80d8

16 files changed:
include/clang/AST/CanonicalType.h
include/clang/AST/Decl.h
include/clang/AST/DeclObjC.h
include/clang/AST/TemplateBase.h
include/clang/Analysis/CFG.h
include/clang/Analysis/FlowSensitive/DataflowValues.h
include/clang/Analysis/PathDiagnostic.h
include/clang/Analysis/PathSensitive/AnalysisManager.h
include/clang/Analysis/PathSensitive/ExplodedGraph.h
include/clang/Analysis/PathSensitive/SVals.h
include/clang/Analysis/PathSensitive/Store.h
include/clang/Parse/Action.h
lib/CodeGen/CGExprScalar.cpp
lib/CodeGen/CGRTTI.cpp
lib/CodeGen/ModuleBuilder.cpp
lib/Driver/Tools.h

index af8d23692e196fa27902a8914ef10ae613f60280..93e41d38d48c88a20daddafbe8066698213e7c2d 100644 (file)
@@ -559,7 +559,7 @@ template<>
 struct CanProxyAdaptor<FunctionProtoType>
   : public CanProxyBase<FunctionProtoType> {
   LLVM_CLANG_CANPROXY_TYPE_ACCESSOR(getResultType)
-  LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(unsigned, getNumArgs);
+  LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(unsigned, getNumArgs)
   CanQualType getArgType(unsigned i) const {
     return CanQualType::CreateUnsafe(this->getTypePtr()->getArgType(i));
   }
index e1c708974e69a3ca9569d9e5578ac152e2d4c723..961549c7a966908246dae7b2d0394ca4242794e5 100644 (file)
@@ -1180,7 +1180,7 @@ public:
   /// represents an C++ overloaded operator, e.g., "operator+".
   bool isOverloadedOperator() const {
     return getOverloadedOperator() != OO_None;
-  };
+  }
 
   OverloadedOperatorKind getOverloadedOperator() const;
 
index fd8c3ef7fc55c607c75fc19248bb65227964218f..ba17eb1c1d6056c70147f6a959f2f1f8e79d596f 100644 (file)
@@ -527,7 +527,7 @@ public:
   // Location information, modeled after the Stmt API.
   SourceLocation getLocStart() const { return getLocation(); } // '@'interface
   SourceLocation getLocEnd() const { return EndLoc; }
-  void setLocEnd(SourceLocation LE) { EndLoc = LE; };
+  void setLocEnd(SourceLocation LE) { EndLoc = LE; }
 
   void setClassLoc(SourceLocation Loc) { ClassLoc = Loc; }
   SourceLocation getClassLoc() const { return ClassLoc; }
@@ -707,7 +707,7 @@ public:
   // Location information, modeled after the Stmt API.
   SourceLocation getLocStart() const { return getLocation(); } // '@'protocol
   SourceLocation getLocEnd() const { return EndLoc; }
-  void setLocEnd(SourceLocation LE) { EndLoc = LE; };
+  void setLocEnd(SourceLocation LE) { EndLoc = LE; }
 
   static bool classof(const Decl *D) { return D->getKind() == ObjCProtocol; }
   static bool classof(const ObjCProtocolDecl *D) { return true; }
@@ -871,7 +871,7 @@ public:
   // Location information, modeled after the Stmt API.
   SourceLocation getLocStart() const { return getLocation(); } // '@'interface
   SourceLocation getLocEnd() const { return EndLoc; }
-  void setLocEnd(SourceLocation LE) { EndLoc = LE; };
+  void setLocEnd(SourceLocation LE) { EndLoc = LE; }
 
   static bool classof(const Decl *D) { return D->getKind() == ObjCCategory; }
   static bool classof(const ObjCCategoryDecl *D) { return true; }
index fe037992ad2fb4833463209e2f19aff52f69c834..50a100c6af1318d49b0c80c82048680b11fef97a 100644 (file)
@@ -221,7 +221,7 @@ public:
     assert(Kind == Integral &&
            "Cannot set the integral type of a non-integral template argument");
     Integer.Type = T.getAsOpaquePtr();
-  };
+  }
 
   /// \brief Retrieve the template argument as an expression.
   Expr *getAsExpr() const {
index cf9b0a0e043a8fafc3979449bcd4da2e21db6207..38d4bdfcfcede6f8eec8610863774e92ca6bafba 100644 (file)
@@ -134,7 +134,7 @@ public:
   explicit CFGBlock(unsigned blockid, BumpVectorContext &C)
     : Stmts(C), Label(NULL), Terminator(NULL), LoopTarget(NULL),
       BlockID(blockid), Preds(C, 1), Succs(C, 1) {}
-  ~CFGBlock() {};
+  ~CFGBlock() {}
 
   // Statement iterators
   typedef StatementList::iterator                      iterator;
@@ -345,7 +345,7 @@ public:
   //===--------------------------------------------------------------------===//
 
   CFG() : Entry(NULL), Exit(NULL), IndirectGotoBlock(NULL), NumBlockIDs(0),
-          BlkExprMap(NULL), Blocks(BlkBVC, 10) {};
+          BlkExprMap(NULL), Blocks(BlkBVC, 10) {}
 
   ~CFG();
 
index 648fe33ab0d49c06fbe1f1b722ba0344df72b771..7aa15c5b40efadce7d81e7f4510f4e6d66941fe9 100644 (file)
@@ -79,7 +79,7 @@ public:
 
   /// InitializeValues - Invoked by the solver to initialize state needed for
   ///  dataflow analysis.  This method is usually specialized by subclasses.
-  void InitializeValues(const CFG& cfg) {};
+  void InitializeValues(const CFG& cfg) {}
 
 
   /// getEdgeData - Retrieves the dataflow values associated with a
index 970b523e1b436823d121e47eaaceaaeadb101561..d380c45480cb44ab4dc992afb5e54b17fe613820 100644 (file)
@@ -37,7 +37,7 @@ class PathDiagnosticClient : public DiagnosticClient  {
 public:
   PathDiagnosticClient() {}
 
-  virtual ~PathDiagnosticClient() {};
+  virtual ~PathDiagnosticClient() {}
   
   virtual void
   FlushDiagnostics(llvm::SmallVectorImpl<std::string> *FilesMade = 0) = 0;
index 9ef5cce1002b91ea238acea79b3350ddaf872c8e..70a5082821a3afce109afcc155d80a1864f5ed45 100644 (file)
@@ -73,7 +73,7 @@ public:
 
   StoreManagerCreator getStoreManagerCreator() {
     return CreateStoreMgr;
-  };
+  }
 
   ConstraintManagerCreator getConstraintManagerCreator() {
     return CreateConstraintMgr;
index 76cab1ddc127e4269d2918069e4393994699acb5..fb5e1b8a415fc27d61765d08e7a9bdebf55d0d47 100644 (file)
@@ -207,7 +207,7 @@ class InterExplodedGraphMap {
 public:
   ExplodedNode* getMappedNode(const ExplodedNode* N) const;
 
-  InterExplodedGraphMap() {};
+  InterExplodedGraphMap() {}
   virtual ~InterExplodedGraphMap() {}
 };
 
index 3cd4f1c550632b9d3b0a4496861b134b60ecab1d..9206817989db466932b210e788493258ade223e0 100644 (file)
@@ -58,7 +58,7 @@ protected:
 
 public:
   SVal() : Data(0), Kind(0) {}
-  ~SVal() {};
+  ~SVal() {}
 
   /// BufferTy - A temporary buffer to hold a set of SVals.
   typedef llvm::SmallVector<SVal,5> BufferTy;
index fcc1cd306b614b1417c2ac164b13698a8cec60b9..52d73da15bc14e63dd550ba3c9891360f4f5f993 100644 (file)
@@ -204,7 +204,7 @@ public:
 
   class Visitor {
   public:
-    virtual ~Visitor() {};
+    virtual ~Visitor() {}
     virtual bool Visit(const MemRegion* Parent, const MemRegion* SubRegion) = 0;
   };
 
index 6c04ea4eee41a3ae1056ef38e1a0cc070129c27a..50f4302019ad992ba795fdafd091046098cabc4d 100644 (file)
@@ -1750,7 +1750,7 @@ public:
                                          ASTTemplateArgsPtr TemplateArgs,
                                          SourceLocation RAngleLoc) {
     return TypeResult();
-  };
+  }
 
   /// \brief Note that a template ID was used with a tag.
   ///
index 0a0690754fe531853c9b58e6afb56fa76a7d8f21..4c8cf0845d4ec3c6776f5265d89f7b59af503bcd 100644 (file)
@@ -328,16 +328,16 @@ public:
   Value *VisitBin ## OP ## Assign(const CompoundAssignOperator *E) {       \
     return EmitCompoundAssign(E, &ScalarExprEmitter::Emit ## OP);          \
   }
-  HANDLEBINOP(Mul);
-  HANDLEBINOP(Div);
-  HANDLEBINOP(Rem);
-  HANDLEBINOP(Add);
-  HANDLEBINOP(Sub);
-  HANDLEBINOP(Shl);
-  HANDLEBINOP(Shr);
-  HANDLEBINOP(And);
-  HANDLEBINOP(Xor);
-  HANDLEBINOP(Or);
+  HANDLEBINOP(Mul)
+  HANDLEBINOP(Div)
+  HANDLEBINOP(Rem)
+  HANDLEBINOP(Add)
+  HANDLEBINOP(Sub)
+  HANDLEBINOP(Shl)
+  HANDLEBINOP(Shr)
+  HANDLEBINOP(And)
+  HANDLEBINOP(Xor)
+  HANDLEBINOP(Or)
 #undef HANDLEBINOP
 
   // Comparisons.
@@ -347,12 +347,12 @@ public:
     Value *VisitBin##CODE(const BinaryOperator *E) { \
       return EmitCompare(E, llvm::ICmpInst::UI, llvm::ICmpInst::SI, \
                          llvm::FCmpInst::FP); }
-  VISITCOMP(LT, ICMP_ULT, ICMP_SLT, FCMP_OLT);
-  VISITCOMP(GT, ICMP_UGT, ICMP_SGT, FCMP_OGT);
-  VISITCOMP(LE, ICMP_ULE, ICMP_SLE, FCMP_OLE);
-  VISITCOMP(GE, ICMP_UGE, ICMP_SGE, FCMP_OGE);
-  VISITCOMP(EQ, ICMP_EQ , ICMP_EQ , FCMP_OEQ);
-  VISITCOMP(NE, ICMP_NE , ICMP_NE , FCMP_UNE);
+  VISITCOMP(LT, ICMP_ULT, ICMP_SLT, FCMP_OLT)
+  VISITCOMP(GT, ICMP_UGT, ICMP_SGT, FCMP_OGT)
+  VISITCOMP(LE, ICMP_ULE, ICMP_SLE, FCMP_OLE)
+  VISITCOMP(GE, ICMP_UGE, ICMP_SGE, FCMP_OGE)
+  VISITCOMP(EQ, ICMP_EQ , ICMP_EQ , FCMP_OEQ)
+  VISITCOMP(NE, ICMP_NE , ICMP_NE , FCMP_UNE)
 #undef VISITCOMP
 
   Value *VisitBinAssign     (const BinaryOperator *E);
index b9255b58cd1f3dd1716a37b7759229f49ee047de..a5d6a7ff5e3d4a2bf7ff99becef35022b9ac053e 100644 (file)
@@ -115,7 +115,7 @@ public:
     if (Hidden)
       GV->setVisibility(llvm::GlobalVariable::HiddenVisibility);
     return llvm::ConstantExpr::getBitCast(GV, Int8PtrTy);
-  };
+  }
 
   /// - BuildFlags - Build a psABI __flags value for __vmi_class_type_info.
   llvm::Constant *BuildFlags(int f) {
index 017059df80facae104f8f29c3673491b50d92642..1e1edc1c482fd98e8c191de16f1b36c3aa794589 100644 (file)
@@ -81,7 +81,7 @@ namespace {
 
       if (Builder)
         Builder->Release();
-    };
+    }
 
     virtual void CompleteTentativeDefinition(VarDecl *D) {
       if (Diags.hasErrorOccurred())
index 6729da8370a5af265da201e4cf75444d14a9e967..8f7da52c3119b5508a91baf8aa254963af06d6e3 100644 (file)
@@ -137,7 +137,7 @@ namespace darwin {
     }
 
   public:
-    DarwinTool(const char *Name, const ToolChain &TC) : Tool(Name, TC) {};
+    DarwinTool(const char *Name, const ToolChain &TC) : Tool(Name, TC) {}
   };
 
   class VISIBILITY_HIDDEN CC1 : public DarwinTool  {