Fix warnings found by -Wextra-semi
authorPavel Labath <labath@google.com>
Wed, 22 Jul 2015 08:12:01 +0000 (08:12 +0000)
committerPavel Labath <labath@google.com>
Wed, 22 Jul 2015 08:12:01 +0000 (08:12 +0000)
patch by Eugene Zelenko.

llvm-svn: 242875

16 files changed:
lldb/include/lldb/Interpreter/CommandObject.h
lldb/include/lldb/Interpreter/CommandObjectMultiword.h
lldb/include/lldb/Target/ThreadPlan.h
lldb/source/API/SBValueList.cpp
lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.h
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFDataExtractor.h
lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h
lldb/source/Target/LanguageRuntime.cpp
lldb/tools/lldb-mi/MICmdArgSet.h
lldb/tools/lldb-mi/MICmdData.h
lldb/tools/lldb-mi/MICmdFactory.h
lldb/tools/lldb-mi/MICmdInvoker.h
lldb/tools/lldb-mi/MICmdMgrSetCmdDeleteCallback.h
lldb/tools/lldb-mi/MIUtilSingletonBase.h
lldb/tools/lldb-mi/MIUtilThreadBaseStd.h

index 023de29..50e9958 100644 (file)
@@ -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; }
 };
 
 
index 491d43c..798da88 100644 (file)
@@ -62,7 +62,7 @@ public:
                            StringList &commands_help);
 
     virtual bool
-    WantsRawCommandString() { return false; };
+    WantsRawCommandString() { return false; }
 
     virtual int
     HandleCompletion (Args &input,
index db2e798..60da238 100644 (file)
@@ -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;
index 71fabe0..5461b05 100644 (file)
@@ -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();
 }
-
-
index 918bc7b..0b0b747 100644 (file)
@@ -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
-
index b866766..4207df6 100644 (file)
@@ -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)
         {
index ba2e8ad..0281b5a 100644 (file)
@@ -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_                                 
-
index 48d1f7f..0d4bee7 100644 (file)
@@ -199,7 +199,7 @@ private:
             dqo_target_queue = UINT16_MAX;
             dqo_target_queue = UINT16_MAX;
             dqo_priority = UINT16_MAX;
-        };
+        }
 
         bool
         IsValid ()
index 1bec206..c1a4712 100644 (file)
@@ -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);
 }
-
-
-
index c862fa8..debaeb8 100644 (file)
@@ -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:
index d58de90..305a80d 100644 (file)
@@ -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)
index 9a5e076..f37b943 100644 (file)
@@ -50,7 +50,7 @@ class CMICmdFactory : public CMICmnBase, public MI::ISingleton<CMICmdFactory>
         // 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:
index b178d43..1e765ba 100644 (file)
@@ -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:
index 1c9be82..47757a2 100644 (file)
@@ -37,7 +37,7 @@ class ICallback
   public:
     virtual void Delete(SMICmdData &vCmd) = 0;
 
-    /* dtor */ virtual ~ICallback(void){};
+    /* dtor */ virtual ~ICallback(void){}
 };
 
 //++ ============================================================================
index 3649a73..04472d0 100644 (file)
@@ -52,7 +52,7 @@ template <typename T> class ISingleton
     virtual bool Initialize(void) = 0;
     virtual bool Shutdown(void) = 0;
     //
-    /* dtor */ virtual ~ISingleton(void){};
+    /* dtor */ virtual ~ISingleton(void){}
 };
 
 } // namespace MI
index 504d830..c95de3f 100644 (file)
@@ -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: