Remove ';' after method definition. Noticed by clang++, which one would think

would have a higher respect for its own code. This is getting old, is this
warning really adding value?

llvm-svn: 91779
This commit is contained in:
Daniel Dunbar 2009-12-19 17:50:07 +00:00
parent 4750efc28a
commit e017ecc9e2
16 changed files with 34 additions and 34 deletions

View File

@ -559,7 +559,7 @@ template<>
struct CanProxyAdaptor<FunctionProtoType> struct CanProxyAdaptor<FunctionProtoType>
: public CanProxyBase<FunctionProtoType> { : public CanProxyBase<FunctionProtoType> {
LLVM_CLANG_CANPROXY_TYPE_ACCESSOR(getResultType) 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 { CanQualType getArgType(unsigned i) const {
return CanQualType::CreateUnsafe(this->getTypePtr()->getArgType(i)); return CanQualType::CreateUnsafe(this->getTypePtr()->getArgType(i));
} }

View File

@ -1180,7 +1180,7 @@ public:
/// represents an C++ overloaded operator, e.g., "operator+". /// represents an C++ overloaded operator, e.g., "operator+".
bool isOverloadedOperator() const { bool isOverloadedOperator() const {
return getOverloadedOperator() != OO_None; return getOverloadedOperator() != OO_None;
}; }
OverloadedOperatorKind getOverloadedOperator() const; OverloadedOperatorKind getOverloadedOperator() const;

View File

@ -527,7 +527,7 @@ public:
// Location information, modeled after the Stmt API. // Location information, modeled after the Stmt API.
SourceLocation getLocStart() const { return getLocation(); } // '@'interface SourceLocation getLocStart() const { return getLocation(); } // '@'interface
SourceLocation getLocEnd() const { return EndLoc; } SourceLocation getLocEnd() const { return EndLoc; }
void setLocEnd(SourceLocation LE) { EndLoc = LE; }; void setLocEnd(SourceLocation LE) { EndLoc = LE; }
void setClassLoc(SourceLocation Loc) { ClassLoc = Loc; } void setClassLoc(SourceLocation Loc) { ClassLoc = Loc; }
SourceLocation getClassLoc() const { return ClassLoc; } SourceLocation getClassLoc() const { return ClassLoc; }
@ -707,7 +707,7 @@ public:
// Location information, modeled after the Stmt API. // Location information, modeled after the Stmt API.
SourceLocation getLocStart() const { return getLocation(); } // '@'protocol SourceLocation getLocStart() const { return getLocation(); } // '@'protocol
SourceLocation getLocEnd() const { return EndLoc; } 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 Decl *D) { return D->getKind() == ObjCProtocol; }
static bool classof(const ObjCProtocolDecl *D) { return true; } static bool classof(const ObjCProtocolDecl *D) { return true; }
@ -871,7 +871,7 @@ public:
// Location information, modeled after the Stmt API. // Location information, modeled after the Stmt API.
SourceLocation getLocStart() const { return getLocation(); } // '@'interface SourceLocation getLocStart() const { return getLocation(); } // '@'interface
SourceLocation getLocEnd() const { return EndLoc; } 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 Decl *D) { return D->getKind() == ObjCCategory; }
static bool classof(const ObjCCategoryDecl *D) { return true; } static bool classof(const ObjCCategoryDecl *D) { return true; }

View File

@ -221,7 +221,7 @@ public:
assert(Kind == Integral && assert(Kind == Integral &&
"Cannot set the integral type of a non-integral template argument"); "Cannot set the integral type of a non-integral template argument");
Integer.Type = T.getAsOpaquePtr(); Integer.Type = T.getAsOpaquePtr();
}; }
/// \brief Retrieve the template argument as an expression. /// \brief Retrieve the template argument as an expression.
Expr *getAsExpr() const { Expr *getAsExpr() const {

View File

@ -134,7 +134,7 @@ public:
explicit CFGBlock(unsigned blockid, BumpVectorContext &C) explicit CFGBlock(unsigned blockid, BumpVectorContext &C)
: Stmts(C), Label(NULL), Terminator(NULL), LoopTarget(NULL), : Stmts(C), Label(NULL), Terminator(NULL), LoopTarget(NULL),
BlockID(blockid), Preds(C, 1), Succs(C, 1) {} BlockID(blockid), Preds(C, 1), Succs(C, 1) {}
~CFGBlock() {}; ~CFGBlock() {}
// Statement iterators // Statement iterators
typedef StatementList::iterator iterator; typedef StatementList::iterator iterator;
@ -345,7 +345,7 @@ public:
//===--------------------------------------------------------------------===// //===--------------------------------------------------------------------===//
CFG() : Entry(NULL), Exit(NULL), IndirectGotoBlock(NULL), NumBlockIDs(0), CFG() : Entry(NULL), Exit(NULL), IndirectGotoBlock(NULL), NumBlockIDs(0),
BlkExprMap(NULL), Blocks(BlkBVC, 10) {}; BlkExprMap(NULL), Blocks(BlkBVC, 10) {}
~CFG(); ~CFG();

View File

@ -79,7 +79,7 @@ public:
/// InitializeValues - Invoked by the solver to initialize state needed for /// InitializeValues - Invoked by the solver to initialize state needed for
/// dataflow analysis. This method is usually specialized by subclasses. /// 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 /// getEdgeData - Retrieves the dataflow values associated with a

View File

@ -37,7 +37,7 @@ class PathDiagnosticClient : public DiagnosticClient {
public: public:
PathDiagnosticClient() {} PathDiagnosticClient() {}
virtual ~PathDiagnosticClient() {}; virtual ~PathDiagnosticClient() {}
virtual void virtual void
FlushDiagnostics(llvm::SmallVectorImpl<std::string> *FilesMade = 0) = 0; FlushDiagnostics(llvm::SmallVectorImpl<std::string> *FilesMade = 0) = 0;

View File

@ -73,7 +73,7 @@ public:
StoreManagerCreator getStoreManagerCreator() { StoreManagerCreator getStoreManagerCreator() {
return CreateStoreMgr; return CreateStoreMgr;
}; }
ConstraintManagerCreator getConstraintManagerCreator() { ConstraintManagerCreator getConstraintManagerCreator() {
return CreateConstraintMgr; return CreateConstraintMgr;

View File

@ -207,7 +207,7 @@ class InterExplodedGraphMap {
public: public:
ExplodedNode* getMappedNode(const ExplodedNode* N) const; ExplodedNode* getMappedNode(const ExplodedNode* N) const;
InterExplodedGraphMap() {}; InterExplodedGraphMap() {}
virtual ~InterExplodedGraphMap() {} virtual ~InterExplodedGraphMap() {}
}; };

View File

@ -58,7 +58,7 @@ protected:
public: public:
SVal() : Data(0), Kind(0) {} SVal() : Data(0), Kind(0) {}
~SVal() {}; ~SVal() {}
/// BufferTy - A temporary buffer to hold a set of SVals. /// BufferTy - A temporary buffer to hold a set of SVals.
typedef llvm::SmallVector<SVal,5> BufferTy; typedef llvm::SmallVector<SVal,5> BufferTy;

View File

@ -204,7 +204,7 @@ public:
class Visitor { class Visitor {
public: public:
virtual ~Visitor() {}; virtual ~Visitor() {}
virtual bool Visit(const MemRegion* Parent, const MemRegion* SubRegion) = 0; virtual bool Visit(const MemRegion* Parent, const MemRegion* SubRegion) = 0;
}; };

View File

@ -1750,7 +1750,7 @@ public:
ASTTemplateArgsPtr TemplateArgs, ASTTemplateArgsPtr TemplateArgs,
SourceLocation RAngleLoc) { SourceLocation RAngleLoc) {
return TypeResult(); return TypeResult();
}; }
/// \brief Note that a template ID was used with a tag. /// \brief Note that a template ID was used with a tag.
/// ///

View File

@ -328,16 +328,16 @@ public:
Value *VisitBin ## OP ## Assign(const CompoundAssignOperator *E) { \ Value *VisitBin ## OP ## Assign(const CompoundAssignOperator *E) { \
return EmitCompoundAssign(E, &ScalarExprEmitter::Emit ## OP); \ return EmitCompoundAssign(E, &ScalarExprEmitter::Emit ## OP); \
} }
HANDLEBINOP(Mul); HANDLEBINOP(Mul)
HANDLEBINOP(Div); HANDLEBINOP(Div)
HANDLEBINOP(Rem); HANDLEBINOP(Rem)
HANDLEBINOP(Add); HANDLEBINOP(Add)
HANDLEBINOP(Sub); HANDLEBINOP(Sub)
HANDLEBINOP(Shl); HANDLEBINOP(Shl)
HANDLEBINOP(Shr); HANDLEBINOP(Shr)
HANDLEBINOP(And); HANDLEBINOP(And)
HANDLEBINOP(Xor); HANDLEBINOP(Xor)
HANDLEBINOP(Or); HANDLEBINOP(Or)
#undef HANDLEBINOP #undef HANDLEBINOP
// Comparisons. // Comparisons.
@ -347,12 +347,12 @@ public:
Value *VisitBin##CODE(const BinaryOperator *E) { \ Value *VisitBin##CODE(const BinaryOperator *E) { \
return EmitCompare(E, llvm::ICmpInst::UI, llvm::ICmpInst::SI, \ return EmitCompare(E, llvm::ICmpInst::UI, llvm::ICmpInst::SI, \
llvm::FCmpInst::FP); } llvm::FCmpInst::FP); }
VISITCOMP(LT, ICMP_ULT, ICMP_SLT, FCMP_OLT); VISITCOMP(LT, ICMP_ULT, ICMP_SLT, FCMP_OLT)
VISITCOMP(GT, ICMP_UGT, ICMP_SGT, FCMP_OGT); VISITCOMP(GT, ICMP_UGT, ICMP_SGT, FCMP_OGT)
VISITCOMP(LE, ICMP_ULE, ICMP_SLE, FCMP_OLE); VISITCOMP(LE, ICMP_ULE, ICMP_SLE, FCMP_OLE)
VISITCOMP(GE, ICMP_UGE, ICMP_SGE, FCMP_OGE); VISITCOMP(GE, ICMP_UGE, ICMP_SGE, FCMP_OGE)
VISITCOMP(EQ, ICMP_EQ , ICMP_EQ , FCMP_OEQ); VISITCOMP(EQ, ICMP_EQ , ICMP_EQ , FCMP_OEQ)
VISITCOMP(NE, ICMP_NE , ICMP_NE , FCMP_UNE); VISITCOMP(NE, ICMP_NE , ICMP_NE , FCMP_UNE)
#undef VISITCOMP #undef VISITCOMP
Value *VisitBinAssign (const BinaryOperator *E); Value *VisitBinAssign (const BinaryOperator *E);

View File

@ -115,7 +115,7 @@ public:
if (Hidden) if (Hidden)
GV->setVisibility(llvm::GlobalVariable::HiddenVisibility); GV->setVisibility(llvm::GlobalVariable::HiddenVisibility);
return llvm::ConstantExpr::getBitCast(GV, Int8PtrTy); return llvm::ConstantExpr::getBitCast(GV, Int8PtrTy);
}; }
/// - BuildFlags - Build a psABI __flags value for __vmi_class_type_info. /// - BuildFlags - Build a psABI __flags value for __vmi_class_type_info.
llvm::Constant *BuildFlags(int f) { llvm::Constant *BuildFlags(int f) {

View File

@ -81,7 +81,7 @@ namespace {
if (Builder) if (Builder)
Builder->Release(); Builder->Release();
}; }
virtual void CompleteTentativeDefinition(VarDecl *D) { virtual void CompleteTentativeDefinition(VarDecl *D) {
if (Diags.hasErrorOccurred()) if (Diags.hasErrorOccurred())

View File

@ -137,7 +137,7 @@ namespace darwin {
} }
public: 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 { class VISIBILITY_HIDDEN CC1 : public DarwinTool {