56ac0396fad7a5b4bbb40bb8c4b5fe1755078aef.patch 140 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216
  1. From 56ac0396fad7a5b4bbb40bb8c4b5fe1755078aef Mon Sep 17 00:00:00 2001
  2. From: fuscated <fuscated@2a5c6006-c6dd-42ca-98ab-0921f2732cef>
  3. Date: Wed, 29 Jul 2020 21:09:40 +0000
  4. Subject: [PATCH] * build: Fix many -Wsuggest-override warnings for the core
  5. and core plugins
  6. > This warning is emitted by GCC starting with version 5.1.
  7. git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@12190 2a5c6006-c6dd-42ca-98ab-0921f2732cef
  8. ---
  9. src/include/cbauibook.h | 4 +-
  10. src/plugins/abbreviations/abbreviations.h | 12 +-
  11. .../abbreviations/abbreviationsconfigpanel.h | 10 +-
  12. src/plugins/astyle/astyleconfigdlg.h | 8 +-
  13. src/plugins/autosave/autosave.h | 20 +--
  14. src/plugins/classwizard/classwizard.h | 8 +-
  15. src/plugins/codecompletion/ccoptionsdlg.h | 10 +-
  16. src/plugins/codecompletion/ccoptionsprjdlg.h | 10 +-
  17. src/plugins/codecompletion/cctreectrl.h | 2 +-
  18. .../classbrowserbuilderthread.h | 4 +-
  19. src/plugins/codecompletion/codecompletion.h | 34 ++---
  20. src/plugins/codecompletion/parser/parser.h | 43 +++---
  21. .../codecompletion/parser/parserthread.h | 2 +-
  22. .../parser/parserthreadedtask.h | 4 +-
  23. .../codecompletion/parser/searchtree.h | 8 +-
  24. .../codecompletion/systemheadersthread.h | 4 +-
  25. .../compilergcc/advancedcompileroptionsdlg.h | 4 +-
  26. src/plugins/compilergcc/compilerCYGWIN.h | 6 +-
  27. src/plugins/compilergcc/compilerG95.h | 6 +-
  28. src/plugins/compilergcc/compilerGDC.h | 6 +-
  29. src/plugins/compilergcc/compilerGNUARM.h | 6 +-
  30. src/plugins/compilergcc/compilerGNUFortran.h | 6 +-
  31. src/plugins/compilergcc/compilerIAR.h | 6 +-
  32. src/plugins/compilergcc/compilerICC.h | 6 +-
  33. src/plugins/compilergcc/compilerKeilC51.h | 10 +-
  34. src/plugins/compilergcc/compilerLCC.h | 10 +-
  35. src/plugins/compilergcc/compilerMINGW.h | 10 +-
  36. src/plugins/compilergcc/compilerMSVC.h | 6 +-
  37. src/plugins/compilergcc/compilerMSVC10.h | 6 +-
  38. src/plugins/compilergcc/compilerMSVC8.h | 6 +-
  39. src/plugins/compilergcc/compilerOW.h | 12 +-
  40. src/plugins/compilergcc/compilerXML.h | 6 +-
  41. src/plugins/compilergcc/compilerflagdlg.h | 4 +-
  42. src/plugins/compilergcc/compilergcc.h | 58 ++++----
  43. src/plugins/compilergcc/compilermessages.h | 8 +-
  44. src/plugins/compilergcc/compileroptionsdlg.h | 10 +-
  45. src/plugins/debuggergdb/cdb_commands.h | 34 ++---
  46. src/plugins/debuggergdb/cdb_driver.h | 95 ++++++-------
  47. src/plugins/debuggergdb/debugger_defs.h | 40 +++---
  48. src/plugins/debuggergdb/debuggergdb.h | 132 +++++++++---------
  49. src/plugins/debuggergdb/debuggeroptionsdlg.h | 6 +-
  50. .../debuggergdb/debuggeroptionsprjdlg.h | 10 +-
  51. src/plugins/debuggergdb/editbreakpointdlg.h | 4 +-
  52. src/plugins/debuggergdb/editwatchdlg.h | 4 +-
  53. src/plugins/debuggergdb/gdb_commands.h | 66 ++++-----
  54. src/plugins/debuggergdb/gdb_driver.h | 110 +++++++--------
  55. .../defaultmimehandler/defaultmimehandler.h | 16 +--
  56. .../defaultmimehandler/editmimetypesdlg.h | 10 +-
  57. .../occurrenceshighlighting.h | 19 +--
  58. ...ccurrenceshighlightingconfigurationpanel.h | 10 +-
  59. .../openfileslist/openfileslistplugin.h | 10 +-
  60. src/plugins/projectsimporter/devcpploader.h | 6 +-
  61. src/plugins/projectsimporter/msvc10loader.h | 6 +-
  62. src/plugins/projectsimporter/msvc7loader.h | 6 +-
  63. .../projectsimporter/msvc7workspaceloader.h | 6 +-
  64. src/plugins/projectsimporter/msvcloader.h | 6 +-
  65. .../projectsimporter/msvcworkspaceloader.h | 6 +-
  66. .../projectsimporter/projectsimporter.h | 10 +-
  67. src/plugins/scriptedwizard/projectpathpanel.h | 6 +-
  68. src/plugins/scriptedwizard/wiz.h | 20 +--
  69. src/plugins/scriptedwizard/wizpage.h | 38 ++---
  70. src/plugins/todo/addtododlg.h | 3 +-
  71. src/plugins/todo/todolist.h | 13 +-
  72. src/plugins/todo/todolistview.h | 4 +-
  73. src/plugins/todo/todosettingsdlg.h | 10 +-
  74. src/src/app.cpp | 2 +-
  75. src/src/app.h | 10 +-
  76. src/src/backtracedlg.h | 6 +-
  77. src/src/batchbuild.h | 2 +-
  78. src/src/breakpointsdlg.h | 14 +-
  79. src/src/compilersettingsdlg.h | 4 +-
  80. src/src/cpuregistersdlg.h | 9 +-
  81. src/src/debugger_interface_creator.h | 36 ++---
  82. src/src/debuggermenu.h | 12 +-
  83. src/src/disassemblydlg.h | 20 +--
  84. src/src/editorconfigurationdlg.h | 2 +-
  85. src/src/environmentsettingsdlg.h | 4 +-
  86. src/src/examinememorydlg.h | 22 +--
  87. src/src/notebookstyles.h | 12 +-
  88. src/src/printdlg.h | 4 +-
  89. src/src/projectdepsdlg.h | 4 +-
  90. src/src/projectmanagerui.h | 43 +++---
  91. src/src/projectoptionsdlg.h | 4 +-
  92. src/src/scriptingsettingsdlg.h | 4 +-
  93. src/src/startherepage.h | 4 +-
  94. src/src/switcherdlg.h | 2 +-
  95. src/src/threadsdlg.h | 6 +-
  96. src/src/watchesdlg.h | 4 +-
  97. 88 files changed, 660 insertions(+), 651 deletions(-)
  98. diff --git a/src/include/cbauibook.h b/src/include/cbauibook.h
  99. index 2e1840bd1..d0bf79a3a 100644
  100. --- a/src/include/cbauibook.h
  101. +++ b/src/include/cbauibook.h
  102. @@ -112,7 +112,7 @@ class DLLIMPORT cbAuiNotebook : public wxAuiNotebook
  103. * \param The index of the tab to be closed
  104. * \return true if successfull
  105. */
  106. - bool DeletePage(size_t page);
  107. + bool DeletePage(size_t page) override;
  108. /** \brief Remove Page
  109. *
  110. * Calls the base-class function and after that
  111. @@ -122,7 +122,7 @@ class DLLIMPORT cbAuiNotebook : public wxAuiNotebook
  112. * \param The index of the tab to be closed
  113. * \return true if successfull
  114. */
  115. - bool RemovePage(size_t page);
  116. + bool RemovePage(size_t page) override;
  117. /** \brief Move page
  118. *
  119. * Moves the tab containing page to new_idx
  120. diff --git a/src/plugins/abbreviations/abbreviations.h b/src/plugins/abbreviations/abbreviations.h
  121. index 2edd069bf..b71cf8d34 100644
  122. --- a/src/plugins/abbreviations/abbreviations.h
  123. +++ b/src/plugins/abbreviations/abbreviations.h
  124. @@ -34,19 +34,19 @@ class Abbreviations : public cbPlugin
  125. * in configuration dialogs. Lower numbers mean the plugin's
  126. * configuration is put higher in the list.
  127. */
  128. - virtual int GetConfigurationPriority() const { return 50; }
  129. + int GetConfigurationPriority() const override { return 50; }
  130. /** Return the configuration group for this plugin. Default is cgUnknown.
  131. * Notice that you can logically OR more than one configuration groups,
  132. * so you could set it, for example, as "cgCompiler | cgContribPlugin".
  133. */
  134. - virtual int GetConfigurationGroup() const { return cgEditor; }
  135. + int GetConfigurationGroup() const override { return cgEditor; }
  136. /** Return plugin's configuration panel.
  137. * @param parent The parent window.
  138. * @return A pointer to the plugin's cbConfigurationPanel. It is deleted by the caller.
  139. */
  140. - virtual cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
  141. + cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) override;
  142. /** This method is called by Code::Blocks and is used by the plugin
  143. * to add any menu items it needs on Code::Blocks's menu bar.\n
  144. @@ -55,7 +55,7 @@ class Abbreviations : public cbPlugin
  145. * just do nothing ;)
  146. * @param menuBar the wxMenuBar to create items in
  147. */
  148. - virtual void BuildMenu(wxMenuBar* menuBar);
  149. + void BuildMenu(wxMenuBar* menuBar) override;
  150. protected:
  151. /** Any descendent plugin should override this virtual method and
  152. @@ -68,7 +68,7 @@ class Abbreviations : public cbPlugin
  153. * This means that a plugin might be loaded but <b>not</b> activated...\n
  154. * Think of this method as the actual constructor...
  155. */
  156. - virtual void OnAttach();
  157. + void OnAttach() override;
  158. /** Any descendent plugin should override this virtual method and
  159. * perform any necessary de-initialization. This method is called by
  160. @@ -79,7 +79,7 @@ class Abbreviations : public cbPlugin
  161. * case *don't* use Manager::Get()->Get...() functions or the
  162. * behaviour is undefined...
  163. */
  164. - virtual void OnRelease(bool appShutDown);
  165. + void OnRelease(bool appShutDown) override;
  166. public:
  167. /** Try to auto-complete the current word.
  168. diff --git a/src/plugins/abbreviations/abbreviationsconfigpanel.h b/src/plugins/abbreviations/abbreviationsconfigpanel.h
  169. index 8724f69be..38df93ef6 100644
  170. --- a/src/plugins/abbreviations/abbreviationsconfigpanel.h
  171. +++ b/src/plugins/abbreviations/abbreviationsconfigpanel.h
  172. @@ -20,16 +20,16 @@ class AbbreviationsConfigPanel: public cbConfigurationPanel
  173. {
  174. public:
  175. AbbreviationsConfigPanel(wxWindow* parent, Abbreviations* plugin);
  176. - virtual ~AbbreviationsConfigPanel();
  177. + ~AbbreviationsConfigPanel() override;
  178. /// @return the panel's title.
  179. - virtual wxString GetTitle() const;
  180. + wxString GetTitle() const override;
  181. /// @return the panel's bitmap base name. You must supply two bitmaps: \<basename\>.png and \<basename\>-off.png...
  182. - virtual wxString GetBitmapBaseName() const;
  183. + wxString GetBitmapBaseName() const override;
  184. /// Called when the user chooses to apply the configuration.
  185. - virtual void OnApply();
  186. + void OnApply() override;
  187. /// Called when the user chooses to cancel the configuration.
  188. - virtual void OnCancel();
  189. + void OnCancel() override;
  190. private:
  191. void InitCompText();
  192. diff --git a/src/plugins/astyle/astyleconfigdlg.h b/src/plugins/astyle/astyleconfigdlg.h
  193. index ecab74ff0..8adce2a11 100644
  194. --- a/src/plugins/astyle/astyleconfigdlg.h
  195. +++ b/src/plugins/astyle/astyleconfigdlg.h
  196. @@ -22,10 +22,10 @@ class AstyleConfigDlg : public cbConfigurationPanel
  197. void OnBreakLineChange(wxCommandEvent& event);
  198. void OnBreakBlocksChange(wxCommandEvent& event);
  199. - virtual wxString GetTitle() const { return _("Source formatter"); }
  200. - virtual wxString GetBitmapBaseName() const { return _T("astyle-plugin"); }
  201. - virtual void OnApply(){ SaveSettings(); }
  202. - virtual void OnCancel(){}
  203. + wxString GetTitle() const override { return _("Source formatter"); }
  204. + wxString GetBitmapBaseName() const override { return _T("astyle-plugin"); }
  205. + void OnApply() override { SaveSettings(); }
  206. + void OnCancel() override {}
  207. void LoadSettings();
  208. void SaveSettings();
  209. diff --git a/src/plugins/autosave/autosave.h b/src/plugins/autosave/autosave.h
  210. index 847152805..95d156b4f 100644
  211. --- a/src/plugins/autosave/autosave.h
  212. +++ b/src/plugins/autosave/autosave.h
  213. @@ -22,13 +22,13 @@ class Autosave : public cbPlugin
  214. public:
  215. Autosave();
  216. - ~Autosave();
  217. - int GetConfigurationPriority() const{ return 50; }
  218. - int GetConfigurationGroup() const{ return cgUnknown; }
  219. - void OnAttach(); // fires when the plugin is attached to the application
  220. + ~Autosave() override;
  221. + int GetConfigurationPriority() const override { return 50; }
  222. + int GetConfigurationGroup() const override { return cgUnknown; }
  223. + void OnAttach() override; // fires when the plugin is attached to the application
  224. void Start();
  225. - void OnRelease(bool appShutDown); // fires when the plugin is released from the application
  226. - virtual cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
  227. + void OnRelease(bool appShutDown) override; // fires when the plugin is released from the application
  228. + cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) override;
  229. void OnTimer(wxTimerEvent& event);
  230. void SaveProject(cbProject *p, int method);
  231. DECLARE_EVENT_TABLE()
  232. @@ -43,10 +43,10 @@ class AutosaveConfigDlg : public cbConfigurationPanel
  233. AutosaveConfigDlg(wxWindow* parent, Autosave* plug);
  234. virtual ~AutosaveConfigDlg(){};
  235. - virtual wxString GetTitle() const { return _("Autosave"); }
  236. - virtual wxString GetBitmapBaseName() const { return _T("autosave"); }
  237. - virtual void OnApply(){ SaveSettings(); }
  238. - virtual void OnCancel(){}
  239. + wxString GetTitle() const override { return _("Autosave"); }
  240. + wxString GetBitmapBaseName() const override { return _T("autosave"); }
  241. + void OnApply() override { SaveSettings(); }
  242. + void OnCancel() override {}
  243. private:
  244. void OnProjectsChecked(wxCommandEvent &event);
  245. void OnSourceChecked(wxCommandEvent &event);
  246. diff --git a/src/plugins/classwizard/classwizard.h b/src/plugins/classwizard/classwizard.h
  247. index 8852eb967..3f865db6d 100644
  248. --- a/src/plugins/classwizard/classwizard.h
  249. +++ b/src/plugins/classwizard/classwizard.h
  250. @@ -12,12 +12,12 @@ class ClassWizard : public cbPlugin
  251. {
  252. public:
  253. ClassWizard();
  254. - ~ClassWizard();
  255. + ~ClassWizard() override;
  256. - virtual void OnAttach();
  257. - virtual void OnRelease(bool appShutDown);
  258. + void OnAttach() override;
  259. + void OnRelease(bool appShutDown) override;
  260. - virtual void BuildMenu(wxMenuBar* menuBar);
  261. + void BuildMenu(wxMenuBar* menuBar) override;
  262. void OnLaunch(wxCommandEvent& event);
  263. diff --git a/src/plugins/codecompletion/ccoptionsdlg.h b/src/plugins/codecompletion/ccoptionsdlg.h
  264. index 8e324ebf7..66bdd4aef 100644
  265. --- a/src/plugins/codecompletion/ccoptionsdlg.h
  266. +++ b/src/plugins/codecompletion/ccoptionsdlg.h
  267. @@ -19,12 +19,12 @@ class CCOptionsDlg : public cbConfigurationPanel
  268. {
  269. public:
  270. CCOptionsDlg(wxWindow* parent, NativeParser* np, CodeCompletion* cc, DocumentationHelper* dh);
  271. - virtual ~CCOptionsDlg();
  272. + ~CCOptionsDlg() override;
  273. - virtual wxString GetTitle() const { return _("Code completion"); }
  274. - virtual wxString GetBitmapBaseName() const { return _T("codecompletion"); }
  275. - virtual void OnApply();
  276. - virtual void OnCancel() { ; }
  277. + wxString GetTitle() const override { return _("Code completion"); }
  278. + wxString GetBitmapBaseName() const override { return _T("codecompletion"); }
  279. + void OnApply() override;
  280. + void OnCancel() override {}
  281. protected:
  282. void OnChooseColour(wxCommandEvent& event);
  283. diff --git a/src/plugins/codecompletion/ccoptionsprjdlg.h b/src/plugins/codecompletion/ccoptionsprjdlg.h
  284. index de6c6c560..496f186fd 100644
  285. --- a/src/plugins/codecompletion/ccoptionsprjdlg.h
  286. +++ b/src/plugins/codecompletion/ccoptionsprjdlg.h
  287. @@ -18,12 +18,12 @@ class CCOptionsProjectDlg : public cbConfigurationPanel
  288. {
  289. public:
  290. CCOptionsProjectDlg(wxWindow* parent, cbProject* project, NativeParser* np);
  291. - virtual ~CCOptionsProjectDlg();
  292. + ~CCOptionsProjectDlg() override;
  293. - virtual wxString GetTitle() const { return _("C/C++ parser options"); }
  294. - virtual wxString GetBitmapBaseName() const { return _T("generic-plugin"); }
  295. - virtual void OnApply();
  296. - virtual void OnCancel(){}
  297. + wxString GetTitle() const override { return _("C/C++ parser options"); }
  298. + wxString GetBitmapBaseName() const override { return _T("generic-plugin"); }
  299. + void OnApply() override;
  300. + void OnCancel() override {}
  301. protected:
  302. void OnAdd(wxCommandEvent& event);
  303. diff --git a/src/plugins/codecompletion/cctreectrl.h b/src/plugins/codecompletion/cctreectrl.h
  304. index ca93673a3..df8838b17 100644
  305. --- a/src/plugins/codecompletion/cctreectrl.h
  306. +++ b/src/plugins/codecompletion/cctreectrl.h
  307. @@ -105,7 +105,7 @@ class CCTreeCtrl : public wxTreeCtrl
  308. static int CBLineCompare (CCTreeCtrlData* lhs, CCTreeCtrlData* rhs);
  309. static int CBNoCompare (CCTreeCtrlData* lhs, CCTreeCtrlData* rhs);
  310. - int OnCompareItems(const wxTreeItemId& item1, const wxTreeItemId& item2);
  311. + int OnCompareItems(const wxTreeItemId& item1, const wxTreeItemId& item2) override;
  312. int (*Compare)(CCTreeCtrlData* lhs, CCTreeCtrlData* rhs);
  313. DECLARE_DYNAMIC_CLASS(CCTreeCtrl)
  314. diff --git a/src/plugins/codecompletion/classbrowserbuilderthread.h b/src/plugins/codecompletion/classbrowserbuilderthread.h
  315. index 315cb8911..4f2acc284 100644
  316. --- a/src/plugins/codecompletion/classbrowserbuilderthread.h
  317. +++ b/src/plugins/codecompletion/classbrowserbuilderthread.h
  318. @@ -36,7 +36,7 @@ class ClassBrowserBuilderThread : public wxThread
  319. ClassBrowserBuilderThread(wxEvtHandler* evtHandler, wxSemaphore& sem);
  320. /** destructor */
  321. - virtual ~ClassBrowserBuilderThread();
  322. + ~ClassBrowserBuilderThread() override;
  323. // Called from external:
  324. void Init(NativeParser* np, CCTreeCtrl* treeTop, CCTreeCtrl* treeBottom,
  325. @@ -68,7 +68,7 @@ class ClassBrowserBuilderThread : public wxThread
  326. void RequestTermination(bool terminate = true) { m_TerminationRequested = terminate; }
  327. protected:
  328. - virtual void* Entry();
  329. + void* Entry() override;
  330. // Called from Entry():
  331. void BuildTree();
  332. diff --git a/src/plugins/codecompletion/codecompletion.h b/src/plugins/codecompletion/codecompletion.h
  333. index fb0976bf0..83cc146b3 100644
  334. --- a/src/plugins/codecompletion/codecompletion.h
  335. +++ b/src/plugins/codecompletion/codecompletion.h
  336. @@ -82,34 +82,34 @@ class CodeCompletion : public cbCodeCompletionPlugin
  337. /** Constructor */
  338. CodeCompletion();
  339. /** Destructor */
  340. - virtual ~CodeCompletion();
  341. + ~CodeCompletion() override;
  342. // the function below were virtual functions from the base class
  343. - virtual void OnAttach();
  344. - virtual void OnRelease(bool appShutDown);
  345. - virtual int GetConfigurationGroup() const { return cgEditor; }
  346. + void OnAttach() override;
  347. + void OnRelease(bool appShutDown) override;
  348. + int GetConfigurationGroup() const override { return cgEditor; }
  349. /** CC's config dialog */
  350. - virtual cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
  351. + cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) override;
  352. /** CC's config dialog which show in the project options panel */
  353. - virtual cbConfigurationPanel* GetProjectConfigurationPanel(wxWindow* parent, cbProject* project);
  354. + cbConfigurationPanel* GetProjectConfigurationPanel(wxWindow* parent, cbProject* project) override;
  355. /** build menus in the main frame */
  356. - virtual void BuildMenu(wxMenuBar* menuBar);
  357. + void BuildMenu(wxMenuBar* menuBar) override;
  358. /** build context popup menu */
  359. - virtual void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0);
  360. + void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0) override;
  361. /** build CC Toolbar */
  362. - virtual bool BuildToolBar(wxToolBar* toolBar);
  363. + bool BuildToolBar(wxToolBar* toolBar) override;
  364. /** toolbar priority value */
  365. - virtual int GetToolBarPriority() { return 10; }
  366. + int GetToolBarPriority() override { return 10; }
  367. // override virtual functions in cbCodeCompletionPlugin class
  368. - virtual CCProviderStatus GetProviderStatusFor(cbEditor* ed);
  369. - virtual std::vector<CCToken> GetAutocompList(bool isAuto, cbEditor* ed, int& tknStart, int& tknEnd);
  370. - virtual std::vector<CCCallTip> GetCallTips(int pos, int style, cbEditor* ed, int& argsPos);
  371. - virtual wxString GetDocumentation(const CCToken& token);
  372. - virtual std::vector<CCToken> GetTokenAt(int pos, cbEditor* ed, bool& allowCallTip);
  373. - virtual wxString OnDocumentationLink(wxHtmlLinkEvent& event, bool& dismissPopup);
  374. - virtual void DoAutocomplete(const CCToken& token, cbEditor* ed);
  375. + CCProviderStatus GetProviderStatusFor(cbEditor* ed) override;
  376. + std::vector<CCToken> GetAutocompList(bool isAuto, cbEditor* ed, int& tknStart, int& tknEnd) override;
  377. + std::vector<CCCallTip> GetCallTips(int pos, int style, cbEditor* ed, int& argsPos) override;
  378. + wxString GetDocumentation(const CCToken& token) override;
  379. + std::vector<CCToken> GetTokenAt(int pos, cbEditor* ed, bool& allowCallTip) override;
  380. + wxString OnDocumentationLink(wxHtmlLinkEvent& event, bool& dismissPopup) override;
  381. + void DoAutocomplete(const CCToken& token, cbEditor* ed) override;
  382. /** Get the include paths setting (usually set by user for each C::B project).
  383. * If it finds some system level include search dirs which haven't been scanned, it will start a
  384. diff --git a/src/plugins/codecompletion/parser/parser.h b/src/plugins/codecompletion/parser/parser.h
  385. index 70796fcb9..ab2f7add4 100644
  386. --- a/src/plugins/codecompletion/parser/parser.h
  387. +++ b/src/plugins/codecompletion/parser/parser.h
  388. @@ -125,82 +125,83 @@ class Parser : public ParserBase
  389. */
  390. Parser(wxEvtHandler* parent, cbProject* project);
  391. /** destructor */
  392. - virtual ~Parser();
  393. + ~Parser() override;
  394. /** Add files to batch parse mode, internally. The files will be parsed sequentially.
  395. * @param filenames input files name array
  396. */
  397. - virtual void AddBatchParse(const StringList& filenames);
  398. + void AddBatchParse(const StringList& filenames) override;
  399. /** Add one file to Batch mode Parsing, this is the bridge between the main thread and the
  400. * thread pool, after this function call, the file(Parserthread) will be run from the thread
  401. * pool.
  402. * @param filenames input file name
  403. */
  404. - virtual void AddParse(const wxString& filename);
  405. + void AddParse(const wxString& filename) override;
  406. /** set the predefined macro definition string was collected from the GCC command line,
  407. * this function adds the string to an internal m_PredefinedMacros, and switch the ParserState
  408. */
  409. - virtual void AddPredefinedMacros(const wxString& defs);
  410. + void AddPredefinedMacros(const wxString& defs) override;
  411. /** clears the list of predefined macros after it has been parsed */
  412. virtual void ClearPredefinedMacros();
  413. /** return the predefined macro definition string that has been collected */
  414. - virtual const wxString GetPredefinedMacros() const;
  415. + const wxString GetPredefinedMacros() const override;
  416. /** set the associated C::B project pointer. (only used by one parser for whole workspace)
  417. * @return true if it can do the switch, other wise, return false, and print some debug logs.
  418. */
  419. - virtual bool UpdateParsingProject(cbProject* project);
  420. + bool UpdateParsingProject(cbProject* project) override;
  421. /** Must add a locker before call all named ParseBufferXXX functions, ParseBuffer function will
  422. * directly run the parsing in the same thread as the caller. So, take care if the time is limited.
  423. * this function usually used to parse the function body to fetch the local variable information.
  424. */
  425. - virtual bool ParseBuffer(const wxString& buffer, bool isLocal, bool bufferSkipBlocks = false,
  426. - bool isTemp = false, const wxString& filename = wxEmptyString,
  427. - int parentIdx = -1, int initLine = 0);
  428. + bool ParseBuffer(const wxString& buffer, bool isLocal, bool bufferSkipBlocks = false,
  429. + bool isTemp = false, const wxString& filename = wxEmptyString,
  430. + int parentIdx = -1, int initLine = 0) override;
  431. /** parser the current editor control, this function is used to list all the functions in the
  432. * current code editor
  433. */
  434. - virtual bool ParseBufferForFunctions(const wxString& buffer);
  435. + bool ParseBufferForFunctions(const wxString& buffer) override;
  436. /** parse the buffer for collecting exposed namespace scopes*/
  437. - virtual bool ParseBufferForNamespaces(const wxString& buffer, NameSpaceVec& result);
  438. + bool ParseBufferForNamespaces(const wxString& buffer, NameSpaceVec& result) override;
  439. /** parse the buffer for collecting using namespace directive*/
  440. - virtual bool ParseBufferForUsingNamespace(const wxString& buffer, wxArrayString& result, bool bufferSkipBlocks = true);
  441. + bool ParseBufferForUsingNamespace(const wxString& buffer, wxArrayString& result,
  442. + bool bufferSkipBlocks = true) override;
  443. /** mark this file to be re-parsed in the TokenTree, tick the reparse timer, note it looks like
  444. * the isLocal parameter is not used in Parser::Reparse function.
  445. * A better function name could be: MarkFileNeedToBeReParsed()
  446. */
  447. - virtual bool Reparse(const wxString& filename, bool isLocal = true);
  448. + bool Reparse(const wxString& filename, bool isLocal = true) override;
  449. /** this usually happens when user adds some files to an existing project, it just use AddParse()
  450. * function internally to add the file. and switch the ParserState to ParserCommon::ptAddFileToParser.
  451. */
  452. - virtual bool AddFile(const wxString& filename, cbProject* project, bool isLocal = true);
  453. + bool AddFile(const wxString& filename, cbProject* project, bool isLocal = true) override;
  454. /** this usually happens when the user removes a file from the existing project, it will remove
  455. * all the tokens belong to the file.
  456. */
  457. - virtual bool RemoveFile(const wxString& filename);
  458. + bool RemoveFile(const wxString& filename) override;
  459. /** check to see a file is parsed already, it first check the TokenTree to see whether it has
  460. * the specified file, but if a file is already queued (put in m_BatchParseFiles), we regard it
  461. * as already parsed.
  462. */
  463. - virtual bool IsFileParsed(const wxString& filename);
  464. + bool IsFileParsed(const wxString& filename) override;
  465. /** check to see whether Parser is in Idle mode, there is no work need to be done in the Parser*/
  466. - virtual bool Done();
  467. + bool Done() override;
  468. /** if the Parser is not in Idle mode, show which need to be done */
  469. - virtual wxString NotDoneReason();
  470. + wxString NotDoneReason() override;
  471. protected:
  472. // used for measuring the batch parsing time
  473. @@ -258,9 +259,9 @@ class Parser : public ParserBase
  474. void ProcessParserEvent(ParserCommon::ParserState state, int id, const wxString& info = wxEmptyString);
  475. /** read Parser options from configure file */
  476. - virtual void ReadOptions();
  477. + void ReadOptions() override;
  478. /** write Parse options to configure file */
  479. - virtual void WriteOptions();
  480. + void WriteOptions() override;
  481. private:
  482. /** the only usage of this function is in the Parserthread class, when handling include directives
  483. @@ -273,7 +274,7 @@ class Parser : public ParserBase
  484. * the locked should be set as false, but if you want to recursive parse to an include file
  485. * the locked value should be set as true.
  486. */
  487. - virtual bool ParseFile(const wxString& filename, bool isGlobal, bool locked = false);
  488. + bool ParseFile(const wxString& filename, bool isGlobal, bool locked = false) override;
  489. /** connect event handlers of the timers and thread pool */
  490. void ConnectEvents();
  491. diff --git a/src/plugins/codecompletion/parser/parserthread.h b/src/plugins/codecompletion/parser/parserthread.h
  492. index 5747d394f..26eec7dd3 100644
  493. --- a/src/plugins/codecompletion/parser/parserthread.h
  494. +++ b/src/plugins/codecompletion/parser/parserthread.h
  495. @@ -185,7 +185,7 @@ class ParserThread : public cbThreadedTask
  496. * often happens when user open a project. Every parserthread task will firstly be added to the thread pool, later
  497. * called automatically from the thread pool.
  498. */
  499. - int Execute()
  500. + int Execute() override
  501. {
  502. CC_LOCKER_TRACK_TT_MTX_LOCK(s_TokenTreeMutex)
  503. diff --git a/src/plugins/codecompletion/parser/parserthreadedtask.h b/src/plugins/codecompletion/parser/parserthreadedtask.h
  504. index f71141a82..5bd8e028a 100644
  505. --- a/src/plugins/codecompletion/parser/parserthreadedtask.h
  506. +++ b/src/plugins/codecompletion/parser/parserthreadedtask.h
  507. @@ -26,7 +26,7 @@ class ParserThreadedTask : public cbThreadedTask
  508. // run sequence parsing jobs in a single thread, those include
  509. // 1, parsing predefined macro buffers
  510. // 2, parsing project files(mainly the implementation source files)
  511. - virtual int Execute();
  512. + int Execute() override;
  513. private:
  514. Parser* m_Parser; /// a Parser object which contain TokenTree
  515. @@ -43,7 +43,7 @@ class MarkFileAsLocalThreadedTask : public cbThreadedTask
  516. public:
  517. MarkFileAsLocalThreadedTask(Parser* parser, cbProject* project);
  518. - virtual int Execute();
  519. + int Execute() override;
  520. private:
  521. Parser* m_Parser; /// a Parser object which contain TokenTree
  522. diff --git a/src/plugins/codecompletion/parser/searchtree.h b/src/plugins/codecompletion/parser/searchtree.h
  523. index 418f6fa4f..6db13cc66 100644
  524. --- a/src/plugins/codecompletion/parser/searchtree.h
  525. +++ b/src/plugins/codecompletion/parser/searchtree.h
  526. @@ -375,10 +375,10 @@ template <class T> class SearchTree : public BasicSearchTree
  527. {
  528. public:
  529. SearchTree();
  530. - virtual ~SearchTree();
  531. - virtual void clear(); /// Clears the tree
  532. - size_t GetCount() const; /// Gets the number of items stored
  533. - virtual size_t size() const; /// Same as GetCount
  534. + ~SearchTree() override;
  535. + void clear() override; /// Clears the tree
  536. + size_t GetCount() const override; /// Gets the number of items stored
  537. + size_t size() const override; /// Same as GetCount
  538. bool SaveCacheTo(const wxString& filename); /// Stores the Tree and items into a file
  539. bool LoadCacheFrom(const wxString& filename); /// Loads the Tree and items from a file
  540. wxString Serialize();
  541. diff --git a/src/plugins/codecompletion/systemheadersthread.h b/src/plugins/codecompletion/systemheadersthread.h
  542. index fd6955e10..9e6ac1f99 100644
  543. --- a/src/plugins/codecompletion/systemheadersthread.h
  544. +++ b/src/plugins/codecompletion/systemheadersthread.h
  545. @@ -35,9 +35,9 @@ class SystemHeadersThread : public wxThread
  546. public:
  547. SystemHeadersThread(wxEvtHandler* parent, wxCriticalSection* critSect,
  548. SystemHeadersMap& headersMap, const wxArrayString& incDirs);
  549. - virtual ~SystemHeadersThread();
  550. + ~SystemHeadersThread() override;
  551. - virtual void* Entry();
  552. + void* Entry() override;
  553. private:
  554. wxEvtHandler* m_Parent; /// this is the target the thread will sent any event to
  555. diff --git a/src/plugins/compilergcc/advancedcompileroptionsdlg.h b/src/plugins/compilergcc/advancedcompileroptionsdlg.h
  556. index 1ded3feaa..0e29770de 100644
  557. --- a/src/plugins/compilergcc/advancedcompileroptionsdlg.h
  558. +++ b/src/plugins/compilergcc/advancedcompileroptionsdlg.h
  559. @@ -17,7 +17,7 @@ class AdvancedCompilerOptionsDlg : public wxScrollingDialog
  560. {
  561. public:
  562. AdvancedCompilerOptionsDlg(wxWindow* parent, const wxString& compilerId);
  563. - virtual ~AdvancedCompilerOptionsDlg();
  564. + ~AdvancedCompilerOptionsDlg() override;
  565. bool IsDirty() const {return m_bDirty;}
  566. private:
  567. void OnCommandsChange(wxCommandEvent& event);
  568. @@ -32,7 +32,7 @@ class AdvancedCompilerOptionsDlg : public wxScrollingDialog
  569. void OnRegexUp(wxSpinEvent& event);
  570. void OnRegexDown(wxSpinEvent& event);
  571. - void EndModal(int retCode);
  572. + void EndModal(int retCode) override;
  573. void ReadCompilerOptions();
  574. void WriteCompilerOptions();
  575. void ReadExtensions(int nr);
  576. diff --git a/src/plugins/compilergcc/compilerCYGWIN.h b/src/plugins/compilergcc/compilerCYGWIN.h
  577. index d24ec4cfd..93ec9bd11 100644
  578. --- a/src/plugins/compilergcc/compilerCYGWIN.h
  579. +++ b/src/plugins/compilergcc/compilerCYGWIN.h
  580. @@ -12,10 +12,10 @@ class CompilerCYGWIN : public CompilerMINGW
  581. {
  582. public:
  583. CompilerCYGWIN();
  584. - ~CompilerCYGWIN();
  585. - virtual AutoDetectResult AutoDetectInstallationDir();
  586. + ~CompilerCYGWIN() override;
  587. + AutoDetectResult AutoDetectInstallationDir() override;
  588. protected:
  589. - virtual Compiler* CreateCopy();
  590. + Compiler* CreateCopy() override;
  591. private:
  592. };
  593. diff --git a/src/plugins/compilergcc/compilerG95.h b/src/plugins/compilergcc/compilerG95.h
  594. index 52cffed16..ba594b8cf 100644
  595. --- a/src/plugins/compilergcc/compilerG95.h
  596. +++ b/src/plugins/compilergcc/compilerG95.h
  597. @@ -13,10 +13,10 @@ class CompilerG95 : public Compiler
  598. {
  599. public:
  600. CompilerG95();
  601. - virtual ~CompilerG95();
  602. - virtual AutoDetectResult AutoDetectInstallationDir();
  603. + ~CompilerG95() override;
  604. + AutoDetectResult AutoDetectInstallationDir() override;
  605. protected:
  606. - virtual Compiler* CreateCopy();
  607. + Compiler* CreateCopy() override;
  608. private:
  609. };
  610. diff --git a/src/plugins/compilergcc/compilerGDC.h b/src/plugins/compilergcc/compilerGDC.h
  611. index fb3786382..b2b9598e0 100644
  612. --- a/src/plugins/compilergcc/compilerGDC.h
  613. +++ b/src/plugins/compilergcc/compilerGDC.h
  614. @@ -12,10 +12,10 @@ class CompilerGDC : public Compiler
  615. {
  616. public:
  617. CompilerGDC();
  618. - virtual ~CompilerGDC();
  619. - virtual AutoDetectResult AutoDetectInstallationDir();
  620. + ~CompilerGDC() override;
  621. + AutoDetectResult AutoDetectInstallationDir() override;
  622. protected:
  623. - virtual Compiler* CreateCopy();
  624. + Compiler* CreateCopy() override;
  625. private:
  626. };
  627. diff --git a/src/plugins/compilergcc/compilerGNUARM.h b/src/plugins/compilergcc/compilerGNUARM.h
  628. index 101d3c25b..899a77205 100644
  629. --- a/src/plugins/compilergcc/compilerGNUARM.h
  630. +++ b/src/plugins/compilergcc/compilerGNUARM.h
  631. @@ -12,10 +12,10 @@ class CompilerGNUARM : public Compiler
  632. {
  633. public:
  634. CompilerGNUARM();
  635. - virtual ~CompilerGNUARM();
  636. - virtual AutoDetectResult AutoDetectInstallationDir();
  637. + ~CompilerGNUARM() override;
  638. + AutoDetectResult AutoDetectInstallationDir() override;
  639. protected:
  640. - virtual Compiler* CreateCopy();
  641. + Compiler* CreateCopy() override;
  642. private:
  643. };
  644. diff --git a/src/plugins/compilergcc/compilerGNUFortran.h b/src/plugins/compilergcc/compilerGNUFortran.h
  645. index 38bc1a6ca..4a7807f90 100644
  646. --- a/src/plugins/compilergcc/compilerGNUFortran.h
  647. +++ b/src/plugins/compilergcc/compilerGNUFortran.h
  648. @@ -12,10 +12,10 @@ class CompilerGNUFortran : public Compiler
  649. {
  650. public:
  651. CompilerGNUFortran();
  652. - virtual ~CompilerGNUFortran();
  653. - virtual AutoDetectResult AutoDetectInstallationDir();
  654. + ~CompilerGNUFortran() override;
  655. + AutoDetectResult AutoDetectInstallationDir() override;
  656. protected:
  657. - virtual Compiler* CreateCopy();
  658. + Compiler* CreateCopy() override;
  659. private:
  660. };
  661. diff --git a/src/plugins/compilergcc/compilerIAR.h b/src/plugins/compilergcc/compilerIAR.h
  662. index fafc3618e..1400bc5b1 100644
  663. --- a/src/plugins/compilergcc/compilerIAR.h
  664. +++ b/src/plugins/compilergcc/compilerIAR.h
  665. @@ -12,10 +12,10 @@ class CompilerIAR : public Compiler
  666. {
  667. public:
  668. CompilerIAR(wxString arch);
  669. - virtual ~CompilerIAR();
  670. - virtual AutoDetectResult AutoDetectInstallationDir();
  671. + ~CompilerIAR() override;
  672. + AutoDetectResult AutoDetectInstallationDir() override;
  673. protected:
  674. - virtual Compiler* CreateCopy();
  675. + Compiler* CreateCopy() override;
  676. wxString m_Arch;
  677. private:
  678. };
  679. diff --git a/src/plugins/compilergcc/compilerICC.h b/src/plugins/compilergcc/compilerICC.h
  680. index 6123d9b4d..cc3afbb1f 100644
  681. --- a/src/plugins/compilergcc/compilerICC.h
  682. +++ b/src/plugins/compilergcc/compilerICC.h
  683. @@ -16,10 +16,10 @@ class CompilerICC : public Compiler
  684. {
  685. public:
  686. CompilerICC();
  687. - virtual ~CompilerICC();
  688. - virtual AutoDetectResult AutoDetectInstallationDir();
  689. + ~CompilerICC() override;
  690. + AutoDetectResult AutoDetectInstallationDir() override;
  691. protected:
  692. - virtual Compiler* CreateCopy();
  693. + Compiler* CreateCopy() override;
  694. private:
  695. };
  696. diff --git a/src/plugins/compilergcc/compilerKeilC51.h b/src/plugins/compilergcc/compilerKeilC51.h
  697. index e8088809e..a76b2d60a 100644
  698. --- a/src/plugins/compilergcc/compilerKeilC51.h
  699. +++ b/src/plugins/compilergcc/compilerKeilC51.h
  700. @@ -12,11 +12,11 @@ class CompilerKeilC51 : public Compiler
  701. {
  702. public:
  703. CompilerKeilC51();
  704. - virtual ~CompilerKeilC51();
  705. - virtual AutoDetectResult AutoDetectInstallationDir();
  706. + ~CompilerKeilC51() override;
  707. + AutoDetectResult AutoDetectInstallationDir() override;
  708. protected:
  709. CompilerKeilC51(const wxString& name, const wxString& ID);
  710. - virtual Compiler* CreateCopy();
  711. + Compiler* CreateCopy() override;
  712. AutoDetectResult AutoDetectInstallationDir(bool keilx);
  713. private:
  714. };
  715. @@ -25,9 +25,9 @@ class CompilerKeilCX51 : public CompilerKeilC51
  716. {
  717. public:
  718. CompilerKeilCX51();
  719. - virtual ~CompilerKeilCX51();
  720. + ~CompilerKeilCX51() override;
  721. protected:
  722. - virtual Compiler* CreateCopy();
  723. + Compiler* CreateCopy() override;
  724. private:
  725. };
  726. diff --git a/src/plugins/compilergcc/compilerLCC.h b/src/plugins/compilergcc/compilerLCC.h
  727. index aa496f9f1..063d8a19d 100644
  728. --- a/src/plugins/compilergcc/compilerLCC.h
  729. +++ b/src/plugins/compilergcc/compilerLCC.h
  730. @@ -7,14 +7,14 @@ class CompilerLCC : public Compiler
  731. {
  732. public:
  733. CompilerLCC();
  734. - virtual ~CompilerLCC();
  735. + ~CompilerLCC() override;
  736. #ifdef __WXMSW__
  737. - virtual bool IsValid();
  738. + bool IsValid() override;
  739. #endif // __WXMSW__
  740. - virtual void Reset();
  741. - virtual AutoDetectResult AutoDetectInstallationDir();
  742. + void Reset() override;
  743. + AutoDetectResult AutoDetectInstallationDir() override;
  744. protected:
  745. - virtual Compiler* CreateCopy();
  746. + Compiler* CreateCopy() override;
  747. private:
  748. bool m_RegistryUpdated;
  749. };
  750. diff --git a/src/plugins/compilergcc/compilerMINGW.h b/src/plugins/compilergcc/compilerMINGW.h
  751. index 9c04e2b22..7d5c47171 100644
  752. --- a/src/plugins/compilergcc/compilerMINGW.h
  753. +++ b/src/plugins/compilergcc/compilerMINGW.h
  754. @@ -15,12 +15,12 @@ class CompilerMINGW : public Compiler
  755. // added arguments to ctor so we can derive other gcc-flavours directly
  756. // from MinGW (e.g. the cygwin compiler is derived from this one).
  757. CompilerMINGW(const wxString& name = _("GNU GCC Compiler"), const wxString& ID = _T("gcc"));
  758. - virtual ~CompilerMINGW();
  759. - virtual AutoDetectResult AutoDetectInstallationDir();
  760. - virtual CompilerCommandGenerator* GetCommandGenerator(cbProject *project);
  761. + ~CompilerMINGW() override;
  762. + AutoDetectResult AutoDetectInstallationDir() override;
  763. + CompilerCommandGenerator* GetCommandGenerator(cbProject *project) override;
  764. protected:
  765. - virtual Compiler* CreateCopy();
  766. - virtual void SetVersionString();
  767. + Compiler* CreateCopy() override;
  768. + void SetVersionString() override;
  769. private:
  770. };
  771. diff --git a/src/plugins/compilergcc/compilerMSVC.h b/src/plugins/compilergcc/compilerMSVC.h
  772. index d84ed4d14..5b9eb572b 100644
  773. --- a/src/plugins/compilergcc/compilerMSVC.h
  774. +++ b/src/plugins/compilergcc/compilerMSVC.h
  775. @@ -12,10 +12,10 @@ class CompilerMSVC : public Compiler
  776. {
  777. public:
  778. CompilerMSVC();
  779. - virtual ~CompilerMSVC();
  780. - virtual AutoDetectResult AutoDetectInstallationDir();
  781. + ~CompilerMSVC() override;
  782. + AutoDetectResult AutoDetectInstallationDir() override;
  783. protected:
  784. - Compiler * CreateCopy();
  785. + Compiler * CreateCopy() override;
  786. private:
  787. };
  788. diff --git a/src/plugins/compilergcc/compilerMSVC10.h b/src/plugins/compilergcc/compilerMSVC10.h
  789. index d2bbb5b7f..346fcc8d3 100644
  790. --- a/src/plugins/compilergcc/compilerMSVC10.h
  791. +++ b/src/plugins/compilergcc/compilerMSVC10.h
  792. @@ -12,11 +12,11 @@ class CompilerMSVC10 : public Compiler
  793. {
  794. public:
  795. CompilerMSVC10();
  796. - virtual ~CompilerMSVC10();
  797. - virtual AutoDetectResult AutoDetectInstallationDir();
  798. + ~CompilerMSVC10() override;
  799. + AutoDetectResult AutoDetectInstallationDir() override;
  800. protected:
  801. - Compiler* CreateCopy();
  802. + Compiler* CreateCopy() override;
  803. };
  804. #endif // COMPILERMSVC10_H_
  805. diff --git a/src/plugins/compilergcc/compilerMSVC8.h b/src/plugins/compilergcc/compilerMSVC8.h
  806. index 7345b64a4..81aef9358 100644
  807. --- a/src/plugins/compilergcc/compilerMSVC8.h
  808. +++ b/src/plugins/compilergcc/compilerMSVC8.h
  809. @@ -12,10 +12,10 @@ class CompilerMSVC8 : public Compiler
  810. {
  811. public:
  812. CompilerMSVC8();
  813. - virtual ~CompilerMSVC8();
  814. - virtual AutoDetectResult AutoDetectInstallationDir();
  815. + ~CompilerMSVC8() override;
  816. + AutoDetectResult AutoDetectInstallationDir() override;
  817. protected:
  818. - Compiler * CreateCopy();
  819. + Compiler * CreateCopy() override;
  820. private:
  821. };
  822. diff --git a/src/plugins/compilergcc/compilerOW.h b/src/plugins/compilergcc/compilerOW.h
  823. index 8e0c9a417..734b43fa3 100644
  824. --- a/src/plugins/compilergcc/compilerOW.h
  825. +++ b/src/plugins/compilergcc/compilerOW.h
  826. @@ -12,14 +12,14 @@ class CompilerOW : public Compiler
  827. {
  828. public:
  829. CompilerOW();
  830. - virtual ~CompilerOW();
  831. - virtual AutoDetectResult AutoDetectInstallationDir();
  832. + ~CompilerOW() override;
  833. + AutoDetectResult AutoDetectInstallationDir() override;
  834. - virtual void LoadSettings(const wxString& baseKey);
  835. - virtual void SetMasterPath(const wxString& path);
  836. - virtual CompilerCommandGenerator* GetCommandGenerator(cbProject *project);
  837. + void LoadSettings(const wxString& baseKey) override;
  838. + void SetMasterPath(const wxString& path) override;
  839. + CompilerCommandGenerator* GetCommandGenerator(cbProject *project) override;
  840. protected:
  841. - Compiler * CreateCopy();
  842. + Compiler * CreateCopy() override;
  843. private:
  844. };
  845. diff --git a/src/plugins/compilergcc/compilerXML.h b/src/plugins/compilergcc/compilerXML.h
  846. index af0665e74..db2aca08c 100644
  847. --- a/src/plugins/compilergcc/compilerXML.h
  848. +++ b/src/plugins/compilergcc/compilerXML.h
  849. @@ -9,12 +9,12 @@ class CompilerXML : public Compiler
  850. {
  851. public:
  852. CompilerXML(const wxString& name, const wxString& ID, const wxString& file);
  853. - virtual ~CompilerXML();
  854. + ~CompilerXML() override;
  855. - virtual AutoDetectResult AutoDetectInstallationDir();
  856. + AutoDetectResult AutoDetectInstallationDir() override;
  857. protected:
  858. - virtual Compiler* CreateCopy();
  859. + Compiler* CreateCopy() override;
  860. private:
  861. diff --git a/src/plugins/compilergcc/compilerflagdlg.h b/src/plugins/compilergcc/compilerflagdlg.h
  862. index f356c6cd3..761ea78fb 100644
  863. --- a/src/plugins/compilergcc/compilerflagdlg.h
  864. +++ b/src/plugins/compilergcc/compilerflagdlg.h
  865. @@ -13,9 +13,9 @@ class CompilerFlagDlg: public wxDialog
  866. public:
  867. CompilerFlagDlg(wxWindow* parent, CompOption* opt, wxArrayString& categ, const wxString &selectedCategory);
  868. - virtual ~CompilerFlagDlg();
  869. + virtual ~CompilerFlagDlg() override;
  870. - void EndModal(int retCode);
  871. + void EndModal(int retCode) override;
  872. protected:
  873. diff --git a/src/plugins/compilergcc/compilergcc.h b/src/plugins/compilergcc/compilergcc.h
  874. index 36abee10b..11fd30122 100644
  875. --- a/src/plugins/compilergcc/compilergcc.h
  876. +++ b/src/plugins/compilergcc/compilergcc.h
  877. @@ -89,40 +89,40 @@ class CompilerGCC : public cbCompilerPlugin
  878. {
  879. public:
  880. CompilerGCC();
  881. - virtual ~CompilerGCC();
  882. + ~CompilerGCC() override;
  883. - virtual void OnAttach();
  884. - virtual void OnRelease(bool appShutDown);
  885. - virtual void BuildMenu(wxMenuBar* menuBar); // offer for menu space by host
  886. - virtual void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0); // offer for menu space by a module
  887. - virtual bool BuildToolBar(wxToolBar* toolBar);
  888. - virtual int GetToolBarPriority() { return 1; }
  889. + void OnAttach() override;
  890. + void OnRelease(bool appShutDown) override;
  891. + void BuildMenu(wxMenuBar* menuBar) override; // offer for menu space by host
  892. + void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0) override; // offer for menu space by a module
  893. + bool BuildToolBar(wxToolBar* toolBar) override;
  894. + int GetToolBarPriority() override { return 1; }
  895. - virtual int Run(ProjectBuildTarget* target = 0L);
  896. - virtual int Run(const wxString& target);
  897. + int Run(ProjectBuildTarget* target = 0L) override;
  898. + int Run(const wxString& target) override;
  899. virtual int RunSingleFile(const wxString& filename);
  900. - virtual int Clean(const wxString& target);
  901. - virtual int Clean(ProjectBuildTarget* target = 0L);
  902. - virtual int DistClean(ProjectBuildTarget* target = 0L);
  903. - virtual int DistClean(const wxString& target);
  904. - virtual int Build(ProjectBuildTarget* target = 0L);
  905. - virtual int Build(const wxString& target);
  906. - virtual int Rebuild(ProjectBuildTarget* target = 0L);
  907. - virtual int Rebuild(const wxString& target);
  908. - virtual int CleanWorkspace(const wxString& target = wxEmptyString);
  909. - virtual int BuildWorkspace(const wxString& target = wxEmptyString);
  910. - virtual int RebuildWorkspace(const wxString& target = wxEmptyString);
  911. - virtual int CompileFile(const wxString& file);
  912. + int Clean(const wxString& target) override;
  913. + int Clean(ProjectBuildTarget* target = 0L) override;
  914. + int DistClean(ProjectBuildTarget* target = 0L) override;
  915. + int DistClean(const wxString& target) override;
  916. + int Build(ProjectBuildTarget* target = 0L) override;
  917. + int Build(const wxString& target) override;
  918. + int Rebuild(ProjectBuildTarget* target = 0L) override;
  919. + int Rebuild(const wxString& target) override;
  920. + int CleanWorkspace(const wxString& target = wxEmptyString) override;
  921. + int BuildWorkspace(const wxString& target = wxEmptyString) override;
  922. + int RebuildWorkspace(const wxString& target = wxEmptyString) override;
  923. + int CompileFile(const wxString& file) override;
  924. virtual int CompileFileWithoutProject(const wxString& file);
  925. virtual int CompileFileDefault(cbProject* project, ProjectFile* pf, ProjectBuildTarget* bt);
  926. - virtual int KillProcess();
  927. - virtual bool IsRunning() const;
  928. - virtual int GetExitCode() const { return m_LastExitCode; }
  929. - virtual int Configure(cbProject* project, ProjectBuildTarget* target, wxWindow *parent);
  930. -
  931. - int GetConfigurationPriority() const { return 0; }
  932. - int GetConfigurationGroup() const { return cgCompiler; }
  933. - cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
  934. + int KillProcess() override;
  935. + bool IsRunning() const override;
  936. + int GetExitCode() const override { return m_LastExitCode; }
  937. + int Configure(cbProject* project, ProjectBuildTarget* target, wxWindow *parent) override;
  938. +
  939. + int GetConfigurationPriority() const override { return 0; }
  940. + int GetConfigurationGroup() const override { return cgCompiler; }
  941. + cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) override;
  942. bool IsValidTarget(const wxString& target) const;
  943. diff --git a/src/plugins/compilergcc/compilermessages.h b/src/plugins/compilergcc/compilermessages.h
  944. index 130c7caca..19b338cd7 100644
  945. --- a/src/plugins/compilergcc/compilermessages.h
  946. +++ b/src/plugins/compilergcc/compilermessages.h
  947. @@ -20,13 +20,13 @@ class CompilerMessages : public wxEvtHandler, public ListCtrlLogger
  948. virtual void SetCompilerErrors(CompilerErrors* errors){ m_pErrors = errors; }
  949. virtual void FocusError(int nr);
  950. - void AutoFitColumns(int column);
  951. + void AutoFitColumns(int column) override;
  952. - virtual wxWindow* CreateControl(wxWindow* parent);
  953. + wxWindow* CreateControl(wxWindow* parent) override;
  954. void DestroyControls();
  955. - virtual bool HasFeature(Feature::Enum feature) const;
  956. - virtual void AppendAdditionalMenuItems(wxMenu &menu);
  957. + bool HasFeature(Feature::Enum feature) const override;
  958. + void AppendAdditionalMenuItems(wxMenu &menu) override;
  959. private:
  960. void OnClick(wxCommandEvent& event);
  961. void OnDoubleClick(wxCommandEvent& event);
  962. diff --git a/src/plugins/compilergcc/compileroptionsdlg.h b/src/plugins/compilergcc/compileroptionsdlg.h
  963. index 756370fc3..fa90a947e 100644
  964. --- a/src/plugins/compilergcc/compileroptionsdlg.h
  965. +++ b/src/plugins/compilergcc/compileroptionsdlg.h
  966. @@ -29,12 +29,12 @@ class CompilerOptionsDlg : public cbConfigurationPanel
  967. {
  968. public:
  969. CompilerOptionsDlg(wxWindow* parent, CompilerGCC* compiler, cbProject* project = 0L, ProjectBuildTarget* target = 0L);
  970. - ~CompilerOptionsDlg();
  971. + ~CompilerOptionsDlg() override;
  972. - virtual wxString GetTitle() const { return _("Global compiler settings"); }
  973. - virtual wxString GetBitmapBaseName() const { return _T("compiler"); }
  974. - virtual void OnApply();
  975. - virtual void OnCancel(){}
  976. + wxString GetTitle() const override { return _("Global compiler settings"); }
  977. + wxString GetBitmapBaseName() const override { return _T("compiler"); }
  978. + void OnApply() override;
  979. + void OnCancel() override {}
  980. private:
  981. enum CustomVarActionType
  982. {
  983. diff --git a/src/plugins/debuggergdb/cdb_commands.h b/src/plugins/debuggergdb/cdb_commands.h
  984. index 617a05480..bb71a11d5 100644
  985. --- a/src/plugins/debuggergdb/cdb_commands.h
  986. +++ b/src/plugins/debuggergdb/cdb_commands.h
  987. @@ -49,7 +49,7 @@ class CdbCmd_AddSourceDir : public DebuggerCmd
  988. {
  989. m_Cmd << _T("directory ") << dir;
  990. }
  991. - void ParseOutput(const wxString& output)
  992. + void ParseOutput(const wxString& output) override
  993. {
  994. // Output:
  995. // Warning: C:\Devel\tmp\console\111: No such file or directory.
  996. @@ -71,7 +71,7 @@ class CdbCmd_SetDebuggee : public DebuggerCmd
  997. {
  998. m_Cmd << _T("file ") << file;
  999. }
  1000. - void ParseOutput(const wxString& output)
  1001. + void ParseOutput(const wxString& output) override
  1002. {
  1003. // Output:
  1004. // Reading symbols from C:\Devel\tmp\console/console.exe...done.
  1005. @@ -95,7 +95,7 @@ class CdbCmd_AddSymbolFile : public DebuggerCmd
  1006. {
  1007. m_Cmd << _T("add-symbol-file ") << file;
  1008. }
  1009. - void ParseOutput(const wxString& output)
  1010. + void ParseOutput(const wxString& output) override
  1011. {
  1012. // Output:
  1013. //
  1014. @@ -123,7 +123,7 @@ class CdbCmd_SetArguments : public DebuggerCmd
  1015. {
  1016. m_Cmd << _T("set args ") << args;
  1017. }
  1018. - void ParseOutput(cb_unused const wxString& output)
  1019. + void ParseOutput(cb_unused const wxString& output) override
  1020. {
  1021. // No output
  1022. }
  1023. @@ -141,7 +141,7 @@ class CdbCmd_GetPID : public DebuggerCmd
  1024. {
  1025. m_Cmd << _T("|.");
  1026. }
  1027. - void ParseOutput(const wxString& output)
  1028. + void ParseOutput(const wxString& output) override
  1029. {
  1030. // Output:
  1031. // <decimal process num> id: <hex PID> create name: <process name>
  1032. @@ -177,7 +177,7 @@ class CdbCmd_AttachToProcess : public DebuggerCmd
  1033. {
  1034. m_Cmd << _T("attach ") << wxString::Format(_T("%d"), pid);
  1035. }
  1036. - void ParseOutput(const wxString& output)
  1037. + void ParseOutput(const wxString& output) override
  1038. {
  1039. // Output:
  1040. // Attaching to process <pid>
  1041. @@ -214,7 +214,7 @@ class CdbCmd_Detach : public DebuggerCmd
  1042. {
  1043. m_Cmd << _T(".detach");
  1044. }
  1045. - void ParseOutput(const wxString& output)
  1046. + void ParseOutput(const wxString& output) override
  1047. {
  1048. // output any return, usually "Detached"
  1049. m_pDriver->Log(output);
  1050. @@ -232,7 +232,7 @@ class CdbCmd_Continue : public DebuggerContinueBaseCmd
  1051. : DebuggerContinueBaseCmd(driver,_T("g"))
  1052. {
  1053. }
  1054. - virtual void Action()
  1055. + void Action() override
  1056. {
  1057. m_pDriver->NotifyDebuggeeContinued();
  1058. }
  1059. @@ -269,7 +269,7 @@ class CdbCmd_AddBreakpoint : public DebuggerCmd
  1060. bp->alreadySet = true;
  1061. }
  1062. }
  1063. - void ParseOutput(const wxString& output)
  1064. + void ParseOutput(const wxString& output) override
  1065. {
  1066. // possible outputs (only output lines starting with ***):
  1067. //
  1068. @@ -305,7 +305,7 @@ class CdbCmd_RemoveBreakpoint : public DebuggerCmd
  1069. else
  1070. m_Cmd << _T("bc ") << wxString::Format(_T("%d"), (int) bp->index);
  1071. }
  1072. - void ParseOutput(const wxString& output)
  1073. + void ParseOutput(const wxString& output) override
  1074. {
  1075. // usually no output, so display whatever comes in
  1076. if (!output.IsEmpty())
  1077. @@ -331,7 +331,7 @@ class CdbCmd_Watch : public DebuggerCmd
  1078. m_Cmd << wxT("?? ") << symbol;
  1079. }
  1080. - void ParseOutput(const wxString& output)
  1081. + void ParseOutput(const wxString& output) override
  1082. {
  1083. if(!ParseCDBWatchValue(m_watch, output))
  1084. {
  1085. @@ -365,7 +365,7 @@ class CdbCmd_TooltipEvaluation : public DebuggerCmd
  1086. {
  1087. m_Cmd << _T("?? ") << what;
  1088. }
  1089. - void ParseOutput(const wxString& output)
  1090. + void ParseOutput(const wxString& output) override
  1091. {
  1092. // struct HWND__ * 0x7ffd8000
  1093. //
  1094. @@ -407,7 +407,7 @@ class CdbCmd_Backtrace : public DebuggerCmd
  1095. {
  1096. m_Cmd << _T("k n");
  1097. }
  1098. - void ParseOutput(const wxString& output)
  1099. + void ParseOutput(const wxString& output) override
  1100. {
  1101. // output is:
  1102. // # ChildEBP RetAddr
  1103. @@ -486,7 +486,7 @@ class CdbCmd_SwitchFrame : public DebuggerCmd
  1104. m_Cmd = wxString::Format(wxT(".frame %d"), frameNumber);
  1105. }
  1106. - virtual void ParseOutput(const wxString& output)
  1107. + void ParseOutput(const wxString& output) override
  1108. {
  1109. wxArrayString lines = GetArrayFromString(output, wxT('\n'));
  1110. @@ -529,7 +529,7 @@ class CdbCmd_InfoRegisters : public DebuggerCmd
  1111. {
  1112. m_Cmd << _T("r");
  1113. }
  1114. - void ParseOutput(const wxString& output)
  1115. + void ParseOutput(const wxString& output) override
  1116. {
  1117. // output is:
  1118. //
  1119. @@ -564,7 +564,7 @@ class CdbCmd_Disassembly : public DebuggerCmd
  1120. {
  1121. m_Cmd << _T("uf ") << StopAddress;
  1122. }
  1123. - void ParseOutput(const wxString& output)
  1124. + void ParseOutput(const wxString& output) override
  1125. {
  1126. // output is a series of:
  1127. //
  1128. @@ -601,7 +601,7 @@ class CdbCmd_DisassemblyInit : public DebuggerCmd
  1129. // print stack frame and nearest symbol (start of function)
  1130. m_Cmd << _T("k n 1; ln");
  1131. }
  1132. - void ParseOutput(const wxString& output)
  1133. + void ParseOutput(const wxString& output) override
  1134. {
  1135. // m_pDriver->QueueCommand(new CdbCmd_Disassembly(m_pDriver, m_pDlg, StopAddress)); // chain call
  1136. diff --git a/src/plugins/debuggergdb/cdb_driver.h b/src/plugins/debuggergdb/cdb_driver.h
  1137. index 014b33f3c..e0a23f82c 100644
  1138. --- a/src/plugins/debuggergdb/cdb_driver.h
  1139. +++ b/src/plugins/debuggergdb/cdb_driver.h
  1140. @@ -12,60 +12,61 @@ class CDB_driver : public DebuggerDriver
  1141. {
  1142. public:
  1143. CDB_driver(DebuggerGDB* plugin);
  1144. - virtual ~CDB_driver();
  1145. + ~CDB_driver() override;
  1146. - virtual wxString GetCommandLine(const wxString& debugger,
  1147. - const wxString& debuggee,
  1148. - const wxString &userArguments);
  1149. - virtual wxString GetCommandLine(const wxString& debugger, int pid, const wxString &userArguments);
  1150. - virtual void SetTarget(ProjectBuildTarget* target);
  1151. - virtual void Prepare(bool isConsole, int printElements, const RemoteDebugging &remoteDebugging);
  1152. - virtual void Start(bool breakOnEntry);
  1153. - virtual void Stop();
  1154. + wxString GetCommandLine(const wxString& debugger, const wxString& debuggee,
  1155. + const wxString &userArguments) override;
  1156. + wxString GetCommandLine(const wxString& debugger, int pid,
  1157. + const wxString &userArguments) override;
  1158. + void SetTarget(ProjectBuildTarget* target) override;
  1159. + void Prepare(bool isConsole, int printElements,
  1160. + const RemoteDebugging &remoteDebugging) override;
  1161. + void Start(bool breakOnEntry) override;
  1162. + void Stop() override;
  1163. - virtual void Continue();
  1164. - virtual void Step();
  1165. - virtual void StepInstruction();
  1166. - virtual void StepIntoInstruction();
  1167. - virtual void StepIn();
  1168. - virtual void StepOut();
  1169. - virtual void SetNextStatement(const wxString& filename, int line);
  1170. - virtual void Backtrace();
  1171. - virtual void Disassemble();
  1172. - virtual void CPURegisters();
  1173. - virtual void SwitchToFrame(size_t number);
  1174. - virtual void SetVarValue(const wxString& var, const wxString& value);
  1175. - virtual void SetMemoryRangeValue(uint64_t addr, const wxString& value);
  1176. - virtual void MemoryDump();
  1177. - virtual void Attach(int pid);
  1178. - virtual void Detach();
  1179. - virtual void RunningThreads();
  1180. + void Continue() override;
  1181. + void Step() override;
  1182. + void StepInstruction() override;
  1183. + void StepIntoInstruction() override;
  1184. + void StepIn() override;
  1185. + void StepOut() override;
  1186. + void SetNextStatement(const wxString& filename, int line) override;
  1187. + void Backtrace() override;
  1188. + void Disassemble() override;
  1189. + void CPURegisters() override;
  1190. + void SwitchToFrame(size_t number) override;
  1191. + void SetVarValue(const wxString& var, const wxString& value) override;
  1192. + void SetMemoryRangeValue(uint64_t addr, const wxString& value) override;
  1193. + void MemoryDump() override;
  1194. + void Attach(int pid) override;
  1195. + void Detach() override;
  1196. + void RunningThreads() override;
  1197. - void InfoFrame();
  1198. - void InfoDLL();
  1199. - void InfoFiles();
  1200. - void InfoFPU();
  1201. - void InfoSignals();
  1202. + void InfoFrame() override;
  1203. + void InfoDLL() override;
  1204. + void InfoFiles() override;
  1205. + void InfoFPU() override;
  1206. + void InfoSignals() override;
  1207. - void EnableCatchingThrow(bool enable);
  1208. + void EnableCatchingThrow(bool enable) override;
  1209. - virtual void SwitchThread(cb_unused size_t threadIndex){} // not implemented
  1210. + void SwitchThread(cb_unused size_t threadIndex) override {} // not implemented
  1211. - virtual void AddBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp);
  1212. - virtual void RemoveBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp);
  1213. - virtual void EvaluateSymbol(const wxString& symbol, const wxRect& tipRect);
  1214. - virtual void UpdateWatches(cb::shared_ptr<GDBWatch> localsWatch,
  1215. - cb::shared_ptr<GDBWatch> funcArgsWatch,
  1216. - WatchesContainer &watches, bool ignoreAutoUpdate);
  1217. - virtual void UpdateWatch(cb::shared_ptr<GDBWatch> const &watch);
  1218. - virtual void UpdateMemoryRangeWatches(MemoryRangeWatchesContainer &watches,
  1219. - bool ignoreAutoUpdate);
  1220. - virtual void UpdateMemoryRangeWatch(const cb::shared_ptr<GDBMemoryRangeWatch> &watch);
  1221. - virtual void UpdateWatchLocalsArgs(cb::shared_ptr<GDBWatch> const &watch, bool locals);
  1222. - virtual void ParseOutput(const wxString& output);
  1223. - virtual bool IsDebuggingStarted() const;
  1224. + void AddBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp) override;
  1225. + void RemoveBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp) override;
  1226. + void EvaluateSymbol(const wxString& symbol, const wxRect& tipRect) override;
  1227. + void UpdateWatches(cb::shared_ptr<GDBWatch> localsWatch,
  1228. + cb::shared_ptr<GDBWatch> funcArgsWatch,
  1229. + WatchesContainer &watches, bool ignoreAutoUpdate) override;
  1230. + void UpdateWatch(cb::shared_ptr<GDBWatch> const &watch) override;
  1231. + void UpdateMemoryRangeWatches(MemoryRangeWatchesContainer &watches,
  1232. + bool ignoreAutoUpdate) override;
  1233. + void UpdateMemoryRangeWatch(const cb::shared_ptr<GDBMemoryRangeWatch> &watch) override;
  1234. + void UpdateWatchLocalsArgs(cb::shared_ptr<GDBWatch> const &watch, bool locals) override;
  1235. + void ParseOutput(const wxString& output) override;
  1236. + bool IsDebuggingStarted() const override;
  1237. #ifdef __WXMSW__
  1238. - virtual bool UseDebugBreakProcess() { return true; }
  1239. + bool UseDebugBreakProcess() override { return true; }
  1240. #endif
  1241. protected:
  1242. private:
  1243. diff --git a/src/plugins/debuggergdb/debugger_defs.h b/src/plugins/debuggergdb/debugger_defs.h
  1244. index 4564f364f..d73f0768c 100644
  1245. --- a/src/plugins/debuggergdb/debugger_defs.h
  1246. +++ b/src/plugins/debuggergdb/debugger_defs.h
  1247. @@ -95,9 +95,9 @@ class DebuggerInfoCmd : public DebuggerCmd
  1248. {
  1249. m_Cmd = cmd;
  1250. }
  1251. - virtual ~DebuggerInfoCmd(){}
  1252. + ~DebuggerInfoCmd() override {}
  1253. - virtual void ParseOutput(const wxString& output);
  1254. + void ParseOutput(const wxString& output) override;
  1255. wxString m_Title;
  1256. };
  1257. @@ -110,7 +110,7 @@ class DebuggerContinueBaseCmd : public DebuggerCmd
  1258. {
  1259. }
  1260. - bool IsContinueCommand() const { return true; }
  1261. + bool IsContinueCommand() const override { return true; }
  1262. };
  1263. /** Action-only debugger command to signal the watches tree to update. */
  1264. @@ -160,15 +160,15 @@ struct DebuggerBreakpoint : cbBreakpoint
  1265. {}
  1266. // from cbBreakpoint
  1267. - virtual void SetEnabled(bool flag);
  1268. - virtual wxString GetLocation() const;
  1269. - virtual int GetLine() const;
  1270. - virtual wxString GetLineString() const;
  1271. - virtual wxString GetType() const;
  1272. - virtual wxString GetInfo() const;
  1273. - virtual bool IsEnabled() const;
  1274. - virtual bool IsVisibleInEditor() const;
  1275. - virtual bool IsTemporary() const;
  1276. + void SetEnabled(bool flag) override;
  1277. + wxString GetLocation() const override;
  1278. + int GetLine() const override;
  1279. + wxString GetLineString() const override;
  1280. + wxString GetType() const override;
  1281. + wxString GetInfo() const override;
  1282. + bool IsEnabled() const override;
  1283. + bool IsVisibleInEditor() const override;
  1284. + bool IsTemporary() const override;
  1285. BreakpointType type; ///< The type of this breakpoint.
  1286. wxString filename; ///< The filename for the breakpoint (kept as relative).
  1287. @@ -217,17 +217,17 @@ class GDBWatch : public cbWatch
  1288. {
  1289. public:
  1290. GDBWatch(wxString const &symbol);
  1291. - virtual ~GDBWatch();
  1292. + ~GDBWatch() override;
  1293. public:
  1294. - virtual void GetSymbol(wxString &symbol) const;
  1295. - virtual void GetValue(wxString &value) const;
  1296. - virtual bool SetValue(const wxString &value);
  1297. - virtual void GetFullWatchString(wxString &full_watch) const;
  1298. - virtual void GetType(wxString &type) const;
  1299. - virtual void SetType(const wxString &type);
  1300. + void GetSymbol(wxString &symbol) const override;
  1301. + void GetValue(wxString &value) const override;
  1302. + bool SetValue(const wxString &value) override;
  1303. + void GetFullWatchString(wxString &full_watch) const override;
  1304. + void GetType(wxString &type) const override;
  1305. + void SetType(const wxString &type) override;
  1306. - virtual wxString GetDebugString() const;
  1307. + wxString GetDebugString() const override;
  1308. wxString MakeSymbolToAddress() const override;
  1309. bool IsPointerType() const override;
  1310. diff --git a/src/plugins/debuggergdb/debuggergdb.h b/src/plugins/debuggergdb/debuggergdb.h
  1311. index f862685cc..89df6f42f 100644
  1312. --- a/src/plugins/debuggergdb/debuggergdb.h
  1313. +++ b/src/plugins/debuggergdb/debuggergdb.h
  1314. @@ -34,90 +34,92 @@ class DebuggerGDB : public cbDebuggerPlugin
  1315. DebuggerState m_State;
  1316. public:
  1317. DebuggerGDB();
  1318. - ~DebuggerGDB();
  1319. + ~DebuggerGDB() override;
  1320. - cbConfigurationPanel* GetProjectConfigurationPanel(wxWindow* parent, cbProject* project);
  1321. - void OnAttachReal(); // fires when the plugin is attached to the application
  1322. - void OnReleaseReal(bool appShutDown); // fires when the plugin is released from the application
  1323. + cbConfigurationPanel* GetProjectConfigurationPanel(wxWindow* parent,
  1324. + cbProject* project) override;
  1325. + void OnAttachReal() override; // fires when the plugin is attached to the application
  1326. + void OnReleaseReal(bool appShutDown) override; // fires when the plugin is released from the application
  1327. - bool SupportsFeature(cbDebuggerFeature::Flags flag);
  1328. + bool SupportsFeature(cbDebuggerFeature::Flags flag) override;
  1329. - cbDebuggerConfiguration* LoadConfig(const ConfigManagerWrapper &config);
  1330. + cbDebuggerConfiguration* LoadConfig(const ConfigManagerWrapper &config) override;
  1331. DebuggerConfiguration& GetActiveConfigEx();
  1332. void RunCommand(int cmd);
  1333. - cb::shared_ptr<cbBreakpoint> AddBreakpoint(const wxString& filename, int line);
  1334. - cb::shared_ptr<cbBreakpoint> AddDataBreakpoint(const wxString& dataExpression);
  1335. - int GetBreakpointsCount() const;
  1336. - cb::shared_ptr<cbBreakpoint> GetBreakpoint(int index);
  1337. - cb::shared_ptr<const cbBreakpoint> GetBreakpoint(int index) const;
  1338. - void UpdateBreakpoint(cb::shared_ptr<cbBreakpoint> breakpoint);
  1339. - void DeleteBreakpoint(cb::shared_ptr<cbBreakpoint> breakpoint);
  1340. - void DeleteAllBreakpoints();
  1341. - void ShiftBreakpoint(int index, int lines_to_shift);
  1342. - void EnableBreakpoint(cb::shared_ptr<cbBreakpoint> breakpoint, bool enable);
  1343. + cb::shared_ptr<cbBreakpoint> AddBreakpoint(const wxString& filename, int line) override;
  1344. + cb::shared_ptr<cbBreakpoint> AddDataBreakpoint(const wxString& dataExpression) override;
  1345. + int GetBreakpointsCount() const override;
  1346. + cb::shared_ptr<cbBreakpoint> GetBreakpoint(int index) override;
  1347. + cb::shared_ptr<const cbBreakpoint> GetBreakpoint(int index) const override;
  1348. + void UpdateBreakpoint(cb::shared_ptr<cbBreakpoint> breakpoint) override;
  1349. + void DeleteBreakpoint(cb::shared_ptr<cbBreakpoint> breakpoint) override;
  1350. + void DeleteAllBreakpoints() override;
  1351. + void ShiftBreakpoint(int index, int lines_to_shift) override;
  1352. + void EnableBreakpoint(cb::shared_ptr<cbBreakpoint> breakpoint, bool enable) override;
  1353. // stack frame calls;
  1354. - int GetStackFrameCount() const;
  1355. - cb::shared_ptr<const cbStackFrame> GetStackFrame(int index) const;
  1356. - void SwitchToFrame(int number);
  1357. - int GetActiveStackFrame() const;
  1358. + int GetStackFrameCount() const override;
  1359. + cb::shared_ptr<const cbStackFrame> GetStackFrame(int index) const override;
  1360. + void SwitchToFrame(int number) override;
  1361. + int GetActiveStackFrame() const override;
  1362. // threads
  1363. - int GetThreadsCount() const;
  1364. - cb::shared_ptr<const cbThread> GetThread(int index) const;
  1365. - bool SwitchToThread(int thread_number);
  1366. -
  1367. - bool Debug(bool breakOnEntry);
  1368. - void Continue();
  1369. - void Next();
  1370. - void NextInstruction();
  1371. - void StepIntoInstruction();
  1372. - void Step();
  1373. - void StepOut();
  1374. - bool RunToCursor(const wxString& filename, int line, const wxString& line_text);
  1375. - void SetNextStatement(const wxString& filename, int line);
  1376. - void Break();
  1377. - void Stop();
  1378. + int GetThreadsCount() const override;
  1379. + cb::shared_ptr<const cbThread> GetThread(int index) const override;
  1380. + bool SwitchToThread(int thread_number) override;
  1381. +
  1382. + bool Debug(bool breakOnEntry) override;
  1383. + void Continue() override;
  1384. + void Next() override;
  1385. + void NextInstruction() override;
  1386. + void StepIntoInstruction() override;
  1387. + void Step() override;
  1388. + void StepOut() override;
  1389. + bool RunToCursor(const wxString& filename, int line, const wxString& line_text) override;
  1390. + void SetNextStatement(const wxString& filename, int line) override;
  1391. + void Break() override;
  1392. + void Stop() override;
  1393. bool Validate(const wxString& line, const char cb);
  1394. - bool IsRunning() const { return m_pProcess; }
  1395. - bool IsStopped() const;
  1396. - bool IsBusy() const;
  1397. + bool IsRunning() const override { return m_pProcess; }
  1398. + bool IsStopped() const override;
  1399. + bool IsBusy() const override;
  1400. bool IsTemporaryBreak() const {return m_TemporaryBreak;}
  1401. - int GetExitCode() const { return m_LastExitCode; }
  1402. + int GetExitCode() const override { return m_LastExitCode; }
  1403. - cb::shared_ptr<cbWatch> AddWatch(const wxString& symbol, bool update);
  1404. + cb::shared_ptr<cbWatch> AddWatch(const wxString& symbol, bool update) override;
  1405. cb::shared_ptr<cbWatch> AddMemoryRange(uint64_t address, uint64_t size,
  1406. - const wxString &symbol, bool update);
  1407. - void DeleteWatch(cb::shared_ptr<cbWatch> watch);
  1408. - bool HasWatch(cb::shared_ptr<cbWatch> watch);
  1409. + const wxString &symbol, bool update) override;
  1410. + void DeleteWatch(cb::shared_ptr<cbWatch> watch) override;
  1411. + bool HasWatch(cb::shared_ptr<cbWatch> watch) override;
  1412. bool IsMemoryRangeWatch(const cb::shared_ptr<cbWatch> &watch);
  1413. - void ShowWatchProperties(cb::shared_ptr<cbWatch> watch);
  1414. - bool SetWatchValue(cb::shared_ptr<cbWatch> watch, const wxString &value);
  1415. - void ExpandWatch(cb::shared_ptr<cbWatch> watch);
  1416. - void CollapseWatch(cb::shared_ptr<cbWatch> watch);
  1417. - void UpdateWatch(cb::shared_ptr<cbWatch> watch);
  1418. - void UpdateWatches(const std::vector<cb::shared_ptr<cbWatch>> &watches);
  1419. + void ShowWatchProperties(cb::shared_ptr<cbWatch> watch) override;
  1420. + bool SetWatchValue(cb::shared_ptr<cbWatch> watch, const wxString &value) override;
  1421. + void ExpandWatch(cb::shared_ptr<cbWatch> watch) override;
  1422. + void CollapseWatch(cb::shared_ptr<cbWatch> watch) override;
  1423. + void UpdateWatch(cb::shared_ptr<cbWatch> watch) override;
  1424. + void UpdateWatches(const std::vector<cb::shared_ptr<cbWatch>> &watches) override;
  1425. void AddWatchNoUpdate(const cb::shared_ptr<GDBWatch> &watch);
  1426. - void OnWatchesContextMenu(wxMenu &menu, const cbWatch &watch, wxObject *property, int &disabledMenus);
  1427. + void OnWatchesContextMenu(wxMenu &menu, const cbWatch &watch, wxObject *property,
  1428. + int &disabledMenus) override;
  1429. - void GetCurrentPosition(wxString &filename, int &line);
  1430. - void RequestUpdate(DebugWindows window);
  1431. + void GetCurrentPosition(wxString &filename, int &line) override;
  1432. + void RequestUpdate(DebugWindows window) override;
  1433. - void AttachToProcess(const wxString& pid);
  1434. - void DetachFromProcess();
  1435. - bool IsAttachedToProcess() const;
  1436. + void AttachToProcess(const wxString& pid) override;
  1437. + void DetachFromProcess() override;
  1438. + bool IsAttachedToProcess() const override;
  1439. - void SendCommand(const wxString& cmd, bool debugLog);
  1440. + void SendCommand(const wxString& cmd, bool debugLog) override;
  1441. void DoSendCommand(const wxString& cmd);
  1442. DebuggerState& GetState(){ return m_State; }
  1443. - void OnConfigurationChange(bool isActive);
  1444. + void OnConfigurationChange(bool isActive) override;
  1445. static wxArrayString ParseSearchDirs(const cbProject &project);
  1446. static void SetSearchDirs(cbProject &project, const wxArrayString &dirs);
  1447. @@ -125,8 +127,8 @@ class DebuggerGDB : public cbDebuggerPlugin
  1448. static RemoteDebuggingMap ParseRemoteDebuggingMap(cbProject &project);
  1449. static void SetRemoteDebuggingMap(cbProject &project, const RemoteDebuggingMap &map);
  1450. - void OnValueTooltip(const wxString &token, const wxRect &evalRect);
  1451. - bool ShowValueTooltip(int style);
  1452. + void OnValueTooltip(const wxString &token, const wxRect &evalRect) override;
  1453. + bool ShowValueTooltip(int style) override;
  1454. static void ConvertToGDBFriendly(wxString& str);
  1455. static void ConvertToGDBFile(wxString& str);
  1456. @@ -138,11 +140,11 @@ class DebuggerGDB : public cbDebuggerPlugin
  1457. void DetermineLanguage();
  1458. protected:
  1459. - cbProject* GetProject() { return m_pProject; }
  1460. - void ResetProject() { m_pProcess = NULL; }
  1461. - void ConvertDirectory(wxString& str, wxString base, bool relative);
  1462. - void CleanupWhenProjectClosed(cbProject *project);
  1463. - bool CompilerFinished(bool compilerFailed, StartType startType);
  1464. + cbProject* GetProject() override { return m_pProject; }
  1465. + void ResetProject() override { m_pProcess = NULL; }
  1466. + void ConvertDirectory(wxString& str, wxString base, bool relative) override;
  1467. + void CleanupWhenProjectClosed(cbProject *project) override;
  1468. + bool CompilerFinished(bool compilerFailed, StartType startType) override;
  1469. protected:
  1470. void AddSourceDir(const wxString& dir);
  1471. private:
  1472. @@ -166,7 +168,7 @@ class DebuggerGDB : public cbDebuggerPlugin
  1473. void OnShowFile(wxCommandEvent& event);
  1474. void OnCursorChanged(wxCommandEvent& event);
  1475. - void SetupToolsMenu(wxMenu &menu);
  1476. + void SetupToolsMenu(wxMenu &menu) override;
  1477. void KillConsole();
  1478. void CheckIfConsoleIsClosed();
  1479. diff --git a/src/plugins/debuggergdb/debuggeroptionsdlg.h b/src/plugins/debuggergdb/debuggeroptionsdlg.h
  1480. index 1b358a209..f5bad3db0 100644
  1481. --- a/src/plugins/debuggergdb/debuggeroptionsdlg.h
  1482. +++ b/src/plugins/debuggergdb/debuggeroptionsdlg.h
  1483. @@ -15,9 +15,9 @@ class DebuggerConfiguration : public cbDebuggerConfiguration
  1484. public:
  1485. explicit DebuggerConfiguration(const ConfigManagerWrapper &config);
  1486. - virtual cbDebuggerConfiguration* Clone() const;
  1487. - virtual wxPanel* MakePanel(wxWindow *parent);
  1488. - virtual bool SaveChanges(wxPanel *panel);
  1489. + cbDebuggerConfiguration* Clone() const override;
  1490. + wxPanel* MakePanel(wxWindow *parent) override;
  1491. + bool SaveChanges(wxPanel *panel) override;
  1492. public:
  1493. enum Flags
  1494. {
  1495. diff --git a/src/plugins/debuggergdb/debuggeroptionsprjdlg.h b/src/plugins/debuggergdb/debuggeroptionsprjdlg.h
  1496. index 70aa74bef..5ceb14244 100644
  1497. --- a/src/plugins/debuggergdb/debuggeroptionsprjdlg.h
  1498. +++ b/src/plugins/debuggergdb/debuggeroptionsprjdlg.h
  1499. @@ -21,12 +21,12 @@ class DebuggerOptionsProjectDlg : public cbConfigurationPanel
  1500. {
  1501. public:
  1502. DebuggerOptionsProjectDlg(wxWindow* parent, DebuggerGDB* debugger, cbProject* project);
  1503. - virtual ~DebuggerOptionsProjectDlg();
  1504. + ~DebuggerOptionsProjectDlg() override;
  1505. - virtual wxString GetTitle() const { return _("Debugger"); }
  1506. - virtual wxString GetBitmapBaseName() const { return _T("debugger"); }
  1507. - virtual void OnApply();
  1508. - virtual void OnCancel(){}
  1509. + wxString GetTitle() const override { return _("Debugger"); }
  1510. + wxString GetBitmapBaseName() const override { return _T("debugger"); }
  1511. + void OnApply() override;
  1512. + void OnCancel() override {}
  1513. protected:
  1514. void OnTargetSel(wxCommandEvent& event);
  1515. void OnAdd(wxCommandEvent& event);
  1516. diff --git a/src/plugins/debuggergdb/editbreakpointdlg.h b/src/plugins/debuggergdb/editbreakpointdlg.h
  1517. index a1949a61d..054485c3f 100644
  1518. --- a/src/plugins/debuggergdb/editbreakpointdlg.h
  1519. +++ b/src/plugins/debuggergdb/editbreakpointdlg.h
  1520. @@ -13,12 +13,12 @@ class EditBreakpointDlg : public wxScrollingDialog
  1521. {
  1522. public:
  1523. EditBreakpointDlg(const DebuggerBreakpoint &breakpoint, wxWindow* parent = 0);
  1524. - virtual ~EditBreakpointDlg();
  1525. + ~EditBreakpointDlg() override;
  1526. const DebuggerBreakpoint& GetBreakpoint() const { return m_breakpoint; }
  1527. protected:
  1528. void OnUpdateUI(wxUpdateUIEvent& event);
  1529. - void EndModal(int retCode);
  1530. + void EndModal(int retCode) override;
  1531. DebuggerBreakpoint m_breakpoint;
  1532. private:
  1533. diff --git a/src/plugins/debuggergdb/editwatchdlg.h b/src/plugins/debuggergdb/editwatchdlg.h
  1534. index c157009e7..561dcbc87 100644
  1535. --- a/src/plugins/debuggergdb/editwatchdlg.h
  1536. +++ b/src/plugins/debuggergdb/editwatchdlg.h
  1537. @@ -14,10 +14,10 @@ class EditWatchDlg : public wxScrollingDialog
  1538. {
  1539. public:
  1540. EditWatchDlg(cb::shared_ptr<GDBWatch> w, wxWindow* parent);
  1541. - virtual ~EditWatchDlg();
  1542. + ~EditWatchDlg() override;
  1543. protected:
  1544. - void EndModal(int retCode);
  1545. + void EndModal(int retCode) override;
  1546. cb::shared_ptr<GDBWatch> m_watch;
  1547. };
  1548. diff --git a/src/plugins/debuggergdb/gdb_commands.h b/src/plugins/debuggergdb/gdb_commands.h
  1549. index bceb51ada..cd564b29c 100644
  1550. --- a/src/plugins/debuggergdb/gdb_commands.h
  1551. +++ b/src/plugins/debuggergdb/gdb_commands.h
  1552. @@ -232,7 +232,7 @@ class GdbCmd_AddSourceDir : public DebuggerCmd
  1553. {
  1554. m_Cmd << _T("directory ") << dir;
  1555. }
  1556. - void ParseOutput(const wxString& output)
  1557. + void ParseOutput(const wxString& output) override
  1558. {
  1559. // Output:
  1560. // Warning: C:\Devel\tmp\console\111: No such file or directory.
  1561. @@ -254,7 +254,7 @@ class GdbCmd_SetDebuggee : public DebuggerCmd
  1562. {
  1563. m_Cmd << _T("file ") << file;
  1564. }
  1565. - void ParseOutput(const wxString& output)
  1566. + void ParseOutput(const wxString& output) override
  1567. {
  1568. // Output:
  1569. // Reading symbols from C:\Devel\tmp\console/console.exe...done.
  1570. @@ -278,7 +278,7 @@ class GdbCmd_AddSymbolFile : public DebuggerCmd
  1571. {
  1572. m_Cmd << _T("add-symbol-file ") << file;
  1573. }
  1574. - void ParseOutput(const wxString& output)
  1575. + void ParseOutput(const wxString& output) override
  1576. {
  1577. // Output:
  1578. //
  1579. @@ -306,7 +306,7 @@ class GdbCmd_SetArguments : public DebuggerCmd
  1580. {
  1581. m_Cmd << _T("set args ") << args;
  1582. }
  1583. - void ParseOutput(cb_unused const wxString& output)
  1584. + void ParseOutput(cb_unused const wxString& output) override
  1585. {
  1586. // No output
  1587. }
  1588. @@ -325,7 +325,7 @@ class GdbCmd_AttachToProcess : public DebuggerCmd
  1589. m_Cmd << _T("attach ") << wxString::Format(_T("%d"), pid);
  1590. m_pDriver->Log(wxString::Format(_("Attaching to program with pid: %d"), pid));
  1591. }
  1592. - void ParseOutput(const wxString& output)
  1593. + void ParseOutput(const wxString& output) override
  1594. {
  1595. // Output:
  1596. // Attaching to process <pid>
  1597. @@ -364,7 +364,7 @@ class GdbCmd_Detach : public DebuggerCmd
  1598. {
  1599. m_Cmd << _T("detach");
  1600. }
  1601. - void ParseOutput(const wxString& output)
  1602. + void ParseOutput(const wxString& output) override
  1603. {
  1604. // Output:
  1605. // Attaching to process <pid>
  1606. @@ -397,7 +397,7 @@ class GdbCmd_AddBreakpointCondition : public DebuggerCmd
  1607. if (m_BP->useCondition)
  1608. m_Cmd << _T(" ") << m_BP->condition;
  1609. }
  1610. - void ParseOutput(const wxString& output)
  1611. + void ParseOutput(const wxString& output) override
  1612. {
  1613. if (output.StartsWith(_T("No symbol ")))
  1614. {
  1615. @@ -478,7 +478,7 @@ class GdbCmd_AddBreakpoint : public DebuggerCmd
  1616. // condition and ignore count will be set in ParseOutput, where we 'll have the bp number
  1617. }
  1618. }
  1619. - void ParseOutput(const wxString& output)
  1620. + void ParseOutput(const wxString& output) override
  1621. {
  1622. // possible outputs (we 're only interested in 1st and 2nd samples):
  1623. //
  1624. @@ -564,7 +564,7 @@ class GdbCmd_AddDataBreakpoint : public DebuggerCmd
  1625. if (m_BP->enabled)
  1626. m_Cmd << _T("output &") << m_BP->breakAddress;
  1627. }
  1628. - void ParseOutput(const wxString& output)
  1629. + void ParseOutput(const wxString& output) override
  1630. {
  1631. // Hardware watchpoint 1: expr
  1632. if (output.StartsWith(_T("No symbol ")) || output.StartsWith(_T("Attempt to ")))
  1633. @@ -605,7 +605,7 @@ class GdbCmd_RemoveBreakpoint : public DebuggerCmd
  1634. m_Cmd << _T("delete breakpoints ") << wxString::Format(_T("%d"), (int) bp->index);
  1635. }
  1636. }
  1637. - void ParseOutput(const wxString& output)
  1638. + void ParseOutput(const wxString& output) override
  1639. {
  1640. if (!m_BP)
  1641. return;
  1642. @@ -643,7 +643,7 @@ class GdbCmd_SetCatch : public DebuggerCmd
  1643. m_Cmd = wxT("catch ") + type;
  1644. }
  1645. - void ParseOutput(const wxString& output)
  1646. + void ParseOutput(const wxString& output) override
  1647. {
  1648. if (m_regExp.Matches(output))
  1649. {
  1650. @@ -666,7 +666,7 @@ class GdbCmd_Continue : public DebuggerContinueBaseCmd
  1651. {
  1652. }
  1653. - virtual void Action()
  1654. + void Action() override
  1655. {
  1656. m_pDriver->NotifyDebuggeeContinued();
  1657. }
  1658. @@ -680,7 +680,7 @@ class GdbCmd_Start : public DebuggerContinueBaseCmd
  1659. {
  1660. }
  1661. - virtual void ParseOutput(const wxString &output)
  1662. + void ParseOutput(const wxString &output) override
  1663. {
  1664. const wxArrayString &lines = GetArrayFromString(output, _T('\n'));
  1665. for (size_t ii = 0; ii < lines.GetCount(); ++ii)
  1666. @@ -710,7 +710,7 @@ class GdbCmd_InfoProgram : public DebuggerCmd
  1667. {
  1668. m_Cmd << _T("info program");
  1669. }
  1670. - void ParseOutput(const wxString& output)
  1671. + void ParseOutput(const wxString& output) override
  1672. {
  1673. wxString pid_str;
  1674. if (reInfoProgramThread.Matches(output))
  1675. @@ -739,7 +739,7 @@ class GdbCmd_Threads : public DebuggerCmd
  1676. {
  1677. m_Cmd << _T("info threads");
  1678. }
  1679. - void ParseOutput(const wxString& output)
  1680. + void ParseOutput(const wxString& output) override
  1681. {
  1682. m_pDriver->GetThreads().clear();
  1683. wxArrayString lines = GetArrayFromString(output, _T('\n'));
  1684. @@ -831,7 +831,7 @@ class GdbCmd_Watch : public DebuggerCmd
  1685. m_Cmd << symbol;
  1686. }
  1687. }
  1688. - void ParseOutput(const wxString& output)
  1689. + void ParseOutput(const wxString& output) override
  1690. {
  1691. wxString w = output;
  1692. w.Trim(true);
  1693. @@ -873,7 +873,7 @@ class GdbCmd_MemoryRangeWatch : public DebuggerCmd
  1694. m_Cmd = wxString(wxT("x /")) << wxString::FromUTF8(tmpSize) << wxT("xb ") << wxString::FromUTF8(tmpAddr);
  1695. }
  1696. - void ParseOutput(const wxString& output)
  1697. + void ParseOutput(const wxString& output) override
  1698. {
  1699. wxArrayString lines = GetArrayFromString(output, _T('\n'));
  1700. wxString addr;
  1701. @@ -915,7 +915,7 @@ class GdbCmd_FindWatchType : public DebuggerCmd
  1702. m_watch->GetSymbol(symbol);
  1703. m_Cmd << symbol;
  1704. }
  1705. - void ParseOutput(const wxString& output)
  1706. + void ParseOutput(const wxString& output) override
  1707. {
  1708. // happens, when wxString is passed as const reference parameter
  1709. if (m_firstTry && output == wxT("Attempt to take contents of a non-pointer value."))
  1710. @@ -988,7 +988,7 @@ class GdbCmd_TooltipEvaluation : public DebuggerCmd
  1711. m_Cmd << wxT("output ");
  1712. m_Cmd << m_What;
  1713. }
  1714. - void ParseOutput(const wxString& output)
  1715. + void ParseOutput(const wxString& output) override
  1716. {
  1717. wxString contents = output;
  1718. contents.Trim(true);
  1719. @@ -1044,7 +1044,7 @@ class GdbCmd_FindTooltipAddress : public DebuggerCmd
  1720. m_Cmd << _T('&');
  1721. m_Cmd << m_What;
  1722. }
  1723. - void ParseOutput(const wxString& output)
  1724. + void ParseOutput(const wxString& output) override
  1725. {
  1726. // examples:
  1727. // type = wxString
  1728. @@ -1087,7 +1087,7 @@ class GdbCmd_FindTooltipType : public DebuggerCmd
  1729. {
  1730. singleUsage = false;
  1731. }
  1732. - void ParseOutput(const wxString& output)
  1733. + void ParseOutput(const wxString& output) override
  1734. {
  1735. // examples:
  1736. // type = wxString
  1737. @@ -1119,7 +1119,7 @@ class GdbCmd_LocalsFuncArgs : public DebuggerCmd
  1738. else
  1739. m_Cmd = wxT("info args");
  1740. }
  1741. - void ParseOutput(const wxString& output)
  1742. + void ParseOutput(const wxString& output) override
  1743. {
  1744. if ((m_doLocals && output == wxT("No locals.")) || (!m_doLocals && output == wxT("No arguments.")))
  1745. {
  1746. @@ -1158,7 +1158,7 @@ class GdbCmd_ChangeFrame : public DebuggerCmd
  1747. {
  1748. m_Cmd << _T("frame ") << frameno;
  1749. }
  1750. - void ParseOutput(const wxString& output)
  1751. + void ParseOutput(const wxString& output) override
  1752. {
  1753. m_pDriver->Log(output);
  1754. }
  1755. @@ -1175,7 +1175,7 @@ class GdbCmd_Backtrace : public DebuggerCmd
  1756. {
  1757. m_Cmd << _T("bt 30");
  1758. }
  1759. - void ParseOutput(const wxString& output)
  1760. + void ParseOutput(const wxString& output) override
  1761. {
  1762. int validFrameNumber = -1;
  1763. cbStackFrame validSF;
  1764. @@ -1321,7 +1321,7 @@ class GdbCmd_InfoRegisters : public DebuggerCmd
  1765. m_Cmd << _T("info registers");
  1766. };
  1767. - void ParseOutput(const wxString& output)
  1768. + void ParseOutput(const wxString& output) override
  1769. {
  1770. // output is a series of:
  1771. //
  1772. @@ -1468,7 +1468,7 @@ class GdbCmd_Disassembly : public DebuggerCmd
  1773. else
  1774. m_Cmd << wxT(" 0x") << hexAddrStr;
  1775. }
  1776. - void ParseOutput(const wxString& output)
  1777. + void ParseOutput(const wxString& output) override
  1778. {
  1779. // output for "disassemble" is a series of:
  1780. //
  1781. @@ -1559,7 +1559,7 @@ class GdbCmd_DisassemblyInit : public DebuggerCmd
  1782. m_Cmd << _T("info frame\n") << _T("end\n");
  1783. };
  1784. - void ParseOutput(const wxString& p_output)
  1785. + void ParseOutput(const wxString& p_output) override
  1786. {
  1787. cbDisassemblyDlg *dialog = Manager::Get()->GetDebuggerManager()->GetDisassemblyDialog();
  1788. @@ -1652,7 +1652,7 @@ class GdbCmd_ExamineMemory : public DebuggerCmd
  1789. const wxString &address = CleanStringValue(dialog->GetBaseAddress());
  1790. m_Cmd.Printf(_T("x/%dxb %s"), dialog->GetBytes(), address.c_str());
  1791. }
  1792. - void ParseOutput(const wxString& output)
  1793. + void ParseOutput(const wxString& output) override
  1794. {
  1795. cbExamineMemoryDlg *dialog = Manager::Get()->GetDebuggerManager()->GetExamineMemoryDialog();
  1796. @@ -1693,7 +1693,7 @@ class GdbCmd_RemoteBaud : public DebuggerCmd
  1797. m_Cmd << _T("set remotebaud ") << baud;
  1798. driver->Log(_("Setting serial connection speed to ") + baud);
  1799. }
  1800. - void ParseOutput(cb_unused const wxString& output)
  1801. + void ParseOutput(cb_unused const wxString& output) override
  1802. {
  1803. }
  1804. };
  1805. @@ -1738,7 +1738,7 @@ class GdbCmd_RemoteTarget : public DebuggerCmd
  1806. else
  1807. m_pDriver->Log(_("Invalid settings for remote debugging!"));
  1808. }
  1809. - void ParseOutput(const wxString& output)
  1810. + void ParseOutput(const wxString& output) override
  1811. {
  1812. // This command will either output an error or a breakpoint address info
  1813. // Connection errors are of the form:
  1814. @@ -1802,7 +1802,7 @@ class GdbCmd_StepOrNextInstruction : public DebuggerContinueBaseCmd
  1815. {
  1816. m_Cmd << command;
  1817. }
  1818. - void ParseOutput(const wxString& output)
  1819. + void ParseOutput(const wxString& output) override
  1820. {
  1821. DebuggerManager *manager = Manager::Get()->GetDebuggerManager();
  1822. if (!manager->UpdateDisassembly())
  1823. @@ -1867,7 +1867,7 @@ class GdbCmd_FindCursor : public DebuggerCmd
  1824. {
  1825. }
  1826. - void ParseOutput(const wxString& output)
  1827. + void ParseOutput(const wxString& output) override
  1828. {
  1829. const wxArrayString &lines = GetArrayFromString(output, _T('\n'));
  1830. if (lines.Count() <= 2)
  1831. @@ -1915,7 +1915,7 @@ class GdbCmd_DebugLanguage : public DebuggerCmd
  1832. m_Cmd << _T("show language");
  1833. }
  1834. - void ParseOutput(const wxString& output)
  1835. + void ParseOutput(const wxString& output) override
  1836. {
  1837. if (output.Lower().Find(wxT("fortran")) != wxNOT_FOUND)
  1838. g_DebugLanguage = dl_Fortran;
  1839. diff --git a/src/plugins/debuggergdb/gdb_driver.h b/src/plugins/debuggergdb/gdb_driver.h
  1840. index e3617cffb..16ecb6e92 100644
  1841. --- a/src/plugins/debuggergdb/gdb_driver.h
  1842. +++ b/src/plugins/debuggergdb/gdb_driver.h
  1843. @@ -14,62 +14,62 @@ class GDB_driver : public DebuggerDriver
  1844. {
  1845. public:
  1846. GDB_driver(DebuggerGDB* plugin);
  1847. - virtual ~GDB_driver();
  1848. -
  1849. - virtual wxString GetCommandLine(const wxString& debugger,
  1850. - const wxString& debuggee,
  1851. - const wxString &userArguments);
  1852. - virtual wxString GetCommandLine(const wxString& debugger, int pid, const wxString &userArguments);
  1853. - virtual void SetTarget(ProjectBuildTarget* target);
  1854. - virtual void Prepare(bool isConsole, int printElements, const RemoteDebugging &remoteDebugging);
  1855. - virtual void Start(bool breakOnEntry);
  1856. - virtual void Stop();
  1857. -
  1858. - virtual void Continue();
  1859. - virtual void Step();
  1860. - virtual void StepInstruction();
  1861. - virtual void StepIntoInstruction();
  1862. - virtual void StepIn();
  1863. - virtual void StepOut();
  1864. - virtual void SetNextStatement(const wxString& filename, int line);
  1865. - virtual void Backtrace();
  1866. - virtual void Disassemble();
  1867. - virtual void CPURegisters();
  1868. - virtual void SwitchToFrame(size_t number);
  1869. - virtual void SetVarValue(const wxString& var, const wxString& value);
  1870. - virtual void SetMemoryRangeValue(uint64_t addr, const wxString& value);
  1871. - virtual void MemoryDump();
  1872. - virtual void Attach(int pid);
  1873. - virtual void Detach();
  1874. - virtual void RunningThreads();
  1875. -
  1876. - void InfoFrame();
  1877. - void InfoDLL();
  1878. - void InfoFiles();
  1879. - void InfoFPU();
  1880. - void InfoSignals();
  1881. -
  1882. - void EnableCatchingThrow(bool enable);
  1883. -
  1884. - virtual void SwitchThread(size_t threadIndex);
  1885. -
  1886. - virtual void AddBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp);
  1887. - virtual void RemoveBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp);
  1888. - virtual void EvaluateSymbol(const wxString& symbol, const wxRect& tipRect);
  1889. - virtual void UpdateWatches(cb::shared_ptr<GDBWatch> localsWatch,
  1890. - cb::shared_ptr<GDBWatch> funcArgsWatch,
  1891. - WatchesContainer &watches, bool ignoreAutoUpdate);
  1892. - virtual void UpdateMemoryRangeWatches(MemoryRangeWatchesContainer &watches,
  1893. - bool ignoreAutoUpdate);
  1894. - virtual void UpdateWatch(const cb::shared_ptr<GDBWatch> &watch);
  1895. - virtual void UpdateMemoryRangeWatch(const cb::shared_ptr<GDBMemoryRangeWatch> &watch);
  1896. - virtual void UpdateWatchLocalsArgs(cb::shared_ptr<GDBWatch> const &watch, bool locals);
  1897. - virtual void ParseOutput(const wxString& output);
  1898. - virtual bool IsDebuggingStarted() const { return m_IsStarted; }
  1899. -
  1900. - virtual void DetermineLanguage();
  1901. + ~GDB_driver() override;
  1902. +
  1903. + wxString GetCommandLine(const wxString& debugger, const wxString& debuggee,
  1904. + const wxString &userArguments) override;
  1905. + wxString GetCommandLine(const wxString& debugger, int pid,
  1906. + const wxString &userArguments) override;
  1907. + void SetTarget(ProjectBuildTarget* target) override;
  1908. + void Prepare(bool isConsole, int printElements, const RemoteDebugging &remoteDebugging) override;
  1909. + void Start(bool breakOnEntry) override;
  1910. + void Stop() override;
  1911. +
  1912. + void Continue() override;
  1913. + void Step() override;
  1914. + void StepInstruction() override;
  1915. + void StepIntoInstruction() override;
  1916. + void StepIn() override;
  1917. + void StepOut() override;
  1918. + void SetNextStatement(const wxString& filename, int line) override;
  1919. + void Backtrace() override;
  1920. + void Disassemble() override;
  1921. + void CPURegisters() override;
  1922. + void SwitchToFrame(size_t number) override;
  1923. + void SetVarValue(const wxString& var, const wxString& value) override;
  1924. + void SetMemoryRangeValue(uint64_t addr, const wxString& value) override;
  1925. + void MemoryDump() override;
  1926. + void Attach(int pid) override;
  1927. + void Detach() override;
  1928. + void RunningThreads() override;
  1929. +
  1930. + void InfoFrame() override;
  1931. + void InfoDLL() override;
  1932. + void InfoFiles() override;
  1933. + void InfoFPU() override;
  1934. + void InfoSignals() override;
  1935. +
  1936. + void EnableCatchingThrow(bool enable) override;
  1937. +
  1938. + void SwitchThread(size_t threadIndex) override;
  1939. +
  1940. + void AddBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp) override;
  1941. + void RemoveBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp) override;
  1942. + void EvaluateSymbol(const wxString& symbol, const wxRect& tipRect) override;
  1943. + void UpdateWatches(cb::shared_ptr<GDBWatch> localsWatch,
  1944. + cb::shared_ptr<GDBWatch> funcArgsWatch, WatchesContainer &watches,
  1945. + bool ignoreAutoUpdate) override;
  1946. + void UpdateMemoryRangeWatches(MemoryRangeWatchesContainer &watches,
  1947. + bool ignoreAutoUpdate) override;
  1948. + void UpdateWatch(const cb::shared_ptr<GDBWatch> &watch) override;
  1949. + void UpdateMemoryRangeWatch(const cb::shared_ptr<GDBMemoryRangeWatch> &watch) override;
  1950. + void UpdateWatchLocalsArgs(cb::shared_ptr<GDBWatch> const &watch, bool locals) override;
  1951. + void ParseOutput(const wxString& output) override;
  1952. + bool IsDebuggingStarted() const override { return m_IsStarted; }
  1953. +
  1954. + void DetermineLanguage() override;
  1955. #ifdef __WXMSW__
  1956. - virtual bool UseDebugBreakProcess();
  1957. + bool UseDebugBreakProcess() override;
  1958. #endif
  1959. virtual wxString GetDisassemblyFlavour(void);
  1960. diff --git a/src/plugins/defaultmimehandler/defaultmimehandler.h b/src/plugins/defaultmimehandler/defaultmimehandler.h
  1961. index 916d95dee..d1cb928b5 100644
  1962. --- a/src/plugins/defaultmimehandler/defaultmimehandler.h
  1963. +++ b/src/plugins/defaultmimehandler/defaultmimehandler.h
  1964. @@ -15,14 +15,14 @@ class DefaultMimeHandler : public cbMimePlugin
  1965. {
  1966. public:
  1967. DefaultMimeHandler();
  1968. - ~DefaultMimeHandler();
  1969. - int GetConfigurationGroup() const { return cgCorePlugin; }
  1970. - cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
  1971. - bool HandlesEverything() const { return true; }
  1972. - bool CanHandleFile(const wxString& filename) const;
  1973. - int OpenFile(const wxString& filename);
  1974. - void OnAttach(); // fires when the plugin is attached to the application
  1975. - void OnRelease(bool appShutDown); // fires when the plugin is released from the application
  1976. + ~DefaultMimeHandler() override;
  1977. + int GetConfigurationGroup() const override { return cgCorePlugin; }
  1978. + cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) override;
  1979. + bool HandlesEverything() const override { return true; }
  1980. + bool CanHandleFile(const wxString& filename) const override;
  1981. + int OpenFile(const wxString& filename) override;
  1982. + void OnAttach() override; // fires when the plugin is attached to the application
  1983. + void OnRelease(bool appShutDown) override; // fires when the plugin is released from the application
  1984. private:
  1985. cbMimeType* FindMimeTypeFor(const wxString& filename);
  1986. wxString ChooseExternalProgram();
  1987. diff --git a/src/plugins/defaultmimehandler/editmimetypesdlg.h b/src/plugins/defaultmimehandler/editmimetypesdlg.h
  1988. index 62f00fbae..9744a8d5d 100644
  1989. --- a/src/plugins/defaultmimehandler/editmimetypesdlg.h
  1990. +++ b/src/plugins/defaultmimehandler/editmimetypesdlg.h
  1991. @@ -14,12 +14,12 @@ class EditMimeTypesDlg : public cbConfigurationPanel
  1992. {
  1993. public:
  1994. EditMimeTypesDlg(wxWindow* parent, MimeTypesArray& array);
  1995. - virtual ~EditMimeTypesDlg();
  1996. + ~EditMimeTypesDlg() override;
  1997. - virtual wxString GetTitle() const { return _("Files extension handling"); }
  1998. - virtual wxString GetBitmapBaseName() const { return _T("extensions"); }
  1999. - virtual void OnApply();
  2000. - virtual void OnCancel(){}
  2001. + wxString GetTitle() const override { return _("Files extension handling"); }
  2002. + wxString GetBitmapBaseName() const override { return _T("extensions"); }
  2003. + void OnApply() override;
  2004. + void OnCancel() override {}
  2005. private:
  2006. void FillList();
  2007. void UpdateDisplay();
  2008. diff --git a/src/plugins/occurrenceshighlighting/occurrenceshighlighting.h b/src/plugins/occurrenceshighlighting/occurrenceshighlighting.h
  2009. index 8337a4a48..675979a6d 100644
  2010. --- a/src/plugins/occurrenceshighlighting/occurrenceshighlighting.h
  2011. +++ b/src/plugins/occurrenceshighlighting/occurrenceshighlighting.h
  2012. @@ -24,19 +24,20 @@ class OccurrencesHighlighting : public cbPlugin
  2013. {
  2014. public:
  2015. OccurrencesHighlighting();
  2016. - virtual ~OccurrencesHighlighting();
  2017. + ~OccurrencesHighlighting() override;
  2018. - virtual void BuildMenu(wxMenuBar* menuBar);
  2019. - virtual void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0);
  2020. - virtual bool BuildToolBar(cb_unused wxToolBar* toolBar){ return false; }
  2021. - virtual cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
  2022. - virtual int GetConfigurationPriority() const { return 50; }
  2023. - virtual int GetConfigurationGroup() const { return cgEditor; }
  2024. + void BuildMenu(wxMenuBar* menuBar) override;
  2025. + void BuildModuleMenu(const ModuleType type, wxMenu* menu,
  2026. + const FileTreeData* data = nullptr) override;
  2027. + bool BuildToolBar(cb_unused wxToolBar* toolBar) override { return false; }
  2028. + cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) override;
  2029. + int GetConfigurationPriority() const override { return 50; }
  2030. + int GetConfigurationGroup() const override { return cgEditor; }
  2031. protected:
  2032. - virtual void OnAttach();
  2033. - virtual void OnRelease(bool appShutDown);
  2034. + void OnAttach() override;
  2035. + void OnRelease(bool appShutDown) override;
  2036. private:
  2037. void OnListKeyDown(wxListEvent &event);
  2038. diff --git a/src/plugins/occurrenceshighlighting/occurrenceshighlightingconfigurationpanel.h b/src/plugins/occurrenceshighlighting/occurrenceshighlightingconfigurationpanel.h
  2039. index 2b6a6b68b..bcd4c5bfc 100644
  2040. --- a/src/plugins/occurrenceshighlighting/occurrenceshighlightingconfigurationpanel.h
  2041. +++ b/src/plugins/occurrenceshighlighting/occurrenceshighlightingconfigurationpanel.h
  2042. @@ -17,16 +17,16 @@ class OccurrencesHighlightingConfigurationPanel : public cbConfigurationPanel
  2043. {
  2044. public:
  2045. OccurrencesHighlightingConfigurationPanel(wxWindow* parent);
  2046. - virtual ~OccurrencesHighlightingConfigurationPanel();
  2047. + ~OccurrencesHighlightingConfigurationPanel() override;
  2048. /// @return the panel's title.
  2049. - virtual wxString GetTitle() const;
  2050. + wxString GetTitle() const override;
  2051. /// @return the panel's bitmap base name. You must supply two bitmaps: \<basename\>.png and \<basename\>-off.png...
  2052. - virtual wxString GetBitmapBaseName() const;
  2053. + wxString GetBitmapBaseName() const override;
  2054. /// Called when the user chooses to apply the configuration.
  2055. - virtual void OnApply();
  2056. + void OnApply() override;
  2057. /// Called when the user chooses to cancel the configuration.
  2058. - virtual void OnCancel();
  2059. + void OnCancel() override;
  2060. private:
  2061. void OnChooseColour(wxCommandEvent& event);
  2062. diff --git a/src/plugins/openfileslist/openfileslistplugin.h b/src/plugins/openfileslist/openfileslistplugin.h
  2063. index 7fd7a951a..c59d67ba1 100644
  2064. --- a/src/plugins/openfileslist/openfileslistplugin.h
  2065. +++ b/src/plugins/openfileslist/openfileslistplugin.h
  2066. @@ -38,14 +38,14 @@ class OpenFilesListPlugin : public cbPlugin
  2067. {
  2068. public:
  2069. OpenFilesListPlugin();
  2070. - virtual ~OpenFilesListPlugin();
  2071. + ~OpenFilesListPlugin() override;
  2072. - virtual int GetConfigurationGroup() const { return cgEditor; }
  2073. + int GetConfigurationGroup() const override { return cgEditor; }
  2074. - virtual void BuildMenu(wxMenuBar* menuBar);
  2075. + void BuildMenu(wxMenuBar* menuBar) override;
  2076. - virtual void OnAttach();
  2077. - virtual void OnRelease(bool appShutDown);
  2078. + void OnAttach() override;
  2079. + void OnRelease(bool appShutDown) override;
  2080. protected:
  2081. int GetOpenFilesListIcon(EditorBase* ed);
  2082. void RebuildOpenFilesTree();
  2083. diff --git a/src/plugins/projectsimporter/devcpploader.h b/src/plugins/projectsimporter/devcpploader.h
  2084. index ffdbebd20..3870d8d31 100644
  2085. --- a/src/plugins/projectsimporter/devcpploader.h
  2086. +++ b/src/plugins/projectsimporter/devcpploader.h
  2087. @@ -15,10 +15,10 @@ class DevCppLoader : public IBaseLoader
  2088. {
  2089. public:
  2090. DevCppLoader(cbProject* project);
  2091. - virtual ~DevCppLoader();
  2092. + ~DevCppLoader() override;
  2093. - bool Open(const wxString& filename);
  2094. - bool Save(const wxString& filename);
  2095. + bool Open(const wxString& filename) override;
  2096. + bool Save(const wxString& filename) override;
  2097. protected:
  2098. cbProject* m_pProject;
  2099. private:
  2100. diff --git a/src/plugins/projectsimporter/msvc10loader.h b/src/plugins/projectsimporter/msvc10loader.h
  2101. index f1c2bab82..26ccfe137 100644
  2102. --- a/src/plugins/projectsimporter/msvc10loader.h
  2103. +++ b/src/plugins/projectsimporter/msvc10loader.h
  2104. @@ -20,10 +20,10 @@ class MSVC10Loader : public IBaseLoader
  2105. // default %(AdditionalDependencies), not sure if "winmm" and "comctl32" are part of them
  2106. static const wxString g_AdditionalDependencies;
  2107. MSVC10Loader(cbProject* project);
  2108. - virtual ~MSVC10Loader();
  2109. + ~MSVC10Loader() override;
  2110. - bool Open(const wxString& filename);
  2111. - bool Save(const wxString& filename);
  2112. + bool Open(const wxString& filename) override;
  2113. + bool Save(const wxString& filename) override;
  2114. protected:
  2115. cbProject* m_pProject;
  2116. char m_ConvertSwitches;
  2117. diff --git a/src/plugins/projectsimporter/msvc7loader.h b/src/plugins/projectsimporter/msvc7loader.h
  2118. index aaf76727c..9b1743861 100644
  2119. --- a/src/plugins/projectsimporter/msvc7loader.h
  2120. +++ b/src/plugins/projectsimporter/msvc7loader.h
  2121. @@ -21,10 +21,10 @@ class MSVC7Loader : public IBaseLoader
  2122. {
  2123. public:
  2124. MSVC7Loader(cbProject* project);
  2125. - virtual ~MSVC7Loader();
  2126. + ~MSVC7Loader() override;
  2127. - bool Open(const wxString& filename);
  2128. - bool Save(const wxString& filename);
  2129. + bool Open(const wxString& filename) override;
  2130. + bool Save(const wxString& filename) override;
  2131. protected:
  2132. cbProject* m_pProject;
  2133. bool m_ConvertSwitches;
  2134. diff --git a/src/plugins/projectsimporter/msvc7workspaceloader.h b/src/plugins/projectsimporter/msvc7workspaceloader.h
  2135. index 2a4a19d52..4e417383c 100644
  2136. --- a/src/plugins/projectsimporter/msvc7workspaceloader.h
  2137. +++ b/src/plugins/projectsimporter/msvc7workspaceloader.h
  2138. @@ -14,10 +14,10 @@ class MSVC7WorkspaceLoader : public IBaseWorkspaceLoader, public MSVCWorkspaceBa
  2139. public:
  2140. static wxString g_WorkspacePath; //!< @note : maybe put into ImportersGlobals (importers_globals.h in SDK include, who ever put it there...)
  2141. MSVC7WorkspaceLoader();
  2142. - virtual ~MSVC7WorkspaceLoader();
  2143. + ~MSVC7WorkspaceLoader() override;
  2144. - bool Open(const wxString& filename, wxString& Title);
  2145. - bool Save(const wxString& title, const wxString& filename);
  2146. + bool Open(const wxString& filename, wxString& Title) override;
  2147. + bool Save(const wxString& title, const wxString& filename) override;
  2148. };
  2149. #endif // MSVC7WORKSPACELOADER_H
  2150. diff --git a/src/plugins/projectsimporter/msvcloader.h b/src/plugins/projectsimporter/msvcloader.h
  2151. index 95149e83e..86958a03b 100644
  2152. --- a/src/plugins/projectsimporter/msvcloader.h
  2153. +++ b/src/plugins/projectsimporter/msvcloader.h
  2154. @@ -20,10 +20,10 @@ class MSVCLoader : public IBaseLoader
  2155. {
  2156. public:
  2157. MSVCLoader(cbProject* project);
  2158. - virtual ~MSVCLoader();
  2159. + ~MSVCLoader() override;
  2160. - bool Open(const wxString& filename);
  2161. - bool Save(const wxString& filename);
  2162. + bool Open(const wxString& filename) override;
  2163. + bool Save(const wxString& filename) override;
  2164. protected:
  2165. bool ReadConfigurations();
  2166. bool ParseConfiguration(int index);
  2167. diff --git a/src/plugins/projectsimporter/msvcworkspaceloader.h b/src/plugins/projectsimporter/msvcworkspaceloader.h
  2168. index 8236fe7fe..325787807 100644
  2169. --- a/src/plugins/projectsimporter/msvcworkspaceloader.h
  2170. +++ b/src/plugins/projectsimporter/msvcworkspaceloader.h
  2171. @@ -13,10 +13,10 @@ class MSVCWorkspaceLoader : public IBaseWorkspaceLoader, public MSVCWorkspaceBas
  2172. {
  2173. public:
  2174. MSVCWorkspaceLoader();
  2175. - virtual ~MSVCWorkspaceLoader();
  2176. + ~MSVCWorkspaceLoader() override;
  2177. - bool Open(const wxString& filename, wxString& Title);
  2178. - bool Save(const wxString& title, const wxString& filename);
  2179. + bool Open(const wxString& filename, wxString& Title) override;
  2180. + bool Save(const wxString& title, const wxString& filename) override;
  2181. };
  2182. #endif // MSVCWORKSPACELOADER_H
  2183. diff --git a/src/plugins/projectsimporter/projectsimporter.h b/src/plugins/projectsimporter/projectsimporter.h
  2184. index fd580aa74..19805f4a1 100644
  2185. --- a/src/plugins/projectsimporter/projectsimporter.h
  2186. +++ b/src/plugins/projectsimporter/projectsimporter.h
  2187. @@ -12,11 +12,11 @@ class ProjectsImporter : public cbMimePlugin
  2188. {
  2189. public:
  2190. ProjectsImporter();
  2191. - ~ProjectsImporter();
  2192. - bool HandlesEverything() const { return false; }
  2193. - bool CanHandleFile(const wxString& filename) const;
  2194. - int OpenFile(const wxString& filename);
  2195. - void BuildMenu(wxMenuBar* menuBar);
  2196. + ~ProjectsImporter() override;
  2197. + bool HandlesEverything() const override { return false; }
  2198. + bool CanHandleFile(const wxString& filename) const override;
  2199. + int OpenFile(const wxString& filename) override;
  2200. + void BuildMenu(wxMenuBar* menuBar) override;
  2201. private:
  2202. int LoadProject(const wxString& filename);
  2203. int LoadWorkspace(const wxString& filename);
  2204. diff --git a/src/plugins/scriptedwizard/projectpathpanel.h b/src/plugins/scriptedwizard/projectpathpanel.h
  2205. index aa21f8398..6822aa5a3 100644
  2206. --- a/src/plugins/scriptedwizard/projectpathpanel.h
  2207. +++ b/src/plugins/scriptedwizard/projectpathpanel.h
  2208. @@ -22,7 +22,7 @@ class ProjectPathPanel: public wxPanel
  2209. public:
  2210. ProjectPathPanel(wxWindow* parent,wxWindowID id = -1);
  2211. - virtual ~ProjectPathPanel();
  2212. + ~ProjectPathPanel() override;
  2213. void SetPath(const wxString& path)
  2214. {
  2215. @@ -35,7 +35,7 @@ class ProjectPathPanel: public wxPanel
  2216. //wxString GetName(){ return txtPrjName->GetValue(); }
  2217. // NOTE (Biplab#1#): This is a temporary fix. This function
  2218. // need to be renamed according to it's visual representation
  2219. - wxString GetName() const { return txtPrjTitle->GetValue(); }
  2220. + wxString GetName() const override { return txtPrjTitle->GetValue(); }
  2221. wxString GetFullFileName() const { return txtFinalDir->GetValue(); }
  2222. wxString GetTitle() const { return txtPrjTitle->GetValue(); }
  2223. @@ -54,7 +54,7 @@ class ProjectPathPanel: public wxPanel
  2224. private:
  2225. - void Update();
  2226. + void Update() override;
  2227. void UpdateFromResulting();
  2228. bool m_LockUpdates;
  2229. diff --git a/src/plugins/scriptedwizard/wiz.h b/src/plugins/scriptedwizard/wiz.h
  2230. index bd6c8e65a..aaa60b554 100644
  2231. --- a/src/plugins/scriptedwizard/wiz.h
  2232. +++ b/src/plugins/scriptedwizard/wiz.h
  2233. @@ -39,7 +39,7 @@ class Wiz : public cbWizardPlugin
  2234. {
  2235. public:
  2236. Wiz();
  2237. - ~Wiz();
  2238. + ~Wiz() override;
  2239. Wiz& operator=(cb_unused const Wiz& rhs) // prevent assignment operator
  2240. {
  2241. @@ -47,14 +47,14 @@ class Wiz : public cbWizardPlugin
  2242. return *this;
  2243. }
  2244. - int GetCount() const;
  2245. - TemplateOutputType GetOutputType(int index) const;
  2246. - wxString GetTitle(int index) const;
  2247. - wxString GetDescription(int index) const;
  2248. - wxString GetCategory(int index) const;
  2249. - const wxBitmap& GetBitmap(int index) const;
  2250. - wxString GetScriptFilename(int index) const;
  2251. - CompileTargetBase* Launch(int index, wxString* pFilename = 0);
  2252. + int GetCount() const override;
  2253. + TemplateOutputType GetOutputType(int index) const override;
  2254. + wxString GetTitle(int index) const override;
  2255. + wxString GetDescription(int index) const override;
  2256. + wxString GetCategory(int index) const override;
  2257. + const wxBitmap& GetBitmap(int index) const override;
  2258. + wxString GetScriptFilename(int index) const override;
  2259. + CompileTargetBase* Launch(int index, wxString* pFilename = 0) override;
  2260. CompileTargetBase* RunProjectWizard(wxString* pFilename); // called by Launch() for otProject wizards
  2261. CompileTargetBase* RunTargetWizard(wxString* pFilename); // called by Launch() for otTarget wizards (always returns NULL)
  2262. @@ -171,7 +171,7 @@ class Wiz : public cbWizardPlugin
  2263. void RegisterWizard();
  2264. wxString FindTemplateFile(const wxString& filename);
  2265. protected:
  2266. - void OnAttach();
  2267. + void OnAttach() override;
  2268. void Clear();
  2269. void CopyFiles(cbProject* theproject, const wxString& prjdir, const wxString& srcdir);
  2270. wxString GenerateFile(const wxString& basePath, const wxString& filename, const wxString& contents);
  2271. diff --git a/src/plugins/scriptedwizard/wizpage.h b/src/plugins/scriptedwizard/wizpage.h
  2272. index 5ac6204c4..7aff6d739 100644
  2273. --- a/src/plugins/scriptedwizard/wizpage.h
  2274. +++ b/src/plugins/scriptedwizard/wizpage.h
  2275. @@ -34,15 +34,15 @@ class WizPageBase : public wxWizardPageSimple
  2276. {
  2277. public:
  2278. WizPageBase(const wxString& pageName, wxWizard* parent, const wxBitmap& bitmap = wxNullBitmap);
  2279. - ~WizPageBase();
  2280. + ~WizPageBase() override;
  2281. virtual bool SkipPage() const { return m_SkipPage; } // default: false
  2282. virtual void OnPageChanging(wxWizardEvent& event);
  2283. virtual void OnPageChanged(wxWizardEvent& event);
  2284. - virtual wxWizardPage* GetPrev() const;
  2285. - virtual wxWizardPage* GetNext() const;
  2286. + wxWizardPage* GetPrev() const override;
  2287. + wxWizardPage* GetNext() const override;
  2288. wxString GetPageName() const {return m_PageName;}
  2289. bool GetSkipPage() const {return m_SkipPage;}
  2290. void SetSkipPage(bool skip) {m_SkipPage = skip;}
  2291. @@ -69,9 +69,9 @@ class WizInfoPanel : public WizPageBase
  2292. {
  2293. public:
  2294. WizInfoPanel(const wxString& pageId, const wxString& intro_msg, wxWizard* parent, const wxBitmap& bitmap = wxNullBitmap);
  2295. - ~WizInfoPanel();
  2296. + ~WizInfoPanel() override;
  2297. - virtual void OnPageChanging(wxWizardEvent& event);
  2298. + void OnPageChanging(wxWizardEvent& event) override;
  2299. private:
  2300. InfoPanel* m_InfoPanel;
  2301. };
  2302. @@ -80,7 +80,7 @@ class WizFilePathPanel : public WizPageBase
  2303. {
  2304. public:
  2305. WizFilePathPanel(bool showHeaderGuard, wxWizard* parent, const wxBitmap& bitmap = wxNullBitmap);
  2306. - ~WizFilePathPanel();
  2307. + ~WizFilePathPanel() override;
  2308. wxString GetFilename() const { return m_Filename; }
  2309. wxString GetHeaderGuard() const { return m_HeaderGuard; }
  2310. @@ -88,7 +88,7 @@ class WizFilePathPanel : public WizPageBase
  2311. int GetTargetIndex() const;
  2312. void SetFilePathSelectionFilter(const wxString& filter);
  2313. - void OnPageChanging(wxWizardEvent& event);
  2314. + void OnPageChanging(wxWizardEvent& event) override;
  2315. private:
  2316. FilePathPanel* m_pFilePathPanel;
  2317. wxString m_Filename;
  2318. @@ -100,16 +100,16 @@ class WizProjectPathPanel : public WizPageBase
  2319. {
  2320. public:
  2321. WizProjectPathPanel(wxWizard* parent, const wxBitmap& bitmap = wxNullBitmap);
  2322. - ~WizProjectPathPanel();
  2323. + ~WizProjectPathPanel() override;
  2324. wxString GetPath() const;
  2325. - wxString GetName() const;
  2326. + wxString GetName() const override;
  2327. wxString GetFullFileName() const;
  2328. wxString GetTitle() const;
  2329. void OnButton(wxCommandEvent& event);
  2330. - virtual void OnPageChanging(wxWizardEvent& event);
  2331. - virtual void OnPageChanged(wxWizardEvent& event);
  2332. + void OnPageChanging(wxWizardEvent& event) override;
  2333. + void OnPageChanged(wxWizardEvent& event) override;
  2334. private:
  2335. ProjectPathPanel* m_pProjectPathPanel;
  2336. @@ -121,10 +121,10 @@ class WizGenericSelectPathPanel : public WizPageBase
  2337. public:
  2338. WizGenericSelectPathPanel(const wxString& pageId, const wxString& descr, const wxString& label, const wxString& defValue,
  2339. wxWizard* parent, const wxBitmap& bitmap = wxNullBitmap);
  2340. - ~WizGenericSelectPathPanel();
  2341. + ~WizGenericSelectPathPanel() override;
  2342. void OnButton(wxCommandEvent& event);
  2343. - virtual void OnPageChanging(wxWizardEvent& event);
  2344. + void OnPageChanging(wxWizardEvent& event) override;
  2345. private:
  2346. GenericSelectPath* m_pGenericSelectPath;
  2347. @@ -136,7 +136,7 @@ class WizCompilerPanel : public WizPageBase
  2348. public:
  2349. WizCompilerPanel(const wxString& compilerID, const wxString& validCompilerIDs, wxWizard* parent, const wxBitmap& bitmap = wxNullBitmap,
  2350. bool allowCompilerChange = true, bool allowConfigChange = true);
  2351. - ~WizCompilerPanel();
  2352. + ~WizCompilerPanel() override;
  2353. wxString GetCompilerID() const;
  2354. bool GetWantDebug() const;
  2355. @@ -148,7 +148,7 @@ class WizCompilerPanel : public WizPageBase
  2356. wxString GetReleaseOutputDir() const;
  2357. wxString GetReleaseObjectOutputDir() const;
  2358. - void OnPageChanging(wxWizardEvent& event);
  2359. + void OnPageChanging(wxWizardEvent& event) override;
  2360. private:
  2361. CompilerPanel* m_pCompilerPanel;
  2362. bool m_AllowConfigChange;
  2363. @@ -162,7 +162,7 @@ class WizBuildTargetPanel : public WizPageBase
  2364. bool showCompiler = false,
  2365. const wxString& compilerID = wxEmptyString, const wxString& validCompilerIDs = _T("*"),
  2366. bool allowCompilerChange = true);
  2367. - ~WizBuildTargetPanel();
  2368. + ~WizBuildTargetPanel() override;
  2369. wxString GetCompilerID() const;
  2370. bool GetEnableDebug() const;
  2371. @@ -170,7 +170,7 @@ class WizBuildTargetPanel : public WizPageBase
  2372. wxString GetTargetOutputDir() const;
  2373. wxString GetTargetObjectOutputDir() const;
  2374. - void OnPageChanging(wxWizardEvent& event);
  2375. + void OnPageChanging(wxWizardEvent& event) override;
  2376. private:
  2377. BuildTargetPanel* m_pBuildTargetPanel;
  2378. };
  2379. @@ -179,12 +179,12 @@ class WizGenericSingleChoiceList : public WizPageBase
  2380. {
  2381. public:
  2382. WizGenericSingleChoiceList(const wxString& pageId, const wxString& descr, const wxArrayString& choices, int defChoice, wxWizard* parent, const wxBitmap& bitmap = wxNullBitmap);
  2383. - ~WizGenericSingleChoiceList();
  2384. + ~WizGenericSingleChoiceList() override;
  2385. int GetChoice() const;
  2386. void SetChoice(int choice);
  2387. - void OnPageChanging(wxWizardEvent& event);
  2388. + void OnPageChanging(wxWizardEvent& event) override;
  2389. private:
  2390. GenericSingleChoiceList* m_pGenericSingleChoiceList;
  2391. };
  2392. diff --git a/src/plugins/todo/addtododlg.h b/src/plugins/todo/addtododlg.h
  2393. index 42eb6075b..b51565d8f 100644
  2394. --- a/src/plugins/todo/addtododlg.h
  2395. +++ b/src/plugins/todo/addtododlg.h
  2396. @@ -37,7 +37,6 @@ class AddTodoDlg : public wxScrollingDialog
  2397. {
  2398. public:
  2399. AddTodoDlg(wxWindow* parent, const wxArrayString& users, const wxArrayString& types, std::bitset<(int)tdctError+1> supportedTdcts);
  2400. - virtual ~AddTodoDlg() {};
  2401. wxString GetText() const;
  2402. wxString GetUser() const;
  2403. @@ -47,7 +46,7 @@ class AddTodoDlg : public wxScrollingDialog
  2404. wxString GetType() const;
  2405. ToDoCommentType GetCommentType() const;
  2406. - void EndModal(int retVal);
  2407. + void EndModal(int retVal) override;
  2408. private:
  2409. void OnAddUser(wxCommandEvent&);
  2410. diff --git a/src/plugins/todo/todolist.h b/src/plugins/todo/todolist.h
  2411. index 960b6165f..1c868ebc1 100644
  2412. --- a/src/plugins/todo/todolist.h
  2413. +++ b/src/plugins/todo/todolist.h
  2414. @@ -28,12 +28,13 @@ class ToDoList : public cbPlugin
  2415. {
  2416. public:
  2417. ToDoList();
  2418. - ~ToDoList();
  2419. - virtual cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
  2420. - void BuildMenu(wxMenuBar* menuBar);
  2421. - void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0);
  2422. - void OnAttach(); // fires when the plugin is attached to the application
  2423. - void OnRelease(bool appShutDown); // fires when the plugin is released from the application
  2424. + ~ToDoList() override;
  2425. + cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) override;
  2426. + void BuildMenu(wxMenuBar* menuBar) override;
  2427. + void BuildModuleMenu(const ModuleType type, wxMenu* menu,
  2428. + const FileTreeData* data = nullptr) override;
  2429. + void OnAttach() override; // fires when the plugin is attached to the application
  2430. + void OnRelease(bool appShutDown) override; // fires when the plugin is released from the application
  2431. private:
  2432. // only parse files when C::B app is already start up
  2433. void OnAppDoneStartup(CodeBlocksEvent& event);
  2434. diff --git a/src/plugins/todo/todolistview.h b/src/plugins/todo/todolistview.h
  2435. index 2d9b3426f..523278682 100644
  2436. --- a/src/plugins/todo/todolistview.h
  2437. +++ b/src/plugins/todo/todolistview.h
  2438. @@ -76,8 +76,8 @@ class ToDoListView : public wxEvtHandler, public ListCtrlLogger
  2439. {
  2440. public:
  2441. ToDoListView(const wxArrayString& titles, const wxArrayInt& widths, const wxArrayString& types);
  2442. - ~ToDoListView();
  2443. - virtual wxWindow* CreateControl(wxWindow* parent);
  2444. + ~ToDoListView() override;
  2445. + wxWindow* CreateControl(wxWindow* parent) override;
  2446. void DestroyControls(bool control);
  2447. // parse all the sources
  2448. diff --git a/src/plugins/todo/todosettingsdlg.h b/src/plugins/todo/todosettingsdlg.h
  2449. index c216b482f..c09851454 100644
  2450. --- a/src/plugins/todo/todosettingsdlg.h
  2451. +++ b/src/plugins/todo/todosettingsdlg.h
  2452. @@ -14,12 +14,12 @@ class ToDoSettingsDlg : public cbConfigurationPanel
  2453. {
  2454. public:
  2455. ToDoSettingsDlg(wxWindow* parent);
  2456. - ~ToDoSettingsDlg();
  2457. + ~ToDoSettingsDlg() override;
  2458. - virtual wxString GetTitle() const { return _("Todo list"); }
  2459. - virtual wxString GetBitmapBaseName() const { return _T("todo"); }
  2460. - virtual void OnApply();
  2461. - virtual void OnCancel(){}
  2462. + wxString GetTitle() const override { return _("Todo list"); }
  2463. + wxString GetBitmapBaseName() const override { return _T("todo"); }
  2464. + void OnApply() override;
  2465. + void OnCancel() override {}
  2466. };
  2467. #endif // TODOSETTINGSDLG_H
  2468. diff --git a/src/src/app.cpp b/src/src/app.cpp
  2469. index 10f278ff3..9437c7169 100644
  2470. --- a/src/src/app.cpp
  2471. +++ b/src/src/app.cpp
  2472. @@ -319,7 +319,7 @@ class cbMessageOutputNull : public wxMessageOutput
  2473. public:
  2474. #if wxCHECK_VERSION(3, 0, 0)
  2475. - virtual void Output(const wxString &str);
  2476. + virtual void Output(const wxString &str) override;
  2477. #else
  2478. #ifdef WX_ATTRIBUTE_PRINTF
  2479. virtual void Printf(const wxChar* format, ...) WX_ATTRIBUTE_PRINTF_2;
  2480. diff --git a/src/src/app.h b/src/src/app.h
  2481. index d9808a93f..4348b4688 100644
  2482. --- a/src/src/app.h
  2483. +++ b/src/src/app.h
  2484. @@ -107,17 +107,17 @@ class cbSplashScreen;
  2485. class CodeBlocksApp : public wxApp
  2486. {
  2487. public:
  2488. - virtual bool OnInit();
  2489. - virtual int OnExit();
  2490. - virtual int OnRun();
  2491. + bool OnInit() override;
  2492. + int OnExit() override;
  2493. + int OnRun() override;
  2494. wxString GetAppPath() const;
  2495. int ParseCmdLine(MainFrame* handlerFrame, const wxString& CmdLine = wxEmptyString);
  2496. #if wxCHECK_VERSION(3,0,0)
  2497. void OnCloseBatchBuildWindow(wxCloseEvent& evt);
  2498. #endif // wxCHECK_VERSION
  2499. void OnAppActivate(wxActivateEvent& event);
  2500. - bool OnCmdLineParsed(wxCmdLineParser& parser);
  2501. - void OnFatalException();
  2502. + bool OnCmdLineParsed(wxCmdLineParser& parser) override;
  2503. + void OnFatalException() override;
  2504. void LoadDelayedFiles(MainFrame* frame); // command line or DDE (if available) files
  2505. void SetAutoFile(wxString& file); // method to set m_AutoFile
  2506. void AttachDebugger();
  2507. diff --git a/src/src/backtracedlg.h b/src/src/backtracedlg.h
  2508. index 7c0c12f61..9a7e88869 100644
  2509. --- a/src/src/backtracedlg.h
  2510. +++ b/src/src/backtracedlg.h
  2511. @@ -21,10 +21,10 @@ class BacktraceDlg : public wxPanel, public cbBacktraceDlg
  2512. public:
  2513. BacktraceDlg(wxWindow* parent);
  2514. - wxWindow* GetWindow() { return this; }
  2515. + wxWindow* GetWindow() override { return this; }
  2516. - void Reload();
  2517. - void EnableWindow(bool enable);
  2518. + void Reload() override;
  2519. + void EnableWindow(bool enable) override;
  2520. private:
  2521. void OnListRightClick(wxListEvent& event);
  2522. void OnDoubleClick(wxListEvent& event);
  2523. diff --git a/src/src/batchbuild.h b/src/src/batchbuild.h
  2524. index b352d06fd..bb2ce5ac5 100644
  2525. --- a/src/src/batchbuild.h
  2526. +++ b/src/src/batchbuild.h
  2527. @@ -23,7 +23,7 @@ class BatchLogWindow : public wxScrollingDialog
  2528. size.SetHeight(Manager::Get()->GetConfigManager(_T("message_manager"))->ReadInt(_T("/batch_build_log/height"), wxDefaultSize.GetHeight()));
  2529. SetSize(size);
  2530. }
  2531. - void EndModal(int retCode)
  2532. + void EndModal(int retCode) override
  2533. {
  2534. // allowed to close?
  2535. // find compiler plugin
  2536. diff --git a/src/src/breakpointsdlg.h b/src/src/breakpointsdlg.h
  2537. index 37cc4b0ee..36efcb2e8 100644
  2538. --- a/src/src/breakpointsdlg.h
  2539. +++ b/src/src/breakpointsdlg.h
  2540. @@ -26,15 +26,15 @@ class BreakpointsDlg : public wxPanel, public cbBreakpointsDlg
  2541. public:
  2542. BreakpointsDlg();
  2543. - wxWindow* GetWindow() { return this; }
  2544. + wxWindow* GetWindow() override { return this; }
  2545. - bool AddBreakpoint(cbDebuggerPlugin *plugin, const wxString& filename, int line);
  2546. - bool RemoveBreakpoint(cbDebuggerPlugin *plugin, const wxString& filename, int line);
  2547. - void RemoveAllBreakpoints();
  2548. - void EditBreakpoint(const wxString& filename, int line);
  2549. - void EnableBreakpoint(const wxString& filename, int line, bool enable);
  2550. + bool AddBreakpoint(cbDebuggerPlugin *plugin, const wxString& filename, int line) override;
  2551. + bool RemoveBreakpoint(cbDebuggerPlugin *plugin, const wxString& filename, int line) override;
  2552. + void RemoveAllBreakpoints() override;
  2553. + void EditBreakpoint(const wxString& filename, int line) override;
  2554. + void EnableBreakpoint(const wxString& filename, int line, bool enable) override;
  2555. - void Reload();
  2556. + void Reload() override;
  2557. private:
  2558. void OnRemove(wxCommandEvent& event);
  2559. diff --git a/src/src/compilersettingsdlg.h b/src/src/compilersettingsdlg.h
  2560. index 7927b842b..4d702175d 100644
  2561. --- a/src/src/compilersettingsdlg.h
  2562. +++ b/src/src/compilersettingsdlg.h
  2563. @@ -15,8 +15,8 @@ class CompilerSettingsDlg : public wxScrollingDialog
  2564. {
  2565. public:
  2566. CompilerSettingsDlg(wxWindow* parent);
  2567. - virtual ~CompilerSettingsDlg();
  2568. - virtual void EndModal(int retCode);
  2569. + ~CompilerSettingsDlg() override;
  2570. + void EndModal(int retCode) override;
  2571. protected:
  2572. void OnPageChanging(wxListbookEvent& event);
  2573. void OnPageChanged(wxListbookEvent& event);
  2574. diff --git a/src/src/cpuregistersdlg.h b/src/src/cpuregistersdlg.h
  2575. index 35e6db300..1aa261765 100644
  2576. --- a/src/src/cpuregistersdlg.h
  2577. +++ b/src/src/cpuregistersdlg.h
  2578. @@ -16,11 +16,12 @@ class CPURegistersDlg : public wxPanel, public cbCPURegistersDlg
  2579. public:
  2580. CPURegistersDlg(wxWindow* parent);
  2581. - wxWindow* GetWindow() { return this; }
  2582. + wxWindow* GetWindow() override { return this; }
  2583. - void Clear();
  2584. - void SetRegisterValue(const wxString& reg_name, const wxString& hexValue, const wxString& interpreted);
  2585. - void EnableWindow(bool enable);
  2586. + void Clear() override;
  2587. + void SetRegisterValue(const wxString& reg_name, const wxString& hexValue,
  2588. + const wxString& interpreted) override;
  2589. + void EnableWindow(bool enable) override;
  2590. protected:
  2591. int RegisterIndex(const wxString& reg_name);
  2592. void OnRefresh(wxCommandEvent& event);
  2593. diff --git a/src/src/debugger_interface_creator.h b/src/src/debugger_interface_creator.h
  2594. index 232292647..5f51a9940 100644
  2595. --- a/src/src/debugger_interface_creator.h
  2596. +++ b/src/src/debugger_interface_creator.h
  2597. @@ -17,31 +17,31 @@ class DebugInterfaceFactory : public cbDebugInterfaceFactory
  2598. ~DebugInterfaceFactory();
  2599. public:
  2600. - virtual cbBacktraceDlg* CreateBacktrace();
  2601. - virtual void DeleteBacktrace(cbBacktraceDlg *dialog);
  2602. + cbBacktraceDlg* CreateBacktrace() override;
  2603. + void DeleteBacktrace(cbBacktraceDlg *dialog) override;
  2604. - virtual cbBreakpointsDlg* CreateBreapoints();
  2605. - virtual void DeleteBreakpoints(cbBreakpointsDlg *dialog);
  2606. + cbBreakpointsDlg* CreateBreapoints() override;
  2607. + void DeleteBreakpoints(cbBreakpointsDlg *dialog) override;
  2608. - virtual cbCPURegistersDlg* CreateCPURegisters();
  2609. - virtual void DeleteCPURegisters(cbCPURegistersDlg *dialog);
  2610. + cbCPURegistersDlg* CreateCPURegisters() override;
  2611. + void DeleteCPURegisters(cbCPURegistersDlg *dialog) override;
  2612. - virtual cbDisassemblyDlg* CreateDisassembly();
  2613. - virtual void DeleteDisassembly(cbDisassemblyDlg *dialog);
  2614. + cbDisassemblyDlg* CreateDisassembly() override;
  2615. + void DeleteDisassembly(cbDisassemblyDlg *dialog) override;
  2616. - virtual cbExamineMemoryDlg* CreateMemory();
  2617. - virtual void DeleteMemory(cbExamineMemoryDlg *dialog);
  2618. + cbExamineMemoryDlg* CreateMemory() override;
  2619. + void DeleteMemory(cbExamineMemoryDlg *dialog) override;
  2620. - virtual cbThreadsDlg* CreateThreads();
  2621. - virtual void DeleteThreads(cbThreadsDlg *dialog);
  2622. + cbThreadsDlg* CreateThreads() override;
  2623. + void DeleteThreads(cbThreadsDlg *dialog) override;
  2624. - virtual cbWatchesDlg* CreateWatches();
  2625. - virtual void DeleteWatches(cbWatchesDlg *dialog);
  2626. + cbWatchesDlg* CreateWatches() override;
  2627. + void DeleteWatches(cbWatchesDlg *dialog) override;
  2628. - virtual bool ShowValueTooltip(const cb::shared_ptr<cbWatch> &watch, const wxRect &rect);
  2629. - virtual void HideValueTooltip();
  2630. - virtual bool IsValueTooltipShown();
  2631. - virtual void UpdateValueTooltip();
  2632. + bool ShowValueTooltip(const cb::shared_ptr<cbWatch> &watch, const wxRect &rect) override;
  2633. + void HideValueTooltip() override;
  2634. + bool IsValueTooltipShown() override;
  2635. + void UpdateValueTooltip() override;
  2636. private:
  2637. void OnEditorDeactivate(CodeBlocksEvent &event);
  2638. private:
  2639. diff --git a/src/src/debuggermenu.h b/src/src/debuggermenu.h
  2640. index 68db401a4..2332ce2db 100644
  2641. --- a/src/src/debuggermenu.h
  2642. +++ b/src/src/debuggermenu.h
  2643. @@ -21,13 +21,13 @@ class DebuggerMenuHandler : public wxEvtHandler, public cbDebuggerMenuHandler
  2644. void AppendWindowMenuItems(wxMenu &menu);
  2645. public: // derived from cbDebuggerMenuHandler
  2646. - virtual void SetActiveDebugger(cbDebuggerPlugin *active);
  2647. - virtual void MarkActiveTargetAsValid(bool valid);
  2648. - virtual void RebuildMenus();
  2649. - virtual void BuildContextMenu(wxMenu &menu, const wxString& word_at_caret, bool is_running);
  2650. + void SetActiveDebugger(cbDebuggerPlugin *active) override;
  2651. + void MarkActiveTargetAsValid(bool valid) override;
  2652. + void RebuildMenus() override;
  2653. + void BuildContextMenu(wxMenu &menu, const wxString& word_at_caret, bool is_running) override;
  2654. - virtual bool RegisterWindowMenu(const wxString &name, const wxString &help, cbDebuggerWindowMenuItem *item);
  2655. - virtual void UnregisterWindowMenu(const wxString &name);
  2656. + bool RegisterWindowMenu(const wxString &name, const wxString &help, cbDebuggerWindowMenuItem *item) override;
  2657. + void UnregisterWindowMenu(const wxString &name) override;
  2658. private:
  2659. void OnUpdateUI(wxUpdateUIEvent& event);
  2660. void OnUpdateUIActive(wxUpdateUIEvent &event);
  2661. diff --git a/src/src/disassemblydlg.h b/src/src/disassemblydlg.h
  2662. index 8ef9b6582..2e74d53fd 100644
  2663. --- a/src/src/disassemblydlg.h
  2664. +++ b/src/src/disassemblydlg.h
  2665. @@ -20,16 +20,16 @@ class DisassemblyDlg : public wxPanel, public cbDisassemblyDlg
  2666. public:
  2667. DisassemblyDlg(wxWindow* parent);
  2668. - wxWindow* GetWindow() { return this; }
  2669. -
  2670. - void Clear(const cbStackFrame& frame);
  2671. - void AddAssemblerLine(uint64_t addr, const wxString& line);
  2672. - void AddSourceLine(int lineno, const wxString& line);
  2673. - bool SetActiveAddress(uint64_t addr);
  2674. - void CenterLine(int lineno);
  2675. - void CenterCurrentLine();
  2676. - bool HasActiveAddr() { return m_HasActiveAddr; }
  2677. - void EnableWindow(bool enable);
  2678. + wxWindow* GetWindow() override { return this; }
  2679. +
  2680. + void Clear(const cbStackFrame& frame) override;
  2681. + void AddAssemblerLine(uint64_t addr, const wxString& line) override;
  2682. + void AddSourceLine(int lineno, const wxString& line) override;
  2683. + bool SetActiveAddress(uint64_t addr) override;
  2684. + void CenterLine(int lineno) override;
  2685. + void CenterCurrentLine() override;
  2686. + bool HasActiveAddr() override { return m_HasActiveAddr; }
  2687. + void EnableWindow(bool enable) override;
  2688. protected:
  2689. void OnSave(wxCommandEvent& event);
  2690. diff --git a/src/src/editorconfigurationdlg.h b/src/src/editorconfigurationdlg.h
  2691. index 83fcac888..170f710ab 100644
  2692. --- a/src/src/editorconfigurationdlg.h
  2693. +++ b/src/src/editorconfigurationdlg.h
  2694. @@ -48,7 +48,7 @@ class EditorConfigurationDlg : public wxScrollingDialog
  2695. void OnCaretStyle(wxCommandEvent& event);
  2696. void OnUpdateUIFontQuality(wxUpdateUIEvent& event);
  2697. - void EndModal(int retCode);
  2698. + void EndModal(int retCode) override;
  2699. private:
  2700. void OnPageChanging(wxListbookEvent& event);
  2701. void OnPageChanged(wxListbookEvent& event);
  2702. diff --git a/src/src/environmentsettingsdlg.h b/src/src/environmentsettingsdlg.h
  2703. index 2e92e60a3..3a1b15784 100644
  2704. --- a/src/src/environmentsettingsdlg.h
  2705. +++ b/src/src/environmentsettingsdlg.h
  2706. @@ -19,8 +19,8 @@ class EnvironmentSettingsDlg : public wxScrollingDialog, public cbConfigurationP
  2707. {
  2708. public:
  2709. EnvironmentSettingsDlg(wxWindow* parent, wxAuiDockArt* art);
  2710. - virtual ~EnvironmentSettingsDlg();
  2711. - virtual void EndModal(int retCode);
  2712. + ~EnvironmentSettingsDlg() override;
  2713. + void EndModal(int retCode) override;
  2714. public:
  2715. // From cbConfigurationPanelColoursInterface
  2716. diff --git a/src/src/examinememorydlg.h b/src/src/examinememorydlg.h
  2717. index d9793320b..051ea1f71 100644
  2718. --- a/src/src/examinememorydlg.h
  2719. +++ b/src/src/examinememorydlg.h
  2720. @@ -16,19 +16,19 @@ class ExamineMemoryDlg : public wxPanel, public cbExamineMemoryDlg
  2721. public:
  2722. ExamineMemoryDlg(wxWindow* parent);
  2723. - wxWindow* GetWindow() { return this; }
  2724. + wxWindow* GetWindow() override { return this; }
  2725. // used for Freeze()/Thaw() calls
  2726. - void Begin();
  2727. - void End();
  2728. -
  2729. - void Clear();
  2730. - wxString GetBaseAddress();
  2731. - void SetBaseAddress(const wxString &addr);
  2732. - int GetBytes();
  2733. - void AddError(const wxString& err);
  2734. - void AddHexByte(const wxString& addr, const wxString& hexbyte);
  2735. - void EnableWindow(bool enable);
  2736. + void Begin() override;
  2737. + void End() override;
  2738. +
  2739. + void Clear() override;
  2740. + wxString GetBaseAddress() override;
  2741. + void SetBaseAddress(const wxString &addr) override;
  2742. + int GetBytes() override;
  2743. + void AddError(const wxString& err) override;
  2744. + void AddHexByte(const wxString& addr, const wxString& hexbyte) override;
  2745. + void EnableWindow(bool enable) override;
  2746. protected:
  2747. void OnGo(wxCommandEvent& event);
  2748. diff --git a/src/src/notebookstyles.h b/src/src/notebookstyles.h
  2749. index 80ef2f693..1a4942847 100644
  2750. --- a/src/src/notebookstyles.h
  2751. +++ b/src/src/notebookstyles.h
  2752. @@ -28,29 +28,29 @@ class NbStyleVC71 : public wxAuiDefaultTabArt
  2753. {
  2754. public:
  2755. NbStyleVC71();
  2756. - wxAuiTabArt* Clone();
  2757. + wxAuiTabArt* Clone() override;
  2758. void DrawTab(wxDC& dc, wxWindow* wnd, const wxAuiNotebookPage& page,
  2759. const wxRect& in_rect, int close_button_state,
  2760. wxRect* out_tab_rect, wxRect* out_button_rect,
  2761. - int* x_extent);
  2762. + int* x_extent) override;
  2763. int GetBestTabCtrlSize(wxWindow* wnd, const wxAuiNotebookPageArray& pages,
  2764. - const wxSize& required_bmp_size);
  2765. + const wxSize& required_bmp_size) override;
  2766. };
  2767. class NbStyleFF2 : public wxAuiDefaultTabArt
  2768. {
  2769. public:
  2770. NbStyleFF2();
  2771. - wxAuiTabArt* Clone();
  2772. + wxAuiTabArt* Clone() override;
  2773. void DrawTab(wxDC& dc, wxWindow* wnd, const wxAuiNotebookPage& page,
  2774. const wxRect& in_rect, int close_button_state,
  2775. wxRect* out_tab_rect, wxRect* out_button_rect,
  2776. - int* x_extent);
  2777. + int* x_extent) override;
  2778. int GetBestTabCtrlSize(wxWindow* wnd, const wxAuiNotebookPageArray& pages,
  2779. - const wxSize& required_bmp_size);
  2780. + const wxSize& required_bmp_size) override;
  2781. };
  2782. #if defined(__WXGTK__) && (USE_GTK_NOTEBOOK) && !wxCHECK_VERSION(3, 0, 0)
  2783. diff --git a/src/src/printdlg.h b/src/src/printdlg.h
  2784. index 8cb554c5f..5289a240e 100644
  2785. --- a/src/src/printdlg.h
  2786. +++ b/src/src/printdlg.h
  2787. @@ -13,9 +13,9 @@ class PrintDialog : public wxScrollingDialog
  2788. {
  2789. public:
  2790. PrintDialog(wxWindow* parent);
  2791. - virtual ~PrintDialog();
  2792. + ~PrintDialog() override;
  2793. - virtual void EndModal(int retCode);
  2794. + void EndModal(int retCode) override;
  2795. PrintScope GetPrintScope() const;
  2796. PrintColourMode GetPrintColourMode() const;
  2797. diff --git a/src/src/projectdepsdlg.h b/src/src/projectdepsdlg.h
  2798. index 2665cbbd6..f04dafe1b 100644
  2799. --- a/src/src/projectdepsdlg.h
  2800. +++ b/src/src/projectdepsdlg.h
  2801. @@ -14,8 +14,8 @@ class ProjectDepsDlg : public wxScrollingDialog
  2802. {
  2803. public:
  2804. ProjectDepsDlg(wxWindow* parent, cbProject* sel = nullptr);
  2805. - virtual ~ProjectDepsDlg();
  2806. - virtual void EndModal(int retCode);
  2807. + ~ProjectDepsDlg() override;
  2808. + void EndModal(int retCode) override;
  2809. protected:
  2810. void FillList();
  2811. bool SaveList();
  2812. diff --git a/src/src/projectmanagerui.h b/src/src/projectmanagerui.h
  2813. index 851708bfe..97e175c36 100644
  2814. --- a/src/src/projectmanagerui.h
  2815. +++ b/src/src/projectmanagerui.h
  2816. @@ -20,43 +20,46 @@ class ProjectManagerUI : public wxEvtHandler, public cbProjectManagerUI
  2817. ProjectManagerUI();
  2818. ~ProjectManagerUI();
  2819. - cbAuiNotebook* GetNotebook() { return m_pNotebook; }
  2820. + cbAuiNotebook* GetNotebook() override { return m_pNotebook; }
  2821. /** Retrieve a pointer to the project manager's tree (GUI).
  2822. * @return A pointer to a wxTreeCtrl window.
  2823. */
  2824. - cbTreeCtrl* GetTree(){ return m_pTree; }
  2825. + cbTreeCtrl* GetTree() override { return m_pTree; }
  2826. - wxTreeItemId GetTreeSelection();
  2827. + wxTreeItemId GetTreeSelection() override;
  2828. - void RebuildTree();
  2829. - void FreezeTree();
  2830. - void UnfreezeTree(bool force = false);
  2831. + void RebuildTree() override;
  2832. + void FreezeTree() override;
  2833. + void UnfreezeTree(bool force = false) override;
  2834. - void UpdateActiveProject(cbProject* oldProject, cbProject* newProject, bool refresh);
  2835. - void RemoveProject(cbProject* project);
  2836. - void BeginLoadingWorkspace();
  2837. - void CloseWorkspace();
  2838. - void FinishLoadingProject(cbProject* project, bool newAddition, cb_unused FilesGroupsAndMasks* fgam);
  2839. - void FinishLoadingWorkspace(cbProject* activeProject, const wxString &workspaceTitle);
  2840. + void UpdateActiveProject(cbProject* oldProject, cbProject* newProject,
  2841. + bool refresh) override;
  2842. + void RemoveProject(cbProject* project) override;
  2843. + void BeginLoadingWorkspace() override;
  2844. + void CloseWorkspace() override;
  2845. + void FinishLoadingProject(cbProject* project, bool newAddition,
  2846. + cb_unused FilesGroupsAndMasks* fgam) override;
  2847. + void FinishLoadingWorkspace(cbProject* activeProject,
  2848. + const wxString &workspaceTitle) override;
  2849. - void ShowFileInTree(ProjectFile &projectFile);
  2850. + void ShowFileInTree(ProjectFile &projectFile) override;
  2851. void CreateMenu(wxMenuBar* menuBar);
  2852. - bool QueryCloseAllProjects();
  2853. - bool QueryCloseProject(cbProject* project, bool dontsavefiles);
  2854. - bool QueryCloseWorkspace();
  2855. + bool QueryCloseAllProjects() override;
  2856. + bool QueryCloseProject(cbProject* project, bool dontsavefiles) override;
  2857. + bool QueryCloseWorkspace() override;
  2858. - int AskForBuildTargetIndex(cbProject* project);
  2859. - wxArrayInt AskForMultiBuildTargetIndex(cbProject* project);
  2860. - void ConfigureProjectDependencies(cbProject* base, wxWindow *parent);
  2861. + int AskForBuildTargetIndex(cbProject* project) override;
  2862. + wxArrayInt AskForMultiBuildTargetIndex(cbProject* project) override;
  2863. + void ConfigureProjectDependencies(cbProject* base, wxWindow *parent) override;
  2864. void CheckForExternallyModifiedProjects();
  2865. private:
  2866. void InitPane();
  2867. - void SwitchToProjectsPage();
  2868. + void SwitchToProjectsPage() override;
  2869. void ShowMenu(wxTreeItemId id, const wxPoint& pt);
  2870. void CreateMenuTreeProps(wxMenu* menu, bool popup);
  2871. diff --git a/src/src/projectoptionsdlg.h b/src/src/projectoptionsdlg.h
  2872. index 3826cc809..01264d405 100644
  2873. --- a/src/src/projectoptionsdlg.h
  2874. +++ b/src/src/projectoptionsdlg.h
  2875. @@ -23,9 +23,9 @@ class ProjectOptionsDlg : public wxScrollingDialog
  2876. // class constructor
  2877. ProjectOptionsDlg(wxWindow* parent, cbProject* project);
  2878. // class destructor
  2879. - ~ProjectOptionsDlg();
  2880. + ~ProjectOptionsDlg() override;
  2881. - void EndModal(int retCode);
  2882. + void EndModal(int retCode) override;
  2883. void OnFileOptionsClick(wxCommandEvent& event);
  2884. void OnFileToggleMarkClick(wxCommandEvent& event);
  2885. void OnFileMarkOnClick(wxCommandEvent& event);
  2886. diff --git a/src/src/scriptingsettingsdlg.h b/src/src/scriptingsettingsdlg.h
  2887. index 66878dcad..527ff63e3 100644
  2888. --- a/src/src/scriptingsettingsdlg.h
  2889. +++ b/src/src/scriptingsettingsdlg.h
  2890. @@ -41,9 +41,9 @@ class ScriptingSettingsDlg : public wxScrollingDialog
  2891. {
  2892. public:
  2893. ScriptingSettingsDlg(wxWindow* parent);
  2894. - ~ScriptingSettingsDlg();
  2895. + ~ScriptingSettingsDlg() override;
  2896. - void EndModal(int retCode);
  2897. + void EndModal(int retCode) override;
  2898. protected:
  2899. void FillScripts();
  2900. void UpdateState();
  2901. diff --git a/src/src/startherepage.h b/src/src/startherepage.h
  2902. index 8b9ef614f..4bc29a199 100644
  2903. --- a/src/src/startherepage.h
  2904. +++ b/src/src/startherepage.h
  2905. @@ -23,10 +23,10 @@ class StartHerePage : public EditorBase
  2906. public:
  2907. StartHerePage(wxEvtHandler* owner, const RecentItemsList &projects,
  2908. const RecentItemsList &files, wxWindow* parent);
  2909. - virtual ~StartHerePage();
  2910. + ~StartHerePage() override;
  2911. bool LinkClicked(const wxHtmlLinkInfo& link);
  2912. - virtual bool VisibleToTree() const { return false; }
  2913. + bool VisibleToTree() const override { return false; }
  2914. void Reload();
  2915. private:
  2916. void RegisterColours();
  2917. diff --git a/src/src/switcherdlg.h b/src/src/switcherdlg.h
  2918. index b23e516c6..8020adac5 100644
  2919. --- a/src/src/switcherdlg.h
  2920. +++ b/src/src/switcherdlg.h
  2921. @@ -235,7 +235,7 @@ class wxMultiColumnListCtrl: public wxControl
  2922. void OnEraseBackground(wxEraseEvent& event);
  2923. // Overrides
  2924. - virtual wxSize DoGetBestSize() const ;
  2925. + wxSize DoGetBestSize() const override;
  2926. // Implementation
  2927. diff --git a/src/src/threadsdlg.h b/src/src/threadsdlg.h
  2928. index 2cfa55122..31054c769 100644
  2929. --- a/src/src/threadsdlg.h
  2930. +++ b/src/src/threadsdlg.h
  2931. @@ -18,10 +18,10 @@ class ThreadsDlg : public wxPanel, public cbThreadsDlg
  2932. public:
  2933. ThreadsDlg(wxWindow* parent);
  2934. - wxWindow* GetWindow() { return this; }
  2935. + wxWindow* GetWindow() override { return this; }
  2936. - void Reload();
  2937. - void EnableWindow(bool enable);
  2938. + void Reload() override;
  2939. + void EnableWindow(bool enable) override;
  2940. protected:
  2941. void OnListRightClick(wxListEvent& event);
  2942. void OnListDoubleClick(wxListEvent& event);
  2943. diff --git a/src/src/watchesdlg.h b/src/src/watchesdlg.h
  2944. index 6bf827910..2803f4b3b 100644
  2945. --- a/src/src/watchesdlg.h
  2946. +++ b/src/src/watchesdlg.h
  2947. @@ -24,7 +24,7 @@ class WatchesDlg : public wxPanel, public cbWatchesDlg
  2948. public:
  2949. WatchesDlg();
  2950. - wxWindow* GetWindow() { return this; }
  2951. + wxWindow* GetWindow() override { return this; }
  2952. void AddWatch(cb::shared_ptr<cbWatch> watch) override;
  2953. void AddSpecialWatch(cb::shared_ptr<cbWatch> watch, bool readonly) override;
  2954. @@ -93,7 +93,7 @@ class ValueTooltip :
  2955. protected:
  2956. virtual void OnDismiss();
  2957. private:
  2958. - void Fit();
  2959. + void Fit() override;
  2960. void ClearWatch();
  2961. private: