From: Pavel Labath Date: Wed, 22 Jul 2015 08:12:01 +0000 (+0000) Subject: Fix warnings found by -Wextra-semi X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb213b3831f6677e90410e7c184b0a89f7e128bf;p=platform%2Fupstream%2Fllvm.git Fix warnings found by -Wextra-semi patch by Eugene Zelenko. llvm-svn: 242875 --- diff --git a/lldb/include/lldb/Interpreter/CommandObject.h b/lldb/include/lldb/Interpreter/CommandObject.h index 023de29..50e9958 100644 --- a/lldb/include/lldb/Interpreter/CommandObject.h +++ b/lldb/include/lldb/Interpreter/CommandObject.h @@ -503,7 +503,7 @@ public: CommandObject (interpreter, name, help, syntax, flags) {} virtual - ~CommandObjectParsed () {}; + ~CommandObjectParsed () {} virtual bool Execute (const char *args_string, CommandReturnObject &result); @@ -514,7 +514,7 @@ protected: CommandReturnObject &result) = 0; virtual bool - WantsRawCommandString() { return false; }; + WantsRawCommandString() { return false; } }; class CommandObjectRaw : public CommandObject @@ -529,7 +529,7 @@ public: CommandObject (interpreter, name, help, syntax, flags) {} virtual - ~CommandObjectRaw () {}; + ~CommandObjectRaw () {} virtual bool Execute (const char *args_string, CommandReturnObject &result); @@ -539,7 +539,7 @@ protected: DoExecute (const char *command, CommandReturnObject &result) = 0; virtual bool - WantsRawCommandString() { return true; }; + WantsRawCommandString() { return true; } }; diff --git a/lldb/include/lldb/Interpreter/CommandObjectMultiword.h b/lldb/include/lldb/Interpreter/CommandObjectMultiword.h index 491d43c..798da88 100644 --- a/lldb/include/lldb/Interpreter/CommandObjectMultiword.h +++ b/lldb/include/lldb/Interpreter/CommandObjectMultiword.h @@ -62,7 +62,7 @@ public: StringList &commands_help); virtual bool - WantsRawCommandString() { return false; }; + WantsRawCommandString() { return false; } virtual int HandleCompletion (Args &input, diff --git a/lldb/include/lldb/Target/ThreadPlan.h b/lldb/include/lldb/Target/ThreadPlan.h index db2e798..60da238 100644 --- a/lldb/include/lldb/Target/ThreadPlan.h +++ b/lldb/include/lldb/Target/ThreadPlan.h @@ -568,7 +568,7 @@ protected: //------------------------------------------------------------------ virtual bool - DoWillResume (lldb::StateType resume_state, bool current_plan) { return true; }; + DoWillResume (lldb::StateType resume_state, bool current_plan) { return true; } virtual bool DoPlanExplainsStop (Event *event_ptr) = 0; diff --git a/lldb/source/API/SBValueList.cpp b/lldb/source/API/SBValueList.cpp index 71fabe0..5461b05 100644 --- a/lldb/source/API/SBValueList.cpp +++ b/lldb/source/API/SBValueList.cpp @@ -39,7 +39,7 @@ public: return *this; m_values = rhs.m_values; return *this; - }; + } uint32_t GetSize () @@ -297,5 +297,3 @@ SBValueList::ref () CreateIfNeeded(); return *m_opaque_ap.get(); } - - diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.h b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.h index 918bc7b..0b0b747 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.h +++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.h @@ -63,7 +63,7 @@ protected: WriteFPR(); virtual void* - GetGPRBuffer() { return nullptr; }; + GetGPRBuffer() { return nullptr; } virtual size_t GetGPRSize() { return GetRegisterInfoInterface().GetGPRSize(); } @@ -105,4 +105,3 @@ protected: } // namespace lldb_private #endif // #ifndef lldb_NativeRegisterContextLinux_h - diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index b866766..4207df6 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -192,7 +192,7 @@ public: { for (uint32_t i = 0; i < e_num; ++i) m_has[i] = false; - }; + } void set_name (const std::string & name) { diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDataExtractor.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDataExtractor.h index ba2e8ad..0281b5a 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDataExtractor.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDataExtractor.h @@ -19,10 +19,10 @@ namespace lldb_private { class DWARFDataExtractor : public lldb_private::DataExtractor { public: - DWARFDataExtractor() : DataExtractor(), m_is_dwarf64(false) { }; + DWARFDataExtractor() : DataExtractor(), m_is_dwarf64(false) { } DWARFDataExtractor (const DWARFDataExtractor& data, lldb::offset_t offset, lldb::offset_t length) : - DataExtractor(data, offset, length), m_is_dwarf64(false) { }; + DataExtractor(data, offset, length), m_is_dwarf64(false) { } uint64_t GetDWARFInitialLength(lldb::offset_t *offset_ptr) const; @@ -43,4 +43,3 @@ protected: } #endif // liblldb_DWARFDataExtractor_h_ - diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h b/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h index 48d1f7f..0d4bee7 100644 --- a/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h +++ b/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h @@ -199,7 +199,7 @@ private: dqo_target_queue = UINT16_MAX; dqo_target_queue = UINT16_MAX; dqo_priority = UINT16_MAX; - }; + } bool IsValid () diff --git a/lldb/source/Target/LanguageRuntime.cpp b/lldb/source/Target/LanguageRuntime.cpp index 1bec206..c1a4712 100644 --- a/lldb/source/Target/LanguageRuntime.cpp +++ b/lldb/source/Target/LanguageRuntime.cpp @@ -34,7 +34,7 @@ public: } virtual - ~ExceptionSearchFilter() {}; + ~ExceptionSearchFilter() {} bool ModulePasses (const lldb::ModuleSP &module_sp) override @@ -493,6 +493,3 @@ LanguageRuntime::CreateExceptionSearchFilter () { return m_process->GetTarget().GetSearchFilterForModule(NULL); } - - - diff --git a/lldb/tools/lldb-mi/MICmdArgSet.h b/lldb/tools/lldb-mi/MICmdArgSet.h index c862fa8..debaeb8 100644 --- a/lldb/tools/lldb-mi/MICmdArgSet.h +++ b/lldb/tools/lldb-mi/MICmdArgSet.h @@ -52,7 +52,7 @@ class CMICmdArgSet : public CMICmnBase virtual bool GetValid(void) const = 0; virtual bool Validate(CMICmdArgContext &vwArgContext) = 0; - /* dtor */ virtual ~IArg(void){}; + /* dtor */ virtual ~IArg(void){} }; // Typedefs: diff --git a/lldb/tools/lldb-mi/MICmdData.h b/lldb/tools/lldb-mi/MICmdData.h index d58de90..305a80d 100644 --- a/lldb/tools/lldb-mi/MICmdData.h +++ b/lldb/tools/lldb-mi/MICmdData.h @@ -26,7 +26,7 @@ struct SMICmdData , bCmdValid(false) , bCmdExecutedSuccessfully(false) , bMIOldStyle(false) - , bHasResultRecordExtra(false){}; + , bHasResultRecordExtra(false){} MIuint id; // A command's unique ID i.e. GUID CMIUtilString strMiCmdToken; // The command's MI token (a number) diff --git a/lldb/tools/lldb-mi/MICmdFactory.h b/lldb/tools/lldb-mi/MICmdFactory.h index 9a5e076..f37b943 100644 --- a/lldb/tools/lldb-mi/MICmdFactory.h +++ b/lldb/tools/lldb-mi/MICmdFactory.h @@ -50,7 +50,7 @@ class CMICmdFactory : public CMICmnBase, public MI::ISingleton // virtual CMICmdBase * CreateSelf( void ) = 0; // Not possible as require a static creator // function in the command class, here for awareness - /* dtor */ virtual ~ICmd(void){}; + /* dtor */ virtual ~ICmd(void){} }; // Methods: diff --git a/lldb/tools/lldb-mi/MICmdInvoker.h b/lldb/tools/lldb-mi/MICmdInvoker.h index b178d43..1e765ba 100644 --- a/lldb/tools/lldb-mi/MICmdInvoker.h +++ b/lldb/tools/lldb-mi/MICmdInvoker.h @@ -63,7 +63,7 @@ class CMICmdInvoker : public CMICmnBase, public CMICmdMgrSetCmdDeleteCallback::I virtual const CMIUtilString &GetMIResultRecordExtra(void) const = 0; virtual bool HasMIResultRecordExtra(void) const = 0; - /* dtor */ virtual ~ICmd(void){}; + /* dtor */ virtual ~ICmd(void){} }; // Methods: diff --git a/lldb/tools/lldb-mi/MICmdMgrSetCmdDeleteCallback.h b/lldb/tools/lldb-mi/MICmdMgrSetCmdDeleteCallback.h index 1c9be82..47757a2 100644 --- a/lldb/tools/lldb-mi/MICmdMgrSetCmdDeleteCallback.h +++ b/lldb/tools/lldb-mi/MICmdMgrSetCmdDeleteCallback.h @@ -37,7 +37,7 @@ class ICallback public: virtual void Delete(SMICmdData &vCmd) = 0; - /* dtor */ virtual ~ICallback(void){}; + /* dtor */ virtual ~ICallback(void){} }; //++ ============================================================================ diff --git a/lldb/tools/lldb-mi/MIUtilSingletonBase.h b/lldb/tools/lldb-mi/MIUtilSingletonBase.h index 3649a73..04472d0 100644 --- a/lldb/tools/lldb-mi/MIUtilSingletonBase.h +++ b/lldb/tools/lldb-mi/MIUtilSingletonBase.h @@ -52,7 +52,7 @@ template class ISingleton virtual bool Initialize(void) = 0; virtual bool Shutdown(void) = 0; // - /* dtor */ virtual ~ISingleton(void){}; + /* dtor */ virtual ~ISingleton(void){} }; } // namespace MI diff --git a/lldb/tools/lldb-mi/MIUtilThreadBaseStd.h b/lldb/tools/lldb-mi/MIUtilThreadBaseStd.h index 504d830..c95de3f 100644 --- a/lldb/tools/lldb-mi/MIUtilThreadBaseStd.h +++ b/lldb/tools/lldb-mi/MIUtilThreadBaseStd.h @@ -34,7 +34,7 @@ class CMIUtilThreadMutex { // Methods: public: - /* ctor */ CMIUtilThreadMutex(void){}; + /* ctor */ CMIUtilThreadMutex(void){} // void Lock(void); // Wait until mutex can be obtained @@ -46,7 +46,7 @@ class CMIUtilThreadMutex // Overrideable: public: // From CMICmnBase - /* dtor */ virtual ~CMIUtilThreadMutex(void){}; + /* dtor */ virtual ~CMIUtilThreadMutex(void){} // Attributes: private: