123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216 |
- From 56ac0396fad7a5b4bbb40bb8c4b5fe1755078aef Mon Sep 17 00:00:00 2001
- From: fuscated <fuscated@2a5c6006-c6dd-42ca-98ab-0921f2732cef>
- Date: Wed, 29 Jul 2020 21:09:40 +0000
- Subject: [PATCH] * build: Fix many -Wsuggest-override warnings for the core
- and core plugins
- > This warning is emitted by GCC starting with version 5.1.
- git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@12190 2a5c6006-c6dd-42ca-98ab-0921f2732cef
- ---
- src/include/cbauibook.h | 4 +-
- src/plugins/abbreviations/abbreviations.h | 12 +-
- .../abbreviations/abbreviationsconfigpanel.h | 10 +-
- src/plugins/astyle/astyleconfigdlg.h | 8 +-
- src/plugins/autosave/autosave.h | 20 +--
- src/plugins/classwizard/classwizard.h | 8 +-
- src/plugins/codecompletion/ccoptionsdlg.h | 10 +-
- src/plugins/codecompletion/ccoptionsprjdlg.h | 10 +-
- src/plugins/codecompletion/cctreectrl.h | 2 +-
- .../classbrowserbuilderthread.h | 4 +-
- src/plugins/codecompletion/codecompletion.h | 34 ++---
- src/plugins/codecompletion/parser/parser.h | 43 +++---
- .../codecompletion/parser/parserthread.h | 2 +-
- .../parser/parserthreadedtask.h | 4 +-
- .../codecompletion/parser/searchtree.h | 8 +-
- .../codecompletion/systemheadersthread.h | 4 +-
- .../compilergcc/advancedcompileroptionsdlg.h | 4 +-
- src/plugins/compilergcc/compilerCYGWIN.h | 6 +-
- src/plugins/compilergcc/compilerG95.h | 6 +-
- src/plugins/compilergcc/compilerGDC.h | 6 +-
- src/plugins/compilergcc/compilerGNUARM.h | 6 +-
- src/plugins/compilergcc/compilerGNUFortran.h | 6 +-
- src/plugins/compilergcc/compilerIAR.h | 6 +-
- src/plugins/compilergcc/compilerICC.h | 6 +-
- src/plugins/compilergcc/compilerKeilC51.h | 10 +-
- src/plugins/compilergcc/compilerLCC.h | 10 +-
- src/plugins/compilergcc/compilerMINGW.h | 10 +-
- src/plugins/compilergcc/compilerMSVC.h | 6 +-
- src/plugins/compilergcc/compilerMSVC10.h | 6 +-
- src/plugins/compilergcc/compilerMSVC8.h | 6 +-
- src/plugins/compilergcc/compilerOW.h | 12 +-
- src/plugins/compilergcc/compilerXML.h | 6 +-
- src/plugins/compilergcc/compilerflagdlg.h | 4 +-
- src/plugins/compilergcc/compilergcc.h | 58 ++++----
- src/plugins/compilergcc/compilermessages.h | 8 +-
- src/plugins/compilergcc/compileroptionsdlg.h | 10 +-
- src/plugins/debuggergdb/cdb_commands.h | 34 ++---
- src/plugins/debuggergdb/cdb_driver.h | 95 ++++++-------
- src/plugins/debuggergdb/debugger_defs.h | 40 +++---
- src/plugins/debuggergdb/debuggergdb.h | 132 +++++++++---------
- src/plugins/debuggergdb/debuggeroptionsdlg.h | 6 +-
- .../debuggergdb/debuggeroptionsprjdlg.h | 10 +-
- src/plugins/debuggergdb/editbreakpointdlg.h | 4 +-
- src/plugins/debuggergdb/editwatchdlg.h | 4 +-
- src/plugins/debuggergdb/gdb_commands.h | 66 ++++-----
- src/plugins/debuggergdb/gdb_driver.h | 110 +++++++--------
- .../defaultmimehandler/defaultmimehandler.h | 16 +--
- .../defaultmimehandler/editmimetypesdlg.h | 10 +-
- .../occurrenceshighlighting.h | 19 +--
- ...ccurrenceshighlightingconfigurationpanel.h | 10 +-
- .../openfileslist/openfileslistplugin.h | 10 +-
- src/plugins/projectsimporter/devcpploader.h | 6 +-
- src/plugins/projectsimporter/msvc10loader.h | 6 +-
- src/plugins/projectsimporter/msvc7loader.h | 6 +-
- .../projectsimporter/msvc7workspaceloader.h | 6 +-
- src/plugins/projectsimporter/msvcloader.h | 6 +-
- .../projectsimporter/msvcworkspaceloader.h | 6 +-
- .../projectsimporter/projectsimporter.h | 10 +-
- src/plugins/scriptedwizard/projectpathpanel.h | 6 +-
- src/plugins/scriptedwizard/wiz.h | 20 +--
- src/plugins/scriptedwizard/wizpage.h | 38 ++---
- src/plugins/todo/addtododlg.h | 3 +-
- src/plugins/todo/todolist.h | 13 +-
- src/plugins/todo/todolistview.h | 4 +-
- src/plugins/todo/todosettingsdlg.h | 10 +-
- src/src/app.cpp | 2 +-
- src/src/app.h | 10 +-
- src/src/backtracedlg.h | 6 +-
- src/src/batchbuild.h | 2 +-
- src/src/breakpointsdlg.h | 14 +-
- src/src/compilersettingsdlg.h | 4 +-
- src/src/cpuregistersdlg.h | 9 +-
- src/src/debugger_interface_creator.h | 36 ++---
- src/src/debuggermenu.h | 12 +-
- src/src/disassemblydlg.h | 20 +--
- src/src/editorconfigurationdlg.h | 2 +-
- src/src/environmentsettingsdlg.h | 4 +-
- src/src/examinememorydlg.h | 22 +--
- src/src/notebookstyles.h | 12 +-
- src/src/printdlg.h | 4 +-
- src/src/projectdepsdlg.h | 4 +-
- src/src/projectmanagerui.h | 43 +++---
- src/src/projectoptionsdlg.h | 4 +-
- src/src/scriptingsettingsdlg.h | 4 +-
- src/src/startherepage.h | 4 +-
- src/src/switcherdlg.h | 2 +-
- src/src/threadsdlg.h | 6 +-
- src/src/watchesdlg.h | 4 +-
- 88 files changed, 660 insertions(+), 651 deletions(-)
- diff --git a/src/include/cbauibook.h b/src/include/cbauibook.h
- index 2e1840bd1..d0bf79a3a 100644
- --- a/src/include/cbauibook.h
- +++ b/src/include/cbauibook.h
- @@ -112,7 +112,7 @@ class DLLIMPORT cbAuiNotebook : public wxAuiNotebook
- * \param The index of the tab to be closed
- * \return true if successfull
- */
- - bool DeletePage(size_t page);
- + bool DeletePage(size_t page) override;
- /** \brief Remove Page
- *
- * Calls the base-class function and after that
- @@ -122,7 +122,7 @@ class DLLIMPORT cbAuiNotebook : public wxAuiNotebook
- * \param The index of the tab to be closed
- * \return true if successfull
- */
- - bool RemovePage(size_t page);
- + bool RemovePage(size_t page) override;
- /** \brief Move page
- *
- * Moves the tab containing page to new_idx
- diff --git a/src/plugins/abbreviations/abbreviations.h b/src/plugins/abbreviations/abbreviations.h
- index 2edd069bf..b71cf8d34 100644
- --- a/src/plugins/abbreviations/abbreviations.h
- +++ b/src/plugins/abbreviations/abbreviations.h
- @@ -34,19 +34,19 @@ class Abbreviations : public cbPlugin
- * in configuration dialogs. Lower numbers mean the plugin's
- * configuration is put higher in the list.
- */
- - virtual int GetConfigurationPriority() const { return 50; }
- + int GetConfigurationPriority() const override { return 50; }
-
- /** Return the configuration group for this plugin. Default is cgUnknown.
- * Notice that you can logically OR more than one configuration groups,
- * so you could set it, for example, as "cgCompiler | cgContribPlugin".
- */
- - virtual int GetConfigurationGroup() const { return cgEditor; }
- + int GetConfigurationGroup() const override { return cgEditor; }
-
- /** Return plugin's configuration panel.
- * @param parent The parent window.
- * @return A pointer to the plugin's cbConfigurationPanel. It is deleted by the caller.
- */
- - virtual cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
- + cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) override;
-
- /** This method is called by Code::Blocks and is used by the plugin
- * to add any menu items it needs on Code::Blocks's menu bar.\n
- @@ -55,7 +55,7 @@ class Abbreviations : public cbPlugin
- * just do nothing ;)
- * @param menuBar the wxMenuBar to create items in
- */
- - virtual void BuildMenu(wxMenuBar* menuBar);
- + void BuildMenu(wxMenuBar* menuBar) override;
-
- protected:
- /** Any descendent plugin should override this virtual method and
- @@ -68,7 +68,7 @@ class Abbreviations : public cbPlugin
- * This means that a plugin might be loaded but <b>not</b> activated...\n
- * Think of this method as the actual constructor...
- */
- - virtual void OnAttach();
- + void OnAttach() override;
-
- /** Any descendent plugin should override this virtual method and
- * perform any necessary de-initialization. This method is called by
- @@ -79,7 +79,7 @@ class Abbreviations : public cbPlugin
- * case *don't* use Manager::Get()->Get...() functions or the
- * behaviour is undefined...
- */
- - virtual void OnRelease(bool appShutDown);
- + void OnRelease(bool appShutDown) override;
-
- public:
- /** Try to auto-complete the current word.
- diff --git a/src/plugins/abbreviations/abbreviationsconfigpanel.h b/src/plugins/abbreviations/abbreviationsconfigpanel.h
- index 8724f69be..38df93ef6 100644
- --- a/src/plugins/abbreviations/abbreviationsconfigpanel.h
- +++ b/src/plugins/abbreviations/abbreviationsconfigpanel.h
- @@ -20,16 +20,16 @@ class AbbreviationsConfigPanel: public cbConfigurationPanel
- {
- public:
- AbbreviationsConfigPanel(wxWindow* parent, Abbreviations* plugin);
- - virtual ~AbbreviationsConfigPanel();
- + ~AbbreviationsConfigPanel() override;
-
- /// @return the panel's title.
- - virtual wxString GetTitle() const;
- + wxString GetTitle() const override;
- /// @return the panel's bitmap base name. You must supply two bitmaps: \<basename\>.png and \<basename\>-off.png...
- - virtual wxString GetBitmapBaseName() const;
- + wxString GetBitmapBaseName() const override;
- /// Called when the user chooses to apply the configuration.
- - virtual void OnApply();
- + void OnApply() override;
- /// Called when the user chooses to cancel the configuration.
- - virtual void OnCancel();
- + void OnCancel() override;
-
- private:
- void InitCompText();
- diff --git a/src/plugins/astyle/astyleconfigdlg.h b/src/plugins/astyle/astyleconfigdlg.h
- index ecab74ff0..8adce2a11 100644
- --- a/src/plugins/astyle/astyleconfigdlg.h
- +++ b/src/plugins/astyle/astyleconfigdlg.h
- @@ -22,10 +22,10 @@ class AstyleConfigDlg : public cbConfigurationPanel
- void OnBreakLineChange(wxCommandEvent& event);
- void OnBreakBlocksChange(wxCommandEvent& event);
-
- - virtual wxString GetTitle() const { return _("Source formatter"); }
- - virtual wxString GetBitmapBaseName() const { return _T("astyle-plugin"); }
- - virtual void OnApply(){ SaveSettings(); }
- - virtual void OnCancel(){}
- + wxString GetTitle() const override { return _("Source formatter"); }
- + wxString GetBitmapBaseName() const override { return _T("astyle-plugin"); }
- + void OnApply() override { SaveSettings(); }
- + void OnCancel() override {}
-
- void LoadSettings();
- void SaveSettings();
- diff --git a/src/plugins/autosave/autosave.h b/src/plugins/autosave/autosave.h
- index 847152805..95d156b4f 100644
- --- a/src/plugins/autosave/autosave.h
- +++ b/src/plugins/autosave/autosave.h
- @@ -22,13 +22,13 @@ class Autosave : public cbPlugin
-
- public:
- Autosave();
- - ~Autosave();
- - int GetConfigurationPriority() const{ return 50; }
- - int GetConfigurationGroup() const{ return cgUnknown; }
- - void OnAttach(); // fires when the plugin is attached to the application
- + ~Autosave() override;
- + int GetConfigurationPriority() const override { return 50; }
- + int GetConfigurationGroup() const override { return cgUnknown; }
- + void OnAttach() override; // fires when the plugin is attached to the application
- void Start();
- - void OnRelease(bool appShutDown); // fires when the plugin is released from the application
- - virtual cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
- + void OnRelease(bool appShutDown) override; // fires when the plugin is released from the application
- + cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) override;
- void OnTimer(wxTimerEvent& event);
- void SaveProject(cbProject *p, int method);
- DECLARE_EVENT_TABLE()
- @@ -43,10 +43,10 @@ class AutosaveConfigDlg : public cbConfigurationPanel
- AutosaveConfigDlg(wxWindow* parent, Autosave* plug);
- virtual ~AutosaveConfigDlg(){};
-
- - virtual wxString GetTitle() const { return _("Autosave"); }
- - virtual wxString GetBitmapBaseName() const { return _T("autosave"); }
- - virtual void OnApply(){ SaveSettings(); }
- - virtual void OnCancel(){}
- + wxString GetTitle() const override { return _("Autosave"); }
- + wxString GetBitmapBaseName() const override { return _T("autosave"); }
- + void OnApply() override { SaveSettings(); }
- + void OnCancel() override {}
- private:
- void OnProjectsChecked(wxCommandEvent &event);
- void OnSourceChecked(wxCommandEvent &event);
- diff --git a/src/plugins/classwizard/classwizard.h b/src/plugins/classwizard/classwizard.h
- index 8852eb967..3f865db6d 100644
- --- a/src/plugins/classwizard/classwizard.h
- +++ b/src/plugins/classwizard/classwizard.h
- @@ -12,12 +12,12 @@ class ClassWizard : public cbPlugin
- {
- public:
- ClassWizard();
- - ~ClassWizard();
- + ~ClassWizard() override;
-
- - virtual void OnAttach();
- - virtual void OnRelease(bool appShutDown);
- + void OnAttach() override;
- + void OnRelease(bool appShutDown) override;
-
- - virtual void BuildMenu(wxMenuBar* menuBar);
- + void BuildMenu(wxMenuBar* menuBar) override;
-
- void OnLaunch(wxCommandEvent& event);
-
- diff --git a/src/plugins/codecompletion/ccoptionsdlg.h b/src/plugins/codecompletion/ccoptionsdlg.h
- index 8e324ebf7..66bdd4aef 100644
- --- a/src/plugins/codecompletion/ccoptionsdlg.h
- +++ b/src/plugins/codecompletion/ccoptionsdlg.h
- @@ -19,12 +19,12 @@ class CCOptionsDlg : public cbConfigurationPanel
- {
- public:
- CCOptionsDlg(wxWindow* parent, NativeParser* np, CodeCompletion* cc, DocumentationHelper* dh);
- - virtual ~CCOptionsDlg();
- + ~CCOptionsDlg() override;
-
- - virtual wxString GetTitle() const { return _("Code completion"); }
- - virtual wxString GetBitmapBaseName() const { return _T("codecompletion"); }
- - virtual void OnApply();
- - virtual void OnCancel() { ; }
- + wxString GetTitle() const override { return _("Code completion"); }
- + wxString GetBitmapBaseName() const override { return _T("codecompletion"); }
- + void OnApply() override;
- + void OnCancel() override {}
-
- protected:
- void OnChooseColour(wxCommandEvent& event);
- diff --git a/src/plugins/codecompletion/ccoptionsprjdlg.h b/src/plugins/codecompletion/ccoptionsprjdlg.h
- index de6c6c560..496f186fd 100644
- --- a/src/plugins/codecompletion/ccoptionsprjdlg.h
- +++ b/src/plugins/codecompletion/ccoptionsprjdlg.h
- @@ -18,12 +18,12 @@ class CCOptionsProjectDlg : public cbConfigurationPanel
- {
- public:
- CCOptionsProjectDlg(wxWindow* parent, cbProject* project, NativeParser* np);
- - virtual ~CCOptionsProjectDlg();
- + ~CCOptionsProjectDlg() override;
-
- - virtual wxString GetTitle() const { return _("C/C++ parser options"); }
- - virtual wxString GetBitmapBaseName() const { return _T("generic-plugin"); }
- - virtual void OnApply();
- - virtual void OnCancel(){}
- + wxString GetTitle() const override { return _("C/C++ parser options"); }
- + wxString GetBitmapBaseName() const override { return _T("generic-plugin"); }
- + void OnApply() override;
- + void OnCancel() override {}
-
- protected:
- void OnAdd(wxCommandEvent& event);
- diff --git a/src/plugins/codecompletion/cctreectrl.h b/src/plugins/codecompletion/cctreectrl.h
- index ca93673a3..df8838b17 100644
- --- a/src/plugins/codecompletion/cctreectrl.h
- +++ b/src/plugins/codecompletion/cctreectrl.h
- @@ -105,7 +105,7 @@ class CCTreeCtrl : public wxTreeCtrl
- static int CBLineCompare (CCTreeCtrlData* lhs, CCTreeCtrlData* rhs);
- static int CBNoCompare (CCTreeCtrlData* lhs, CCTreeCtrlData* rhs);
-
- - int OnCompareItems(const wxTreeItemId& item1, const wxTreeItemId& item2);
- + int OnCompareItems(const wxTreeItemId& item1, const wxTreeItemId& item2) override;
- int (*Compare)(CCTreeCtrlData* lhs, CCTreeCtrlData* rhs);
-
- DECLARE_DYNAMIC_CLASS(CCTreeCtrl)
- diff --git a/src/plugins/codecompletion/classbrowserbuilderthread.h b/src/plugins/codecompletion/classbrowserbuilderthread.h
- index 315cb8911..4f2acc284 100644
- --- a/src/plugins/codecompletion/classbrowserbuilderthread.h
- +++ b/src/plugins/codecompletion/classbrowserbuilderthread.h
- @@ -36,7 +36,7 @@ class ClassBrowserBuilderThread : public wxThread
- ClassBrowserBuilderThread(wxEvtHandler* evtHandler, wxSemaphore& sem);
-
- /** destructor */
- - virtual ~ClassBrowserBuilderThread();
- + ~ClassBrowserBuilderThread() override;
-
- // Called from external:
- void Init(NativeParser* np, CCTreeCtrl* treeTop, CCTreeCtrl* treeBottom,
- @@ -68,7 +68,7 @@ class ClassBrowserBuilderThread : public wxThread
- void RequestTermination(bool terminate = true) { m_TerminationRequested = terminate; }
-
- protected:
- - virtual void* Entry();
- + void* Entry() override;
-
- // Called from Entry():
- void BuildTree();
- diff --git a/src/plugins/codecompletion/codecompletion.h b/src/plugins/codecompletion/codecompletion.h
- index fb0976bf0..83cc146b3 100644
- --- a/src/plugins/codecompletion/codecompletion.h
- +++ b/src/plugins/codecompletion/codecompletion.h
- @@ -82,34 +82,34 @@ class CodeCompletion : public cbCodeCompletionPlugin
- /** Constructor */
- CodeCompletion();
- /** Destructor */
- - virtual ~CodeCompletion();
- + ~CodeCompletion() override;
-
- // the function below were virtual functions from the base class
- - virtual void OnAttach();
- - virtual void OnRelease(bool appShutDown);
- - virtual int GetConfigurationGroup() const { return cgEditor; }
- + void OnAttach() override;
- + void OnRelease(bool appShutDown) override;
- + int GetConfigurationGroup() const override { return cgEditor; }
-
- /** CC's config dialog */
- - virtual cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
- + cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) override;
- /** CC's config dialog which show in the project options panel */
- - virtual cbConfigurationPanel* GetProjectConfigurationPanel(wxWindow* parent, cbProject* project);
- + cbConfigurationPanel* GetProjectConfigurationPanel(wxWindow* parent, cbProject* project) override;
- /** build menus in the main frame */
- - virtual void BuildMenu(wxMenuBar* menuBar);
- + void BuildMenu(wxMenuBar* menuBar) override;
- /** build context popup menu */
- - virtual void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0);
- + void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0) override;
- /** build CC Toolbar */
- - virtual bool BuildToolBar(wxToolBar* toolBar);
- + bool BuildToolBar(wxToolBar* toolBar) override;
- /** toolbar priority value */
- - virtual int GetToolBarPriority() { return 10; }
- + int GetToolBarPriority() override { return 10; }
-
- // override virtual functions in cbCodeCompletionPlugin class
- - virtual CCProviderStatus GetProviderStatusFor(cbEditor* ed);
- - virtual std::vector<CCToken> GetAutocompList(bool isAuto, cbEditor* ed, int& tknStart, int& tknEnd);
- - virtual std::vector<CCCallTip> GetCallTips(int pos, int style, cbEditor* ed, int& argsPos);
- - virtual wxString GetDocumentation(const CCToken& token);
- - virtual std::vector<CCToken> GetTokenAt(int pos, cbEditor* ed, bool& allowCallTip);
- - virtual wxString OnDocumentationLink(wxHtmlLinkEvent& event, bool& dismissPopup);
- - virtual void DoAutocomplete(const CCToken& token, cbEditor* ed);
- + CCProviderStatus GetProviderStatusFor(cbEditor* ed) override;
- + std::vector<CCToken> GetAutocompList(bool isAuto, cbEditor* ed, int& tknStart, int& tknEnd) override;
- + std::vector<CCCallTip> GetCallTips(int pos, int style, cbEditor* ed, int& argsPos) override;
- + wxString GetDocumentation(const CCToken& token) override;
- + std::vector<CCToken> GetTokenAt(int pos, cbEditor* ed, bool& allowCallTip) override;
- + wxString OnDocumentationLink(wxHtmlLinkEvent& event, bool& dismissPopup) override;
- + void DoAutocomplete(const CCToken& token, cbEditor* ed) override;
-
- /** Get the include paths setting (usually set by user for each C::B project).
- * If it finds some system level include search dirs which haven't been scanned, it will start a
- diff --git a/src/plugins/codecompletion/parser/parser.h b/src/plugins/codecompletion/parser/parser.h
- index 70796fcb9..ab2f7add4 100644
- --- a/src/plugins/codecompletion/parser/parser.h
- +++ b/src/plugins/codecompletion/parser/parser.h
- @@ -125,82 +125,83 @@ class Parser : public ParserBase
- */
- Parser(wxEvtHandler* parent, cbProject* project);
- /** destructor */
- - virtual ~Parser();
- + ~Parser() override;
-
- /** Add files to batch parse mode, internally. The files will be parsed sequentially.
- * @param filenames input files name array
- */
- - virtual void AddBatchParse(const StringList& filenames);
- + void AddBatchParse(const StringList& filenames) override;
-
- /** Add one file to Batch mode Parsing, this is the bridge between the main thread and the
- * thread pool, after this function call, the file(Parserthread) will be run from the thread
- * pool.
- * @param filenames input file name
- */
- - virtual void AddParse(const wxString& filename);
- + void AddParse(const wxString& filename) override;
-
- /** set the predefined macro definition string was collected from the GCC command line,
- * this function adds the string to an internal m_PredefinedMacros, and switch the ParserState
- */
- - virtual void AddPredefinedMacros(const wxString& defs);
- + void AddPredefinedMacros(const wxString& defs) override;
-
- /** clears the list of predefined macros after it has been parsed */
- virtual void ClearPredefinedMacros();
-
- /** return the predefined macro definition string that has been collected */
- - virtual const wxString GetPredefinedMacros() const;
- + const wxString GetPredefinedMacros() const override;
-
- /** set the associated C::B project pointer. (only used by one parser for whole workspace)
- * @return true if it can do the switch, other wise, return false, and print some debug logs.
- */
- - virtual bool UpdateParsingProject(cbProject* project);
- + bool UpdateParsingProject(cbProject* project) override;
-
- /** Must add a locker before call all named ParseBufferXXX functions, ParseBuffer function will
- * directly run the parsing in the same thread as the caller. So, take care if the time is limited.
- * this function usually used to parse the function body to fetch the local variable information.
- */
- - virtual bool ParseBuffer(const wxString& buffer, bool isLocal, bool bufferSkipBlocks = false,
- - bool isTemp = false, const wxString& filename = wxEmptyString,
- - int parentIdx = -1, int initLine = 0);
- + bool ParseBuffer(const wxString& buffer, bool isLocal, bool bufferSkipBlocks = false,
- + bool isTemp = false, const wxString& filename = wxEmptyString,
- + int parentIdx = -1, int initLine = 0) override;
-
- /** parser the current editor control, this function is used to list all the functions in the
- * current code editor
- */
- - virtual bool ParseBufferForFunctions(const wxString& buffer);
- + bool ParseBufferForFunctions(const wxString& buffer) override;
-
- /** parse the buffer for collecting exposed namespace scopes*/
- - virtual bool ParseBufferForNamespaces(const wxString& buffer, NameSpaceVec& result);
- + bool ParseBufferForNamespaces(const wxString& buffer, NameSpaceVec& result) override;
-
- /** parse the buffer for collecting using namespace directive*/
- - virtual bool ParseBufferForUsingNamespace(const wxString& buffer, wxArrayString& result, bool bufferSkipBlocks = true);
- + bool ParseBufferForUsingNamespace(const wxString& buffer, wxArrayString& result,
- + bool bufferSkipBlocks = true) override;
-
- /** mark this file to be re-parsed in the TokenTree, tick the reparse timer, note it looks like
- * the isLocal parameter is not used in Parser::Reparse function.
- * A better function name could be: MarkFileNeedToBeReParsed()
- */
- - virtual bool Reparse(const wxString& filename, bool isLocal = true);
- + bool Reparse(const wxString& filename, bool isLocal = true) override;
-
- /** this usually happens when user adds some files to an existing project, it just use AddParse()
- * function internally to add the file. and switch the ParserState to ParserCommon::ptAddFileToParser.
- */
- - virtual bool AddFile(const wxString& filename, cbProject* project, bool isLocal = true);
- + bool AddFile(const wxString& filename, cbProject* project, bool isLocal = true) override;
-
- /** this usually happens when the user removes a file from the existing project, it will remove
- * all the tokens belong to the file.
- */
- - virtual bool RemoveFile(const wxString& filename);
- + bool RemoveFile(const wxString& filename) override;
-
- /** check to see a file is parsed already, it first check the TokenTree to see whether it has
- * the specified file, but if a file is already queued (put in m_BatchParseFiles), we regard it
- * as already parsed.
- */
- - virtual bool IsFileParsed(const wxString& filename);
- + bool IsFileParsed(const wxString& filename) override;
-
- /** check to see whether Parser is in Idle mode, there is no work need to be done in the Parser*/
- - virtual bool Done();
- + bool Done() override;
-
- /** if the Parser is not in Idle mode, show which need to be done */
- - virtual wxString NotDoneReason();
- + wxString NotDoneReason() override;
-
- protected:
- // used for measuring the batch parsing time
- @@ -258,9 +259,9 @@ class Parser : public ParserBase
- void ProcessParserEvent(ParserCommon::ParserState state, int id, const wxString& info = wxEmptyString);
-
- /** read Parser options from configure file */
- - virtual void ReadOptions();
- + void ReadOptions() override;
- /** write Parse options to configure file */
- - virtual void WriteOptions();
- + void WriteOptions() override;
-
- private:
- /** the only usage of this function is in the Parserthread class, when handling include directives
- @@ -273,7 +274,7 @@ class Parser : public ParserBase
- * the locked should be set as false, but if you want to recursive parse to an include file
- * the locked value should be set as true.
- */
- - virtual bool ParseFile(const wxString& filename, bool isGlobal, bool locked = false);
- + bool ParseFile(const wxString& filename, bool isGlobal, bool locked = false) override;
-
- /** connect event handlers of the timers and thread pool */
- void ConnectEvents();
- diff --git a/src/plugins/codecompletion/parser/parserthread.h b/src/plugins/codecompletion/parser/parserthread.h
- index 5747d394f..26eec7dd3 100644
- --- a/src/plugins/codecompletion/parser/parserthread.h
- +++ b/src/plugins/codecompletion/parser/parserthread.h
- @@ -185,7 +185,7 @@ class ParserThread : public cbThreadedTask
- * often happens when user open a project. Every parserthread task will firstly be added to the thread pool, later
- * called automatically from the thread pool.
- */
- - int Execute()
- + int Execute() override
- {
- CC_LOCKER_TRACK_TT_MTX_LOCK(s_TokenTreeMutex)
-
- diff --git a/src/plugins/codecompletion/parser/parserthreadedtask.h b/src/plugins/codecompletion/parser/parserthreadedtask.h
- index f71141a82..5bd8e028a 100644
- --- a/src/plugins/codecompletion/parser/parserthreadedtask.h
- +++ b/src/plugins/codecompletion/parser/parserthreadedtask.h
- @@ -26,7 +26,7 @@ class ParserThreadedTask : public cbThreadedTask
- // run sequence parsing jobs in a single thread, those include
- // 1, parsing predefined macro buffers
- // 2, parsing project files(mainly the implementation source files)
- - virtual int Execute();
- + int Execute() override;
-
- private:
- Parser* m_Parser; /// a Parser object which contain TokenTree
- @@ -43,7 +43,7 @@ class MarkFileAsLocalThreadedTask : public cbThreadedTask
- public:
- MarkFileAsLocalThreadedTask(Parser* parser, cbProject* project);
-
- - virtual int Execute();
- + int Execute() override;
-
- private:
- Parser* m_Parser; /// a Parser object which contain TokenTree
- diff --git a/src/plugins/codecompletion/parser/searchtree.h b/src/plugins/codecompletion/parser/searchtree.h
- index 418f6fa4f..6db13cc66 100644
- --- a/src/plugins/codecompletion/parser/searchtree.h
- +++ b/src/plugins/codecompletion/parser/searchtree.h
- @@ -375,10 +375,10 @@ template <class T> class SearchTree : public BasicSearchTree
- {
- public:
- SearchTree();
- - virtual ~SearchTree();
- - virtual void clear(); /// Clears the tree
- - size_t GetCount() const; /// Gets the number of items stored
- - virtual size_t size() const; /// Same as GetCount
- + ~SearchTree() override;
- + void clear() override; /// Clears the tree
- + size_t GetCount() const override; /// Gets the number of items stored
- + size_t size() const override; /// Same as GetCount
- bool SaveCacheTo(const wxString& filename); /// Stores the Tree and items into a file
- bool LoadCacheFrom(const wxString& filename); /// Loads the Tree and items from a file
- wxString Serialize();
- diff --git a/src/plugins/codecompletion/systemheadersthread.h b/src/plugins/codecompletion/systemheadersthread.h
- index fd6955e10..9e6ac1f99 100644
- --- a/src/plugins/codecompletion/systemheadersthread.h
- +++ b/src/plugins/codecompletion/systemheadersthread.h
- @@ -35,9 +35,9 @@ class SystemHeadersThread : public wxThread
- public:
- SystemHeadersThread(wxEvtHandler* parent, wxCriticalSection* critSect,
- SystemHeadersMap& headersMap, const wxArrayString& incDirs);
- - virtual ~SystemHeadersThread();
- + ~SystemHeadersThread() override;
-
- - virtual void* Entry();
- + void* Entry() override;
-
- private:
- wxEvtHandler* m_Parent; /// this is the target the thread will sent any event to
- diff --git a/src/plugins/compilergcc/advancedcompileroptionsdlg.h b/src/plugins/compilergcc/advancedcompileroptionsdlg.h
- index 1ded3feaa..0e29770de 100644
- --- a/src/plugins/compilergcc/advancedcompileroptionsdlg.h
- +++ b/src/plugins/compilergcc/advancedcompileroptionsdlg.h
- @@ -17,7 +17,7 @@ class AdvancedCompilerOptionsDlg : public wxScrollingDialog
- {
- public:
- AdvancedCompilerOptionsDlg(wxWindow* parent, const wxString& compilerId);
- - virtual ~AdvancedCompilerOptionsDlg();
- + ~AdvancedCompilerOptionsDlg() override;
- bool IsDirty() const {return m_bDirty;}
- private:
- void OnCommandsChange(wxCommandEvent& event);
- @@ -32,7 +32,7 @@ class AdvancedCompilerOptionsDlg : public wxScrollingDialog
- void OnRegexUp(wxSpinEvent& event);
- void OnRegexDown(wxSpinEvent& event);
-
- - void EndModal(int retCode);
- + void EndModal(int retCode) override;
- void ReadCompilerOptions();
- void WriteCompilerOptions();
- void ReadExtensions(int nr);
- diff --git a/src/plugins/compilergcc/compilerCYGWIN.h b/src/plugins/compilergcc/compilerCYGWIN.h
- index d24ec4cfd..93ec9bd11 100644
- --- a/src/plugins/compilergcc/compilerCYGWIN.h
- +++ b/src/plugins/compilergcc/compilerCYGWIN.h
- @@ -12,10 +12,10 @@ class CompilerCYGWIN : public CompilerMINGW
- {
- public:
- CompilerCYGWIN();
- - ~CompilerCYGWIN();
- - virtual AutoDetectResult AutoDetectInstallationDir();
- + ~CompilerCYGWIN() override;
- + AutoDetectResult AutoDetectInstallationDir() override;
- protected:
- - virtual Compiler* CreateCopy();
- + Compiler* CreateCopy() override;
- private:
-
- };
- diff --git a/src/plugins/compilergcc/compilerG95.h b/src/plugins/compilergcc/compilerG95.h
- index 52cffed16..ba594b8cf 100644
- --- a/src/plugins/compilergcc/compilerG95.h
- +++ b/src/plugins/compilergcc/compilerG95.h
- @@ -13,10 +13,10 @@ class CompilerG95 : public Compiler
- {
- public:
- CompilerG95();
- - virtual ~CompilerG95();
- - virtual AutoDetectResult AutoDetectInstallationDir();
- + ~CompilerG95() override;
- + AutoDetectResult AutoDetectInstallationDir() override;
- protected:
- - virtual Compiler* CreateCopy();
- + Compiler* CreateCopy() override;
- private:
- };
-
- diff --git a/src/plugins/compilergcc/compilerGDC.h b/src/plugins/compilergcc/compilerGDC.h
- index fb3786382..b2b9598e0 100644
- --- a/src/plugins/compilergcc/compilerGDC.h
- +++ b/src/plugins/compilergcc/compilerGDC.h
- @@ -12,10 +12,10 @@ class CompilerGDC : public Compiler
- {
- public:
- CompilerGDC();
- - virtual ~CompilerGDC();
- - virtual AutoDetectResult AutoDetectInstallationDir();
- + ~CompilerGDC() override;
- + AutoDetectResult AutoDetectInstallationDir() override;
- protected:
- - virtual Compiler* CreateCopy();
- + Compiler* CreateCopy() override;
- private:
- };
-
- diff --git a/src/plugins/compilergcc/compilerGNUARM.h b/src/plugins/compilergcc/compilerGNUARM.h
- index 101d3c25b..899a77205 100644
- --- a/src/plugins/compilergcc/compilerGNUARM.h
- +++ b/src/plugins/compilergcc/compilerGNUARM.h
- @@ -12,10 +12,10 @@ class CompilerGNUARM : public Compiler
- {
- public:
- CompilerGNUARM();
- - virtual ~CompilerGNUARM();
- - virtual AutoDetectResult AutoDetectInstallationDir();
- + ~CompilerGNUARM() override;
- + AutoDetectResult AutoDetectInstallationDir() override;
- protected:
- - virtual Compiler* CreateCopy();
- + Compiler* CreateCopy() override;
- private:
- };
-
- diff --git a/src/plugins/compilergcc/compilerGNUFortran.h b/src/plugins/compilergcc/compilerGNUFortran.h
- index 38bc1a6ca..4a7807f90 100644
- --- a/src/plugins/compilergcc/compilerGNUFortran.h
- +++ b/src/plugins/compilergcc/compilerGNUFortran.h
- @@ -12,10 +12,10 @@ class CompilerGNUFortran : public Compiler
- {
- public:
- CompilerGNUFortran();
- - virtual ~CompilerGNUFortran();
- - virtual AutoDetectResult AutoDetectInstallationDir();
- + ~CompilerGNUFortran() override;
- + AutoDetectResult AutoDetectInstallationDir() override;
- protected:
- - virtual Compiler* CreateCopy();
- + Compiler* CreateCopy() override;
- private:
- };
-
- diff --git a/src/plugins/compilergcc/compilerIAR.h b/src/plugins/compilergcc/compilerIAR.h
- index fafc3618e..1400bc5b1 100644
- --- a/src/plugins/compilergcc/compilerIAR.h
- +++ b/src/plugins/compilergcc/compilerIAR.h
- @@ -12,10 +12,10 @@ class CompilerIAR : public Compiler
- {
- public:
- CompilerIAR(wxString arch);
- - virtual ~CompilerIAR();
- - virtual AutoDetectResult AutoDetectInstallationDir();
- + ~CompilerIAR() override;
- + AutoDetectResult AutoDetectInstallationDir() override;
- protected:
- - virtual Compiler* CreateCopy();
- + Compiler* CreateCopy() override;
- wxString m_Arch;
- private:
- };
- diff --git a/src/plugins/compilergcc/compilerICC.h b/src/plugins/compilergcc/compilerICC.h
- index 6123d9b4d..cc3afbb1f 100644
- --- a/src/plugins/compilergcc/compilerICC.h
- +++ b/src/plugins/compilergcc/compilerICC.h
- @@ -16,10 +16,10 @@ class CompilerICC : public Compiler
- {
- public:
- CompilerICC();
- - virtual ~CompilerICC();
- - virtual AutoDetectResult AutoDetectInstallationDir();
- + ~CompilerICC() override;
- + AutoDetectResult AutoDetectInstallationDir() override;
- protected:
- - virtual Compiler* CreateCopy();
- + Compiler* CreateCopy() override;
- private:
- };
-
- diff --git a/src/plugins/compilergcc/compilerKeilC51.h b/src/plugins/compilergcc/compilerKeilC51.h
- index e8088809e..a76b2d60a 100644
- --- a/src/plugins/compilergcc/compilerKeilC51.h
- +++ b/src/plugins/compilergcc/compilerKeilC51.h
- @@ -12,11 +12,11 @@ class CompilerKeilC51 : public Compiler
- {
- public:
- CompilerKeilC51();
- - virtual ~CompilerKeilC51();
- - virtual AutoDetectResult AutoDetectInstallationDir();
- + ~CompilerKeilC51() override;
- + AutoDetectResult AutoDetectInstallationDir() override;
- protected:
- CompilerKeilC51(const wxString& name, const wxString& ID);
- - virtual Compiler* CreateCopy();
- + Compiler* CreateCopy() override;
- AutoDetectResult AutoDetectInstallationDir(bool keilx);
- private:
- };
- @@ -25,9 +25,9 @@ class CompilerKeilCX51 : public CompilerKeilC51
- {
- public:
- CompilerKeilCX51();
- - virtual ~CompilerKeilCX51();
- + ~CompilerKeilCX51() override;
- protected:
- - virtual Compiler* CreateCopy();
- + Compiler* CreateCopy() override;
- private:
- };
-
- diff --git a/src/plugins/compilergcc/compilerLCC.h b/src/plugins/compilergcc/compilerLCC.h
- index aa496f9f1..063d8a19d 100644
- --- a/src/plugins/compilergcc/compilerLCC.h
- +++ b/src/plugins/compilergcc/compilerLCC.h
- @@ -7,14 +7,14 @@ class CompilerLCC : public Compiler
- {
- public:
- CompilerLCC();
- - virtual ~CompilerLCC();
- + ~CompilerLCC() override;
- #ifdef __WXMSW__
- - virtual bool IsValid();
- + bool IsValid() override;
- #endif // __WXMSW__
- - virtual void Reset();
- - virtual AutoDetectResult AutoDetectInstallationDir();
- + void Reset() override;
- + AutoDetectResult AutoDetectInstallationDir() override;
- protected:
- - virtual Compiler* CreateCopy();
- + Compiler* CreateCopy() override;
- private:
- bool m_RegistryUpdated;
- };
- diff --git a/src/plugins/compilergcc/compilerMINGW.h b/src/plugins/compilergcc/compilerMINGW.h
- index 9c04e2b22..7d5c47171 100644
- --- a/src/plugins/compilergcc/compilerMINGW.h
- +++ b/src/plugins/compilergcc/compilerMINGW.h
- @@ -15,12 +15,12 @@ class CompilerMINGW : public Compiler
- // added arguments to ctor so we can derive other gcc-flavours directly
- // from MinGW (e.g. the cygwin compiler is derived from this one).
- CompilerMINGW(const wxString& name = _("GNU GCC Compiler"), const wxString& ID = _T("gcc"));
- - virtual ~CompilerMINGW();
- - virtual AutoDetectResult AutoDetectInstallationDir();
- - virtual CompilerCommandGenerator* GetCommandGenerator(cbProject *project);
- + ~CompilerMINGW() override;
- + AutoDetectResult AutoDetectInstallationDir() override;
- + CompilerCommandGenerator* GetCommandGenerator(cbProject *project) override;
- protected:
- - virtual Compiler* CreateCopy();
- - virtual void SetVersionString();
- + Compiler* CreateCopy() override;
- + void SetVersionString() override;
- private:
- };
-
- diff --git a/src/plugins/compilergcc/compilerMSVC.h b/src/plugins/compilergcc/compilerMSVC.h
- index d84ed4d14..5b9eb572b 100644
- --- a/src/plugins/compilergcc/compilerMSVC.h
- +++ b/src/plugins/compilergcc/compilerMSVC.h
- @@ -12,10 +12,10 @@ class CompilerMSVC : public Compiler
- {
- public:
- CompilerMSVC();
- - virtual ~CompilerMSVC();
- - virtual AutoDetectResult AutoDetectInstallationDir();
- + ~CompilerMSVC() override;
- + AutoDetectResult AutoDetectInstallationDir() override;
- protected:
- - Compiler * CreateCopy();
- + Compiler * CreateCopy() override;
- private:
- };
-
- diff --git a/src/plugins/compilergcc/compilerMSVC10.h b/src/plugins/compilergcc/compilerMSVC10.h
- index d2bbb5b7f..346fcc8d3 100644
- --- a/src/plugins/compilergcc/compilerMSVC10.h
- +++ b/src/plugins/compilergcc/compilerMSVC10.h
- @@ -12,11 +12,11 @@ class CompilerMSVC10 : public Compiler
- {
- public:
- CompilerMSVC10();
- - virtual ~CompilerMSVC10();
- - virtual AutoDetectResult AutoDetectInstallationDir();
- + ~CompilerMSVC10() override;
- + AutoDetectResult AutoDetectInstallationDir() override;
-
- protected:
- - Compiler* CreateCopy();
- + Compiler* CreateCopy() override;
- };
-
- #endif // COMPILERMSVC10_H_
- diff --git a/src/plugins/compilergcc/compilerMSVC8.h b/src/plugins/compilergcc/compilerMSVC8.h
- index 7345b64a4..81aef9358 100644
- --- a/src/plugins/compilergcc/compilerMSVC8.h
- +++ b/src/plugins/compilergcc/compilerMSVC8.h
- @@ -12,10 +12,10 @@ class CompilerMSVC8 : public Compiler
- {
- public:
- CompilerMSVC8();
- - virtual ~CompilerMSVC8();
- - virtual AutoDetectResult AutoDetectInstallationDir();
- + ~CompilerMSVC8() override;
- + AutoDetectResult AutoDetectInstallationDir() override;
- protected:
- - Compiler * CreateCopy();
- + Compiler * CreateCopy() override;
- private:
- };
-
- diff --git a/src/plugins/compilergcc/compilerOW.h b/src/plugins/compilergcc/compilerOW.h
- index 8e0c9a417..734b43fa3 100644
- --- a/src/plugins/compilergcc/compilerOW.h
- +++ b/src/plugins/compilergcc/compilerOW.h
- @@ -12,14 +12,14 @@ class CompilerOW : public Compiler
- {
- public:
- CompilerOW();
- - virtual ~CompilerOW();
- - virtual AutoDetectResult AutoDetectInstallationDir();
- + ~CompilerOW() override;
- + AutoDetectResult AutoDetectInstallationDir() override;
-
- - virtual void LoadSettings(const wxString& baseKey);
- - virtual void SetMasterPath(const wxString& path);
- - virtual CompilerCommandGenerator* GetCommandGenerator(cbProject *project);
- + void LoadSettings(const wxString& baseKey) override;
- + void SetMasterPath(const wxString& path) override;
- + CompilerCommandGenerator* GetCommandGenerator(cbProject *project) override;
- protected:
- - Compiler * CreateCopy();
- + Compiler * CreateCopy() override;
- private:
- };
-
- diff --git a/src/plugins/compilergcc/compilerXML.h b/src/plugins/compilergcc/compilerXML.h
- index af0665e74..db2aca08c 100644
- --- a/src/plugins/compilergcc/compilerXML.h
- +++ b/src/plugins/compilergcc/compilerXML.h
- @@ -9,12 +9,12 @@ class CompilerXML : public Compiler
- {
- public:
- CompilerXML(const wxString& name, const wxString& ID, const wxString& file);
- - virtual ~CompilerXML();
- + ~CompilerXML() override;
-
- - virtual AutoDetectResult AutoDetectInstallationDir();
- + AutoDetectResult AutoDetectInstallationDir() override;
-
- protected:
- - virtual Compiler* CreateCopy();
- + Compiler* CreateCopy() override;
-
- private:
-
- diff --git a/src/plugins/compilergcc/compilerflagdlg.h b/src/plugins/compilergcc/compilerflagdlg.h
- index f356c6cd3..761ea78fb 100644
- --- a/src/plugins/compilergcc/compilerflagdlg.h
- +++ b/src/plugins/compilergcc/compilerflagdlg.h
- @@ -13,9 +13,9 @@ class CompilerFlagDlg: public wxDialog
- public:
-
- CompilerFlagDlg(wxWindow* parent, CompOption* opt, wxArrayString& categ, const wxString &selectedCategory);
- - virtual ~CompilerFlagDlg();
- + virtual ~CompilerFlagDlg() override;
-
- - void EndModal(int retCode);
- + void EndModal(int retCode) override;
-
- protected:
-
- diff --git a/src/plugins/compilergcc/compilergcc.h b/src/plugins/compilergcc/compilergcc.h
- index 36abee10b..11fd30122 100644
- --- a/src/plugins/compilergcc/compilergcc.h
- +++ b/src/plugins/compilergcc/compilergcc.h
- @@ -89,40 +89,40 @@ class CompilerGCC : public cbCompilerPlugin
- {
- public:
- CompilerGCC();
- - virtual ~CompilerGCC();
- + ~CompilerGCC() override;
-
- - virtual void OnAttach();
- - virtual void OnRelease(bool appShutDown);
- - virtual void BuildMenu(wxMenuBar* menuBar); // offer for menu space by host
- - virtual void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0); // offer for menu space by a module
- - virtual bool BuildToolBar(wxToolBar* toolBar);
- - virtual int GetToolBarPriority() { return 1; }
- + void OnAttach() override;
- + void OnRelease(bool appShutDown) override;
- + void BuildMenu(wxMenuBar* menuBar) override; // offer for menu space by host
- + void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0) override; // offer for menu space by a module
- + bool BuildToolBar(wxToolBar* toolBar) override;
- + int GetToolBarPriority() override { return 1; }
-
- - virtual int Run(ProjectBuildTarget* target = 0L);
- - virtual int Run(const wxString& target);
- + int Run(ProjectBuildTarget* target = 0L) override;
- + int Run(const wxString& target) override;
- virtual int RunSingleFile(const wxString& filename);
- - virtual int Clean(const wxString& target);
- - virtual int Clean(ProjectBuildTarget* target = 0L);
- - virtual int DistClean(ProjectBuildTarget* target = 0L);
- - virtual int DistClean(const wxString& target);
- - virtual int Build(ProjectBuildTarget* target = 0L);
- - virtual int Build(const wxString& target);
- - virtual int Rebuild(ProjectBuildTarget* target = 0L);
- - virtual int Rebuild(const wxString& target);
- - virtual int CleanWorkspace(const wxString& target = wxEmptyString);
- - virtual int BuildWorkspace(const wxString& target = wxEmptyString);
- - virtual int RebuildWorkspace(const wxString& target = wxEmptyString);
- - virtual int CompileFile(const wxString& file);
- + int Clean(const wxString& target) override;
- + int Clean(ProjectBuildTarget* target = 0L) override;
- + int DistClean(ProjectBuildTarget* target = 0L) override;
- + int DistClean(const wxString& target) override;
- + int Build(ProjectBuildTarget* target = 0L) override;
- + int Build(const wxString& target) override;
- + int Rebuild(ProjectBuildTarget* target = 0L) override;
- + int Rebuild(const wxString& target) override;
- + int CleanWorkspace(const wxString& target = wxEmptyString) override;
- + int BuildWorkspace(const wxString& target = wxEmptyString) override;
- + int RebuildWorkspace(const wxString& target = wxEmptyString) override;
- + int CompileFile(const wxString& file) override;
- virtual int CompileFileWithoutProject(const wxString& file);
- virtual int CompileFileDefault(cbProject* project, ProjectFile* pf, ProjectBuildTarget* bt);
- - virtual int KillProcess();
- - virtual bool IsRunning() const;
- - virtual int GetExitCode() const { return m_LastExitCode; }
- - virtual int Configure(cbProject* project, ProjectBuildTarget* target, wxWindow *parent);
- -
- - int GetConfigurationPriority() const { return 0; }
- - int GetConfigurationGroup() const { return cgCompiler; }
- - cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
- + int KillProcess() override;
- + bool IsRunning() const override;
- + int GetExitCode() const override { return m_LastExitCode; }
- + int Configure(cbProject* project, ProjectBuildTarget* target, wxWindow *parent) override;
- +
- + int GetConfigurationPriority() const override { return 0; }
- + int GetConfigurationGroup() const override { return cgCompiler; }
- + cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) override;
-
- bool IsValidTarget(const wxString& target) const;
-
- diff --git a/src/plugins/compilergcc/compilermessages.h b/src/plugins/compilergcc/compilermessages.h
- index 130c7caca..19b338cd7 100644
- --- a/src/plugins/compilergcc/compilermessages.h
- +++ b/src/plugins/compilergcc/compilermessages.h
- @@ -20,13 +20,13 @@ class CompilerMessages : public wxEvtHandler, public ListCtrlLogger
- virtual void SetCompilerErrors(CompilerErrors* errors){ m_pErrors = errors; }
- virtual void FocusError(int nr);
-
- - void AutoFitColumns(int column);
- + void AutoFitColumns(int column) override;
-
- - virtual wxWindow* CreateControl(wxWindow* parent);
- + wxWindow* CreateControl(wxWindow* parent) override;
- void DestroyControls();
-
- - virtual bool HasFeature(Feature::Enum feature) const;
- - virtual void AppendAdditionalMenuItems(wxMenu &menu);
- + bool HasFeature(Feature::Enum feature) const override;
- + void AppendAdditionalMenuItems(wxMenu &menu) override;
- private:
- void OnClick(wxCommandEvent& event);
- void OnDoubleClick(wxCommandEvent& event);
- diff --git a/src/plugins/compilergcc/compileroptionsdlg.h b/src/plugins/compilergcc/compileroptionsdlg.h
- index 756370fc3..fa90a947e 100644
- --- a/src/plugins/compilergcc/compileroptionsdlg.h
- +++ b/src/plugins/compilergcc/compileroptionsdlg.h
- @@ -29,12 +29,12 @@ class CompilerOptionsDlg : public cbConfigurationPanel
- {
- public:
- CompilerOptionsDlg(wxWindow* parent, CompilerGCC* compiler, cbProject* project = 0L, ProjectBuildTarget* target = 0L);
- - ~CompilerOptionsDlg();
- + ~CompilerOptionsDlg() override;
-
- - virtual wxString GetTitle() const { return _("Global compiler settings"); }
- - virtual wxString GetBitmapBaseName() const { return _T("compiler"); }
- - virtual void OnApply();
- - virtual void OnCancel(){}
- + wxString GetTitle() const override { return _("Global compiler settings"); }
- + wxString GetBitmapBaseName() const override { return _T("compiler"); }
- + void OnApply() override;
- + void OnCancel() override {}
- private:
- enum CustomVarActionType
- {
- diff --git a/src/plugins/debuggergdb/cdb_commands.h b/src/plugins/debuggergdb/cdb_commands.h
- index 617a05480..bb71a11d5 100644
- --- a/src/plugins/debuggergdb/cdb_commands.h
- +++ b/src/plugins/debuggergdb/cdb_commands.h
- @@ -49,7 +49,7 @@ class CdbCmd_AddSourceDir : public DebuggerCmd
- {
- m_Cmd << _T("directory ") << dir;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // Output:
- // Warning: C:\Devel\tmp\console\111: No such file or directory.
- @@ -71,7 +71,7 @@ class CdbCmd_SetDebuggee : public DebuggerCmd
- {
- m_Cmd << _T("file ") << file;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // Output:
- // Reading symbols from C:\Devel\tmp\console/console.exe...done.
- @@ -95,7 +95,7 @@ class CdbCmd_AddSymbolFile : public DebuggerCmd
- {
- m_Cmd << _T("add-symbol-file ") << file;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // Output:
- //
- @@ -123,7 +123,7 @@ class CdbCmd_SetArguments : public DebuggerCmd
- {
- m_Cmd << _T("set args ") << args;
- }
- - void ParseOutput(cb_unused const wxString& output)
- + void ParseOutput(cb_unused const wxString& output) override
- {
- // No output
- }
- @@ -141,7 +141,7 @@ class CdbCmd_GetPID : public DebuggerCmd
- {
- m_Cmd << _T("|.");
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // Output:
- // <decimal process num> id: <hex PID> create name: <process name>
- @@ -177,7 +177,7 @@ class CdbCmd_AttachToProcess : public DebuggerCmd
- {
- m_Cmd << _T("attach ") << wxString::Format(_T("%d"), pid);
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // Output:
- // Attaching to process <pid>
- @@ -214,7 +214,7 @@ class CdbCmd_Detach : public DebuggerCmd
- {
- m_Cmd << _T(".detach");
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // output any return, usually "Detached"
- m_pDriver->Log(output);
- @@ -232,7 +232,7 @@ class CdbCmd_Continue : public DebuggerContinueBaseCmd
- : DebuggerContinueBaseCmd(driver,_T("g"))
- {
- }
- - virtual void Action()
- + void Action() override
- {
- m_pDriver->NotifyDebuggeeContinued();
- }
- @@ -269,7 +269,7 @@ class CdbCmd_AddBreakpoint : public DebuggerCmd
- bp->alreadySet = true;
- }
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // possible outputs (only output lines starting with ***):
- //
- @@ -305,7 +305,7 @@ class CdbCmd_RemoveBreakpoint : public DebuggerCmd
- else
- m_Cmd << _T("bc ") << wxString::Format(_T("%d"), (int) bp->index);
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // usually no output, so display whatever comes in
- if (!output.IsEmpty())
- @@ -331,7 +331,7 @@ class CdbCmd_Watch : public DebuggerCmd
- m_Cmd << wxT("?? ") << symbol;
- }
-
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- if(!ParseCDBWatchValue(m_watch, output))
- {
- @@ -365,7 +365,7 @@ class CdbCmd_TooltipEvaluation : public DebuggerCmd
- {
- m_Cmd << _T("?? ") << what;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // struct HWND__ * 0x7ffd8000
- //
- @@ -407,7 +407,7 @@ class CdbCmd_Backtrace : public DebuggerCmd
- {
- m_Cmd << _T("k n");
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // output is:
- // # ChildEBP RetAddr
- @@ -486,7 +486,7 @@ class CdbCmd_SwitchFrame : public DebuggerCmd
- m_Cmd = wxString::Format(wxT(".frame %d"), frameNumber);
- }
-
- - virtual void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- wxArrayString lines = GetArrayFromString(output, wxT('\n'));
-
- @@ -529,7 +529,7 @@ class CdbCmd_InfoRegisters : public DebuggerCmd
- {
- m_Cmd << _T("r");
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // output is:
- //
- @@ -564,7 +564,7 @@ class CdbCmd_Disassembly : public DebuggerCmd
- {
- m_Cmd << _T("uf ") << StopAddress;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // output is a series of:
- //
- @@ -601,7 +601,7 @@ class CdbCmd_DisassemblyInit : public DebuggerCmd
- // print stack frame and nearest symbol (start of function)
- m_Cmd << _T("k n 1; ln");
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // m_pDriver->QueueCommand(new CdbCmd_Disassembly(m_pDriver, m_pDlg, StopAddress)); // chain call
-
- diff --git a/src/plugins/debuggergdb/cdb_driver.h b/src/plugins/debuggergdb/cdb_driver.h
- index 014b33f3c..e0a23f82c 100644
- --- a/src/plugins/debuggergdb/cdb_driver.h
- +++ b/src/plugins/debuggergdb/cdb_driver.h
- @@ -12,60 +12,61 @@ class CDB_driver : public DebuggerDriver
- {
- public:
- CDB_driver(DebuggerGDB* plugin);
- - virtual ~CDB_driver();
- + ~CDB_driver() override;
-
- - virtual wxString GetCommandLine(const wxString& debugger,
- - const wxString& debuggee,
- - const wxString &userArguments);
- - virtual wxString GetCommandLine(const wxString& debugger, int pid, const wxString &userArguments);
- - virtual void SetTarget(ProjectBuildTarget* target);
- - virtual void Prepare(bool isConsole, int printElements, const RemoteDebugging &remoteDebugging);
- - virtual void Start(bool breakOnEntry);
- - virtual void Stop();
- + wxString GetCommandLine(const wxString& debugger, const wxString& debuggee,
- + const wxString &userArguments) override;
- + wxString GetCommandLine(const wxString& debugger, int pid,
- + const wxString &userArguments) override;
- + void SetTarget(ProjectBuildTarget* target) override;
- + void Prepare(bool isConsole, int printElements,
- + const RemoteDebugging &remoteDebugging) override;
- + void Start(bool breakOnEntry) override;
- + void Stop() override;
-
- - virtual void Continue();
- - virtual void Step();
- - virtual void StepInstruction();
- - virtual void StepIntoInstruction();
- - virtual void StepIn();
- - virtual void StepOut();
- - virtual void SetNextStatement(const wxString& filename, int line);
- - virtual void Backtrace();
- - virtual void Disassemble();
- - virtual void CPURegisters();
- - virtual void SwitchToFrame(size_t number);
- - virtual void SetVarValue(const wxString& var, const wxString& value);
- - virtual void SetMemoryRangeValue(uint64_t addr, const wxString& value);
- - virtual void MemoryDump();
- - virtual void Attach(int pid);
- - virtual void Detach();
- - virtual void RunningThreads();
- + void Continue() override;
- + void Step() override;
- + void StepInstruction() override;
- + void StepIntoInstruction() override;
- + void StepIn() override;
- + void StepOut() override;
- + void SetNextStatement(const wxString& filename, int line) override;
- + void Backtrace() override;
- + void Disassemble() override;
- + void CPURegisters() override;
- + void SwitchToFrame(size_t number) override;
- + void SetVarValue(const wxString& var, const wxString& value) override;
- + void SetMemoryRangeValue(uint64_t addr, const wxString& value) override;
- + void MemoryDump() override;
- + void Attach(int pid) override;
- + void Detach() override;
- + void RunningThreads() override;
-
- - void InfoFrame();
- - void InfoDLL();
- - void InfoFiles();
- - void InfoFPU();
- - void InfoSignals();
- + void InfoFrame() override;
- + void InfoDLL() override;
- + void InfoFiles() override;
- + void InfoFPU() override;
- + void InfoSignals() override;
-
- - void EnableCatchingThrow(bool enable);
- + void EnableCatchingThrow(bool enable) override;
-
- - virtual void SwitchThread(cb_unused size_t threadIndex){} // not implemented
- + void SwitchThread(cb_unused size_t threadIndex) override {} // not implemented
-
- - virtual void AddBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp);
- - virtual void RemoveBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp);
- - virtual void EvaluateSymbol(const wxString& symbol, const wxRect& tipRect);
- - virtual void UpdateWatches(cb::shared_ptr<GDBWatch> localsWatch,
- - cb::shared_ptr<GDBWatch> funcArgsWatch,
- - WatchesContainer &watches, bool ignoreAutoUpdate);
- - virtual void UpdateWatch(cb::shared_ptr<GDBWatch> const &watch);
- - virtual void UpdateMemoryRangeWatches(MemoryRangeWatchesContainer &watches,
- - bool ignoreAutoUpdate);
- - virtual void UpdateMemoryRangeWatch(const cb::shared_ptr<GDBMemoryRangeWatch> &watch);
- - virtual void UpdateWatchLocalsArgs(cb::shared_ptr<GDBWatch> const &watch, bool locals);
- - virtual void ParseOutput(const wxString& output);
- - virtual bool IsDebuggingStarted() const;
- + void AddBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp) override;
- + void RemoveBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp) override;
- + void EvaluateSymbol(const wxString& symbol, const wxRect& tipRect) override;
- + void UpdateWatches(cb::shared_ptr<GDBWatch> localsWatch,
- + cb::shared_ptr<GDBWatch> funcArgsWatch,
- + WatchesContainer &watches, bool ignoreAutoUpdate) override;
- + void UpdateWatch(cb::shared_ptr<GDBWatch> const &watch) override;
- + void UpdateMemoryRangeWatches(MemoryRangeWatchesContainer &watches,
- + bool ignoreAutoUpdate) override;
- + void UpdateMemoryRangeWatch(const cb::shared_ptr<GDBMemoryRangeWatch> &watch) override;
- + void UpdateWatchLocalsArgs(cb::shared_ptr<GDBWatch> const &watch, bool locals) override;
- + void ParseOutput(const wxString& output) override;
- + bool IsDebuggingStarted() const override;
- #ifdef __WXMSW__
- - virtual bool UseDebugBreakProcess() { return true; }
- + bool UseDebugBreakProcess() override { return true; }
- #endif
- protected:
- private:
- diff --git a/src/plugins/debuggergdb/debugger_defs.h b/src/plugins/debuggergdb/debugger_defs.h
- index 4564f364f..d73f0768c 100644
- --- a/src/plugins/debuggergdb/debugger_defs.h
- +++ b/src/plugins/debuggergdb/debugger_defs.h
- @@ -95,9 +95,9 @@ class DebuggerInfoCmd : public DebuggerCmd
- {
- m_Cmd = cmd;
- }
- - virtual ~DebuggerInfoCmd(){}
- + ~DebuggerInfoCmd() override {}
-
- - virtual void ParseOutput(const wxString& output);
- + void ParseOutput(const wxString& output) override;
- wxString m_Title;
- };
-
- @@ -110,7 +110,7 @@ class DebuggerContinueBaseCmd : public DebuggerCmd
- {
- }
-
- - bool IsContinueCommand() const { return true; }
- + bool IsContinueCommand() const override { return true; }
- };
-
- /** Action-only debugger command to signal the watches tree to update. */
- @@ -160,15 +160,15 @@ struct DebuggerBreakpoint : cbBreakpoint
- {}
-
- // from cbBreakpoint
- - virtual void SetEnabled(bool flag);
- - virtual wxString GetLocation() const;
- - virtual int GetLine() const;
- - virtual wxString GetLineString() const;
- - virtual wxString GetType() const;
- - virtual wxString GetInfo() const;
- - virtual bool IsEnabled() const;
- - virtual bool IsVisibleInEditor() const;
- - virtual bool IsTemporary() const;
- + void SetEnabled(bool flag) override;
- + wxString GetLocation() const override;
- + int GetLine() const override;
- + wxString GetLineString() const override;
- + wxString GetType() const override;
- + wxString GetInfo() const override;
- + bool IsEnabled() const override;
- + bool IsVisibleInEditor() const override;
- + bool IsTemporary() const override;
-
- BreakpointType type; ///< The type of this breakpoint.
- wxString filename; ///< The filename for the breakpoint (kept as relative).
- @@ -217,17 +217,17 @@ class GDBWatch : public cbWatch
- {
- public:
- GDBWatch(wxString const &symbol);
- - virtual ~GDBWatch();
- + ~GDBWatch() override;
- public:
-
- - virtual void GetSymbol(wxString &symbol) const;
- - virtual void GetValue(wxString &value) const;
- - virtual bool SetValue(const wxString &value);
- - virtual void GetFullWatchString(wxString &full_watch) const;
- - virtual void GetType(wxString &type) const;
- - virtual void SetType(const wxString &type);
- + void GetSymbol(wxString &symbol) const override;
- + void GetValue(wxString &value) const override;
- + bool SetValue(const wxString &value) override;
- + void GetFullWatchString(wxString &full_watch) const override;
- + void GetType(wxString &type) const override;
- + void SetType(const wxString &type) override;
-
- - virtual wxString GetDebugString() const;
- + wxString GetDebugString() const override;
-
- wxString MakeSymbolToAddress() const override;
- bool IsPointerType() const override;
- diff --git a/src/plugins/debuggergdb/debuggergdb.h b/src/plugins/debuggergdb/debuggergdb.h
- index f862685cc..89df6f42f 100644
- --- a/src/plugins/debuggergdb/debuggergdb.h
- +++ b/src/plugins/debuggergdb/debuggergdb.h
- @@ -34,90 +34,92 @@ class DebuggerGDB : public cbDebuggerPlugin
- DebuggerState m_State;
- public:
- DebuggerGDB();
- - ~DebuggerGDB();
- + ~DebuggerGDB() override;
-
- - cbConfigurationPanel* GetProjectConfigurationPanel(wxWindow* parent, cbProject* project);
- - void OnAttachReal(); // fires when the plugin is attached to the application
- - void OnReleaseReal(bool appShutDown); // fires when the plugin is released from the application
- + cbConfigurationPanel* GetProjectConfigurationPanel(wxWindow* parent,
- + cbProject* project) override;
- + void OnAttachReal() override; // fires when the plugin is attached to the application
- + void OnReleaseReal(bool appShutDown) override; // fires when the plugin is released from the application
-
- - bool SupportsFeature(cbDebuggerFeature::Flags flag);
- + bool SupportsFeature(cbDebuggerFeature::Flags flag) override;
-
- - cbDebuggerConfiguration* LoadConfig(const ConfigManagerWrapper &config);
- + cbDebuggerConfiguration* LoadConfig(const ConfigManagerWrapper &config) override;
-
- DebuggerConfiguration& GetActiveConfigEx();
-
- void RunCommand(int cmd);
-
- - cb::shared_ptr<cbBreakpoint> AddBreakpoint(const wxString& filename, int line);
- - cb::shared_ptr<cbBreakpoint> AddDataBreakpoint(const wxString& dataExpression);
- - int GetBreakpointsCount() const;
- - cb::shared_ptr<cbBreakpoint> GetBreakpoint(int index);
- - cb::shared_ptr<const cbBreakpoint> GetBreakpoint(int index) const;
- - void UpdateBreakpoint(cb::shared_ptr<cbBreakpoint> breakpoint);
- - void DeleteBreakpoint(cb::shared_ptr<cbBreakpoint> breakpoint);
- - void DeleteAllBreakpoints();
- - void ShiftBreakpoint(int index, int lines_to_shift);
- - void EnableBreakpoint(cb::shared_ptr<cbBreakpoint> breakpoint, bool enable);
- + cb::shared_ptr<cbBreakpoint> AddBreakpoint(const wxString& filename, int line) override;
- + cb::shared_ptr<cbBreakpoint> AddDataBreakpoint(const wxString& dataExpression) override;
- + int GetBreakpointsCount() const override;
- + cb::shared_ptr<cbBreakpoint> GetBreakpoint(int index) override;
- + cb::shared_ptr<const cbBreakpoint> GetBreakpoint(int index) const override;
- + void UpdateBreakpoint(cb::shared_ptr<cbBreakpoint> breakpoint) override;
- + void DeleteBreakpoint(cb::shared_ptr<cbBreakpoint> breakpoint) override;
- + void DeleteAllBreakpoints() override;
- + void ShiftBreakpoint(int index, int lines_to_shift) override;
- + void EnableBreakpoint(cb::shared_ptr<cbBreakpoint> breakpoint, bool enable) override;
-
- // stack frame calls;
- - int GetStackFrameCount() const;
- - cb::shared_ptr<const cbStackFrame> GetStackFrame(int index) const;
- - void SwitchToFrame(int number);
- - int GetActiveStackFrame() const;
- + int GetStackFrameCount() const override;
- + cb::shared_ptr<const cbStackFrame> GetStackFrame(int index) const override;
- + void SwitchToFrame(int number) override;
- + int GetActiveStackFrame() const override;
-
- // threads
- - int GetThreadsCount() const;
- - cb::shared_ptr<const cbThread> GetThread(int index) const;
- - bool SwitchToThread(int thread_number);
- -
- - bool Debug(bool breakOnEntry);
- - void Continue();
- - void Next();
- - void NextInstruction();
- - void StepIntoInstruction();
- - void Step();
- - void StepOut();
- - bool RunToCursor(const wxString& filename, int line, const wxString& line_text);
- - void SetNextStatement(const wxString& filename, int line);
- - void Break();
- - void Stop();
- + int GetThreadsCount() const override;
- + cb::shared_ptr<const cbThread> GetThread(int index) const override;
- + bool SwitchToThread(int thread_number) override;
- +
- + bool Debug(bool breakOnEntry) override;
- + void Continue() override;
- + void Next() override;
- + void NextInstruction() override;
- + void StepIntoInstruction() override;
- + void Step() override;
- + void StepOut() override;
- + bool RunToCursor(const wxString& filename, int line, const wxString& line_text) override;
- + void SetNextStatement(const wxString& filename, int line) override;
- + void Break() override;
- + void Stop() override;
- bool Validate(const wxString& line, const char cb);
- - bool IsRunning() const { return m_pProcess; }
- - bool IsStopped() const;
- - bool IsBusy() const;
- + bool IsRunning() const override { return m_pProcess; }
- + bool IsStopped() const override;
- + bool IsBusy() const override;
- bool IsTemporaryBreak() const {return m_TemporaryBreak;}
- - int GetExitCode() const { return m_LastExitCode; }
- + int GetExitCode() const override { return m_LastExitCode; }
-
- - cb::shared_ptr<cbWatch> AddWatch(const wxString& symbol, bool update);
- + cb::shared_ptr<cbWatch> AddWatch(const wxString& symbol, bool update) override;
- cb::shared_ptr<cbWatch> AddMemoryRange(uint64_t address, uint64_t size,
- - const wxString &symbol, bool update);
- - void DeleteWatch(cb::shared_ptr<cbWatch> watch);
- - bool HasWatch(cb::shared_ptr<cbWatch> watch);
- + const wxString &symbol, bool update) override;
- + void DeleteWatch(cb::shared_ptr<cbWatch> watch) override;
- + bool HasWatch(cb::shared_ptr<cbWatch> watch) override;
- bool IsMemoryRangeWatch(const cb::shared_ptr<cbWatch> &watch);
- - void ShowWatchProperties(cb::shared_ptr<cbWatch> watch);
- - bool SetWatchValue(cb::shared_ptr<cbWatch> watch, const wxString &value);
- - void ExpandWatch(cb::shared_ptr<cbWatch> watch);
- - void CollapseWatch(cb::shared_ptr<cbWatch> watch);
- - void UpdateWatch(cb::shared_ptr<cbWatch> watch);
- - void UpdateWatches(const std::vector<cb::shared_ptr<cbWatch>> &watches);
- + void ShowWatchProperties(cb::shared_ptr<cbWatch> watch) override;
- + bool SetWatchValue(cb::shared_ptr<cbWatch> watch, const wxString &value) override;
- + void ExpandWatch(cb::shared_ptr<cbWatch> watch) override;
- + void CollapseWatch(cb::shared_ptr<cbWatch> watch) override;
- + void UpdateWatch(cb::shared_ptr<cbWatch> watch) override;
- + void UpdateWatches(const std::vector<cb::shared_ptr<cbWatch>> &watches) override;
-
- void AddWatchNoUpdate(const cb::shared_ptr<GDBWatch> &watch);
-
- - void OnWatchesContextMenu(wxMenu &menu, const cbWatch &watch, wxObject *property, int &disabledMenus);
- + void OnWatchesContextMenu(wxMenu &menu, const cbWatch &watch, wxObject *property,
- + int &disabledMenus) override;
-
- - void GetCurrentPosition(wxString &filename, int &line);
- - void RequestUpdate(DebugWindows window);
- + void GetCurrentPosition(wxString &filename, int &line) override;
- + void RequestUpdate(DebugWindows window) override;
-
- - void AttachToProcess(const wxString& pid);
- - void DetachFromProcess();
- - bool IsAttachedToProcess() const;
- + void AttachToProcess(const wxString& pid) override;
- + void DetachFromProcess() override;
- + bool IsAttachedToProcess() const override;
-
- - void SendCommand(const wxString& cmd, bool debugLog);
- + void SendCommand(const wxString& cmd, bool debugLog) override;
- void DoSendCommand(const wxString& cmd);
-
- DebuggerState& GetState(){ return m_State; }
-
- - void OnConfigurationChange(bool isActive);
- + void OnConfigurationChange(bool isActive) override;
-
- static wxArrayString ParseSearchDirs(const cbProject &project);
- static void SetSearchDirs(cbProject &project, const wxArrayString &dirs);
- @@ -125,8 +127,8 @@ class DebuggerGDB : public cbDebuggerPlugin
- static RemoteDebuggingMap ParseRemoteDebuggingMap(cbProject &project);
- static void SetRemoteDebuggingMap(cbProject &project, const RemoteDebuggingMap &map);
-
- - void OnValueTooltip(const wxString &token, const wxRect &evalRect);
- - bool ShowValueTooltip(int style);
- + void OnValueTooltip(const wxString &token, const wxRect &evalRect) override;
- + bool ShowValueTooltip(int style) override;
-
- static void ConvertToGDBFriendly(wxString& str);
- static void ConvertToGDBFile(wxString& str);
- @@ -138,11 +140,11 @@ class DebuggerGDB : public cbDebuggerPlugin
- void DetermineLanguage();
-
- protected:
- - cbProject* GetProject() { return m_pProject; }
- - void ResetProject() { m_pProcess = NULL; }
- - void ConvertDirectory(wxString& str, wxString base, bool relative);
- - void CleanupWhenProjectClosed(cbProject *project);
- - bool CompilerFinished(bool compilerFailed, StartType startType);
- + cbProject* GetProject() override { return m_pProject; }
- + void ResetProject() override { m_pProcess = NULL; }
- + void ConvertDirectory(wxString& str, wxString base, bool relative) override;
- + void CleanupWhenProjectClosed(cbProject *project) override;
- + bool CompilerFinished(bool compilerFailed, StartType startType) override;
- protected:
- void AddSourceDir(const wxString& dir);
- private:
- @@ -166,7 +168,7 @@ class DebuggerGDB : public cbDebuggerPlugin
- void OnShowFile(wxCommandEvent& event);
- void OnCursorChanged(wxCommandEvent& event);
-
- - void SetupToolsMenu(wxMenu &menu);
- + void SetupToolsMenu(wxMenu &menu) override;
- void KillConsole();
- void CheckIfConsoleIsClosed();
-
- diff --git a/src/plugins/debuggergdb/debuggeroptionsdlg.h b/src/plugins/debuggergdb/debuggeroptionsdlg.h
- index 1b358a209..f5bad3db0 100644
- --- a/src/plugins/debuggergdb/debuggeroptionsdlg.h
- +++ b/src/plugins/debuggergdb/debuggeroptionsdlg.h
- @@ -15,9 +15,9 @@ class DebuggerConfiguration : public cbDebuggerConfiguration
- public:
- explicit DebuggerConfiguration(const ConfigManagerWrapper &config);
-
- - virtual cbDebuggerConfiguration* Clone() const;
- - virtual wxPanel* MakePanel(wxWindow *parent);
- - virtual bool SaveChanges(wxPanel *panel);
- + cbDebuggerConfiguration* Clone() const override;
- + wxPanel* MakePanel(wxWindow *parent) override;
- + bool SaveChanges(wxPanel *panel) override;
- public:
- enum Flags
- {
- diff --git a/src/plugins/debuggergdb/debuggeroptionsprjdlg.h b/src/plugins/debuggergdb/debuggeroptionsprjdlg.h
- index 70aa74bef..5ceb14244 100644
- --- a/src/plugins/debuggergdb/debuggeroptionsprjdlg.h
- +++ b/src/plugins/debuggergdb/debuggeroptionsprjdlg.h
- @@ -21,12 +21,12 @@ class DebuggerOptionsProjectDlg : public cbConfigurationPanel
- {
- public:
- DebuggerOptionsProjectDlg(wxWindow* parent, DebuggerGDB* debugger, cbProject* project);
- - virtual ~DebuggerOptionsProjectDlg();
- + ~DebuggerOptionsProjectDlg() override;
-
- - virtual wxString GetTitle() const { return _("Debugger"); }
- - virtual wxString GetBitmapBaseName() const { return _T("debugger"); }
- - virtual void OnApply();
- - virtual void OnCancel(){}
- + wxString GetTitle() const override { return _("Debugger"); }
- + wxString GetBitmapBaseName() const override { return _T("debugger"); }
- + void OnApply() override;
- + void OnCancel() override {}
- protected:
- void OnTargetSel(wxCommandEvent& event);
- void OnAdd(wxCommandEvent& event);
- diff --git a/src/plugins/debuggergdb/editbreakpointdlg.h b/src/plugins/debuggergdb/editbreakpointdlg.h
- index a1949a61d..054485c3f 100644
- --- a/src/plugins/debuggergdb/editbreakpointdlg.h
- +++ b/src/plugins/debuggergdb/editbreakpointdlg.h
- @@ -13,12 +13,12 @@ class EditBreakpointDlg : public wxScrollingDialog
- {
- public:
- EditBreakpointDlg(const DebuggerBreakpoint &breakpoint, wxWindow* parent = 0);
- - virtual ~EditBreakpointDlg();
- + ~EditBreakpointDlg() override;
-
- const DebuggerBreakpoint& GetBreakpoint() const { return m_breakpoint; }
- protected:
- void OnUpdateUI(wxUpdateUIEvent& event);
- - void EndModal(int retCode);
- + void EndModal(int retCode) override;
-
- DebuggerBreakpoint m_breakpoint;
- private:
- diff --git a/src/plugins/debuggergdb/editwatchdlg.h b/src/plugins/debuggergdb/editwatchdlg.h
- index c157009e7..561dcbc87 100644
- --- a/src/plugins/debuggergdb/editwatchdlg.h
- +++ b/src/plugins/debuggergdb/editwatchdlg.h
- @@ -14,10 +14,10 @@ class EditWatchDlg : public wxScrollingDialog
- {
- public:
- EditWatchDlg(cb::shared_ptr<GDBWatch> w, wxWindow* parent);
- - virtual ~EditWatchDlg();
- + ~EditWatchDlg() override;
-
- protected:
- - void EndModal(int retCode);
- + void EndModal(int retCode) override;
-
- cb::shared_ptr<GDBWatch> m_watch;
- };
- diff --git a/src/plugins/debuggergdb/gdb_commands.h b/src/plugins/debuggergdb/gdb_commands.h
- index bceb51ada..cd564b29c 100644
- --- a/src/plugins/debuggergdb/gdb_commands.h
- +++ b/src/plugins/debuggergdb/gdb_commands.h
- @@ -232,7 +232,7 @@ class GdbCmd_AddSourceDir : public DebuggerCmd
- {
- m_Cmd << _T("directory ") << dir;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // Output:
- // Warning: C:\Devel\tmp\console\111: No such file or directory.
- @@ -254,7 +254,7 @@ class GdbCmd_SetDebuggee : public DebuggerCmd
- {
- m_Cmd << _T("file ") << file;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // Output:
- // Reading symbols from C:\Devel\tmp\console/console.exe...done.
- @@ -278,7 +278,7 @@ class GdbCmd_AddSymbolFile : public DebuggerCmd
- {
- m_Cmd << _T("add-symbol-file ") << file;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // Output:
- //
- @@ -306,7 +306,7 @@ class GdbCmd_SetArguments : public DebuggerCmd
- {
- m_Cmd << _T("set args ") << args;
- }
- - void ParseOutput(cb_unused const wxString& output)
- + void ParseOutput(cb_unused const wxString& output) override
- {
- // No output
- }
- @@ -325,7 +325,7 @@ class GdbCmd_AttachToProcess : public DebuggerCmd
- m_Cmd << _T("attach ") << wxString::Format(_T("%d"), pid);
- m_pDriver->Log(wxString::Format(_("Attaching to program with pid: %d"), pid));
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // Output:
- // Attaching to process <pid>
- @@ -364,7 +364,7 @@ class GdbCmd_Detach : public DebuggerCmd
- {
- m_Cmd << _T("detach");
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // Output:
- // Attaching to process <pid>
- @@ -397,7 +397,7 @@ class GdbCmd_AddBreakpointCondition : public DebuggerCmd
- if (m_BP->useCondition)
- m_Cmd << _T(" ") << m_BP->condition;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- if (output.StartsWith(_T("No symbol ")))
- {
- @@ -478,7 +478,7 @@ class GdbCmd_AddBreakpoint : public DebuggerCmd
- // condition and ignore count will be set in ParseOutput, where we 'll have the bp number
- }
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // possible outputs (we 're only interested in 1st and 2nd samples):
- //
- @@ -564,7 +564,7 @@ class GdbCmd_AddDataBreakpoint : public DebuggerCmd
- if (m_BP->enabled)
- m_Cmd << _T("output &") << m_BP->breakAddress;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // Hardware watchpoint 1: expr
- if (output.StartsWith(_T("No symbol ")) || output.StartsWith(_T("Attempt to ")))
- @@ -605,7 +605,7 @@ class GdbCmd_RemoveBreakpoint : public DebuggerCmd
- m_Cmd << _T("delete breakpoints ") << wxString::Format(_T("%d"), (int) bp->index);
- }
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- if (!m_BP)
- return;
- @@ -643,7 +643,7 @@ class GdbCmd_SetCatch : public DebuggerCmd
- m_Cmd = wxT("catch ") + type;
- }
-
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- if (m_regExp.Matches(output))
- {
- @@ -666,7 +666,7 @@ class GdbCmd_Continue : public DebuggerContinueBaseCmd
- {
- }
-
- - virtual void Action()
- + void Action() override
- {
- m_pDriver->NotifyDebuggeeContinued();
- }
- @@ -680,7 +680,7 @@ class GdbCmd_Start : public DebuggerContinueBaseCmd
- {
- }
-
- - virtual void ParseOutput(const wxString &output)
- + void ParseOutput(const wxString &output) override
- {
- const wxArrayString &lines = GetArrayFromString(output, _T('\n'));
- for (size_t ii = 0; ii < lines.GetCount(); ++ii)
- @@ -710,7 +710,7 @@ class GdbCmd_InfoProgram : public DebuggerCmd
- {
- m_Cmd << _T("info program");
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- wxString pid_str;
- if (reInfoProgramThread.Matches(output))
- @@ -739,7 +739,7 @@ class GdbCmd_Threads : public DebuggerCmd
- {
- m_Cmd << _T("info threads");
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- m_pDriver->GetThreads().clear();
- wxArrayString lines = GetArrayFromString(output, _T('\n'));
- @@ -831,7 +831,7 @@ class GdbCmd_Watch : public DebuggerCmd
- m_Cmd << symbol;
- }
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- wxString w = output;
- w.Trim(true);
- @@ -873,7 +873,7 @@ class GdbCmd_MemoryRangeWatch : public DebuggerCmd
- m_Cmd = wxString(wxT("x /")) << wxString::FromUTF8(tmpSize) << wxT("xb ") << wxString::FromUTF8(tmpAddr);
- }
-
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- wxArrayString lines = GetArrayFromString(output, _T('\n'));
- wxString addr;
- @@ -915,7 +915,7 @@ class GdbCmd_FindWatchType : public DebuggerCmd
- m_watch->GetSymbol(symbol);
- m_Cmd << symbol;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // happens, when wxString is passed as const reference parameter
- if (m_firstTry && output == wxT("Attempt to take contents of a non-pointer value."))
- @@ -988,7 +988,7 @@ class GdbCmd_TooltipEvaluation : public DebuggerCmd
- m_Cmd << wxT("output ");
- m_Cmd << m_What;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- wxString contents = output;
- contents.Trim(true);
- @@ -1044,7 +1044,7 @@ class GdbCmd_FindTooltipAddress : public DebuggerCmd
- m_Cmd << _T('&');
- m_Cmd << m_What;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // examples:
- // type = wxString
- @@ -1087,7 +1087,7 @@ class GdbCmd_FindTooltipType : public DebuggerCmd
- {
- singleUsage = false;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // examples:
- // type = wxString
- @@ -1119,7 +1119,7 @@ class GdbCmd_LocalsFuncArgs : public DebuggerCmd
- else
- m_Cmd = wxT("info args");
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- if ((m_doLocals && output == wxT("No locals.")) || (!m_doLocals && output == wxT("No arguments.")))
- {
- @@ -1158,7 +1158,7 @@ class GdbCmd_ChangeFrame : public DebuggerCmd
- {
- m_Cmd << _T("frame ") << frameno;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- m_pDriver->Log(output);
- }
- @@ -1175,7 +1175,7 @@ class GdbCmd_Backtrace : public DebuggerCmd
- {
- m_Cmd << _T("bt 30");
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- int validFrameNumber = -1;
- cbStackFrame validSF;
- @@ -1321,7 +1321,7 @@ class GdbCmd_InfoRegisters : public DebuggerCmd
- m_Cmd << _T("info registers");
- };
-
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // output is a series of:
- //
- @@ -1468,7 +1468,7 @@ class GdbCmd_Disassembly : public DebuggerCmd
- else
- m_Cmd << wxT(" 0x") << hexAddrStr;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // output for "disassemble" is a series of:
- //
- @@ -1559,7 +1559,7 @@ class GdbCmd_DisassemblyInit : public DebuggerCmd
- m_Cmd << _T("info frame\n") << _T("end\n");
- };
-
- - void ParseOutput(const wxString& p_output)
- + void ParseOutput(const wxString& p_output) override
- {
- cbDisassemblyDlg *dialog = Manager::Get()->GetDebuggerManager()->GetDisassemblyDialog();
-
- @@ -1652,7 +1652,7 @@ class GdbCmd_ExamineMemory : public DebuggerCmd
- const wxString &address = CleanStringValue(dialog->GetBaseAddress());
- m_Cmd.Printf(_T("x/%dxb %s"), dialog->GetBytes(), address.c_str());
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- cbExamineMemoryDlg *dialog = Manager::Get()->GetDebuggerManager()->GetExamineMemoryDialog();
-
- @@ -1693,7 +1693,7 @@ class GdbCmd_RemoteBaud : public DebuggerCmd
- m_Cmd << _T("set remotebaud ") << baud;
- driver->Log(_("Setting serial connection speed to ") + baud);
- }
- - void ParseOutput(cb_unused const wxString& output)
- + void ParseOutput(cb_unused const wxString& output) override
- {
- }
- };
- @@ -1738,7 +1738,7 @@ class GdbCmd_RemoteTarget : public DebuggerCmd
- else
- m_pDriver->Log(_("Invalid settings for remote debugging!"));
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- // This command will either output an error or a breakpoint address info
- // Connection errors are of the form:
- @@ -1802,7 +1802,7 @@ class GdbCmd_StepOrNextInstruction : public DebuggerContinueBaseCmd
- {
- m_Cmd << command;
- }
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- DebuggerManager *manager = Manager::Get()->GetDebuggerManager();
- if (!manager->UpdateDisassembly())
- @@ -1867,7 +1867,7 @@ class GdbCmd_FindCursor : public DebuggerCmd
- {
- }
-
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- const wxArrayString &lines = GetArrayFromString(output, _T('\n'));
- if (lines.Count() <= 2)
- @@ -1915,7 +1915,7 @@ class GdbCmd_DebugLanguage : public DebuggerCmd
- m_Cmd << _T("show language");
- }
-
- - void ParseOutput(const wxString& output)
- + void ParseOutput(const wxString& output) override
- {
- if (output.Lower().Find(wxT("fortran")) != wxNOT_FOUND)
- g_DebugLanguage = dl_Fortran;
- diff --git a/src/plugins/debuggergdb/gdb_driver.h b/src/plugins/debuggergdb/gdb_driver.h
- index e3617cffb..16ecb6e92 100644
- --- a/src/plugins/debuggergdb/gdb_driver.h
- +++ b/src/plugins/debuggergdb/gdb_driver.h
- @@ -14,62 +14,62 @@ class GDB_driver : public DebuggerDriver
- {
- public:
- GDB_driver(DebuggerGDB* plugin);
- - virtual ~GDB_driver();
- -
- - virtual wxString GetCommandLine(const wxString& debugger,
- - const wxString& debuggee,
- - const wxString &userArguments);
- - virtual wxString GetCommandLine(const wxString& debugger, int pid, const wxString &userArguments);
- - virtual void SetTarget(ProjectBuildTarget* target);
- - virtual void Prepare(bool isConsole, int printElements, const RemoteDebugging &remoteDebugging);
- - virtual void Start(bool breakOnEntry);
- - virtual void Stop();
- -
- - virtual void Continue();
- - virtual void Step();
- - virtual void StepInstruction();
- - virtual void StepIntoInstruction();
- - virtual void StepIn();
- - virtual void StepOut();
- - virtual void SetNextStatement(const wxString& filename, int line);
- - virtual void Backtrace();
- - virtual void Disassemble();
- - virtual void CPURegisters();
- - virtual void SwitchToFrame(size_t number);
- - virtual void SetVarValue(const wxString& var, const wxString& value);
- - virtual void SetMemoryRangeValue(uint64_t addr, const wxString& value);
- - virtual void MemoryDump();
- - virtual void Attach(int pid);
- - virtual void Detach();
- - virtual void RunningThreads();
- -
- - void InfoFrame();
- - void InfoDLL();
- - void InfoFiles();
- - void InfoFPU();
- - void InfoSignals();
- -
- - void EnableCatchingThrow(bool enable);
- -
- - virtual void SwitchThread(size_t threadIndex);
- -
- - virtual void AddBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp);
- - virtual void RemoveBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp);
- - virtual void EvaluateSymbol(const wxString& symbol, const wxRect& tipRect);
- - virtual void UpdateWatches(cb::shared_ptr<GDBWatch> localsWatch,
- - cb::shared_ptr<GDBWatch> funcArgsWatch,
- - WatchesContainer &watches, bool ignoreAutoUpdate);
- - virtual void UpdateMemoryRangeWatches(MemoryRangeWatchesContainer &watches,
- - bool ignoreAutoUpdate);
- - virtual void UpdateWatch(const cb::shared_ptr<GDBWatch> &watch);
- - virtual void UpdateMemoryRangeWatch(const cb::shared_ptr<GDBMemoryRangeWatch> &watch);
- - virtual void UpdateWatchLocalsArgs(cb::shared_ptr<GDBWatch> const &watch, bool locals);
- - virtual void ParseOutput(const wxString& output);
- - virtual bool IsDebuggingStarted() const { return m_IsStarted; }
- -
- - virtual void DetermineLanguage();
- + ~GDB_driver() override;
- +
- + wxString GetCommandLine(const wxString& debugger, const wxString& debuggee,
- + const wxString &userArguments) override;
- + wxString GetCommandLine(const wxString& debugger, int pid,
- + const wxString &userArguments) override;
- + void SetTarget(ProjectBuildTarget* target) override;
- + void Prepare(bool isConsole, int printElements, const RemoteDebugging &remoteDebugging) override;
- + void Start(bool breakOnEntry) override;
- + void Stop() override;
- +
- + void Continue() override;
- + void Step() override;
- + void StepInstruction() override;
- + void StepIntoInstruction() override;
- + void StepIn() override;
- + void StepOut() override;
- + void SetNextStatement(const wxString& filename, int line) override;
- + void Backtrace() override;
- + void Disassemble() override;
- + void CPURegisters() override;
- + void SwitchToFrame(size_t number) override;
- + void SetVarValue(const wxString& var, const wxString& value) override;
- + void SetMemoryRangeValue(uint64_t addr, const wxString& value) override;
- + void MemoryDump() override;
- + void Attach(int pid) override;
- + void Detach() override;
- + void RunningThreads() override;
- +
- + void InfoFrame() override;
- + void InfoDLL() override;
- + void InfoFiles() override;
- + void InfoFPU() override;
- + void InfoSignals() override;
- +
- + void EnableCatchingThrow(bool enable) override;
- +
- + void SwitchThread(size_t threadIndex) override;
- +
- + void AddBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp) override;
- + void RemoveBreakpoint(cb::shared_ptr<DebuggerBreakpoint> bp) override;
- + void EvaluateSymbol(const wxString& symbol, const wxRect& tipRect) override;
- + void UpdateWatches(cb::shared_ptr<GDBWatch> localsWatch,
- + cb::shared_ptr<GDBWatch> funcArgsWatch, WatchesContainer &watches,
- + bool ignoreAutoUpdate) override;
- + void UpdateMemoryRangeWatches(MemoryRangeWatchesContainer &watches,
- + bool ignoreAutoUpdate) override;
- + void UpdateWatch(const cb::shared_ptr<GDBWatch> &watch) override;
- + void UpdateMemoryRangeWatch(const cb::shared_ptr<GDBMemoryRangeWatch> &watch) override;
- + void UpdateWatchLocalsArgs(cb::shared_ptr<GDBWatch> const &watch, bool locals) override;
- + void ParseOutput(const wxString& output) override;
- + bool IsDebuggingStarted() const override { return m_IsStarted; }
- +
- + void DetermineLanguage() override;
- #ifdef __WXMSW__
- - virtual bool UseDebugBreakProcess();
- + bool UseDebugBreakProcess() override;
- #endif
- virtual wxString GetDisassemblyFlavour(void);
-
- diff --git a/src/plugins/defaultmimehandler/defaultmimehandler.h b/src/plugins/defaultmimehandler/defaultmimehandler.h
- index 916d95dee..d1cb928b5 100644
- --- a/src/plugins/defaultmimehandler/defaultmimehandler.h
- +++ b/src/plugins/defaultmimehandler/defaultmimehandler.h
- @@ -15,14 +15,14 @@ class DefaultMimeHandler : public cbMimePlugin
- {
- public:
- DefaultMimeHandler();
- - ~DefaultMimeHandler();
- - int GetConfigurationGroup() const { return cgCorePlugin; }
- - cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
- - bool HandlesEverything() const { return true; }
- - bool CanHandleFile(const wxString& filename) const;
- - int OpenFile(const wxString& filename);
- - void OnAttach(); // fires when the plugin is attached to the application
- - void OnRelease(bool appShutDown); // fires when the plugin is released from the application
- + ~DefaultMimeHandler() override;
- + int GetConfigurationGroup() const override { return cgCorePlugin; }
- + cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) override;
- + bool HandlesEverything() const override { return true; }
- + bool CanHandleFile(const wxString& filename) const override;
- + int OpenFile(const wxString& filename) override;
- + void OnAttach() override; // fires when the plugin is attached to the application
- + void OnRelease(bool appShutDown) override; // fires when the plugin is released from the application
- private:
- cbMimeType* FindMimeTypeFor(const wxString& filename);
- wxString ChooseExternalProgram();
- diff --git a/src/plugins/defaultmimehandler/editmimetypesdlg.h b/src/plugins/defaultmimehandler/editmimetypesdlg.h
- index 62f00fbae..9744a8d5d 100644
- --- a/src/plugins/defaultmimehandler/editmimetypesdlg.h
- +++ b/src/plugins/defaultmimehandler/editmimetypesdlg.h
- @@ -14,12 +14,12 @@ class EditMimeTypesDlg : public cbConfigurationPanel
- {
- public:
- EditMimeTypesDlg(wxWindow* parent, MimeTypesArray& array);
- - virtual ~EditMimeTypesDlg();
- + ~EditMimeTypesDlg() override;
-
- - virtual wxString GetTitle() const { return _("Files extension handling"); }
- - virtual wxString GetBitmapBaseName() const { return _T("extensions"); }
- - virtual void OnApply();
- - virtual void OnCancel(){}
- + wxString GetTitle() const override { return _("Files extension handling"); }
- + wxString GetBitmapBaseName() const override { return _T("extensions"); }
- + void OnApply() override;
- + void OnCancel() override {}
- private:
- void FillList();
- void UpdateDisplay();
- diff --git a/src/plugins/occurrenceshighlighting/occurrenceshighlighting.h b/src/plugins/occurrenceshighlighting/occurrenceshighlighting.h
- index 8337a4a48..675979a6d 100644
- --- a/src/plugins/occurrenceshighlighting/occurrenceshighlighting.h
- +++ b/src/plugins/occurrenceshighlighting/occurrenceshighlighting.h
- @@ -24,19 +24,20 @@ class OccurrencesHighlighting : public cbPlugin
- {
- public:
- OccurrencesHighlighting();
- - virtual ~OccurrencesHighlighting();
- + ~OccurrencesHighlighting() override;
-
- - virtual void BuildMenu(wxMenuBar* menuBar);
- - virtual void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0);
- - virtual bool BuildToolBar(cb_unused wxToolBar* toolBar){ return false; }
- - virtual cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
- - virtual int GetConfigurationPriority() const { return 50; }
- - virtual int GetConfigurationGroup() const { return cgEditor; }
- + void BuildMenu(wxMenuBar* menuBar) override;
- + void BuildModuleMenu(const ModuleType type, wxMenu* menu,
- + const FileTreeData* data = nullptr) override;
- + bool BuildToolBar(cb_unused wxToolBar* toolBar) override { return false; }
- + cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) override;
- + int GetConfigurationPriority() const override { return 50; }
- + int GetConfigurationGroup() const override { return cgEditor; }
-
-
- protected:
- - virtual void OnAttach();
- - virtual void OnRelease(bool appShutDown);
- + void OnAttach() override;
- + void OnRelease(bool appShutDown) override;
-
- private:
- void OnListKeyDown(wxListEvent &event);
- diff --git a/src/plugins/occurrenceshighlighting/occurrenceshighlightingconfigurationpanel.h b/src/plugins/occurrenceshighlighting/occurrenceshighlightingconfigurationpanel.h
- index 2b6a6b68b..bcd4c5bfc 100644
- --- a/src/plugins/occurrenceshighlighting/occurrenceshighlightingconfigurationpanel.h
- +++ b/src/plugins/occurrenceshighlighting/occurrenceshighlightingconfigurationpanel.h
- @@ -17,16 +17,16 @@ class OccurrencesHighlightingConfigurationPanel : public cbConfigurationPanel
- {
- public:
- OccurrencesHighlightingConfigurationPanel(wxWindow* parent);
- - virtual ~OccurrencesHighlightingConfigurationPanel();
- + ~OccurrencesHighlightingConfigurationPanel() override;
-
- /// @return the panel's title.
- - virtual wxString GetTitle() const;
- + wxString GetTitle() const override;
- /// @return the panel's bitmap base name. You must supply two bitmaps: \<basename\>.png and \<basename\>-off.png...
- - virtual wxString GetBitmapBaseName() const;
- + wxString GetBitmapBaseName() const override;
- /// Called when the user chooses to apply the configuration.
- - virtual void OnApply();
- + void OnApply() override;
- /// Called when the user chooses to cancel the configuration.
- - virtual void OnCancel();
- + void OnCancel() override;
-
- private:
- void OnChooseColour(wxCommandEvent& event);
- diff --git a/src/plugins/openfileslist/openfileslistplugin.h b/src/plugins/openfileslist/openfileslistplugin.h
- index 7fd7a951a..c59d67ba1 100644
- --- a/src/plugins/openfileslist/openfileslistplugin.h
- +++ b/src/plugins/openfileslist/openfileslistplugin.h
- @@ -38,14 +38,14 @@ class OpenFilesListPlugin : public cbPlugin
- {
- public:
- OpenFilesListPlugin();
- - virtual ~OpenFilesListPlugin();
- + ~OpenFilesListPlugin() override;
-
- - virtual int GetConfigurationGroup() const { return cgEditor; }
- + int GetConfigurationGroup() const override { return cgEditor; }
-
- - virtual void BuildMenu(wxMenuBar* menuBar);
- + void BuildMenu(wxMenuBar* menuBar) override;
-
- - virtual void OnAttach();
- - virtual void OnRelease(bool appShutDown);
- + void OnAttach() override;
- + void OnRelease(bool appShutDown) override;
- protected:
- int GetOpenFilesListIcon(EditorBase* ed);
- void RebuildOpenFilesTree();
- diff --git a/src/plugins/projectsimporter/devcpploader.h b/src/plugins/projectsimporter/devcpploader.h
- index ffdbebd20..3870d8d31 100644
- --- a/src/plugins/projectsimporter/devcpploader.h
- +++ b/src/plugins/projectsimporter/devcpploader.h
- @@ -15,10 +15,10 @@ class DevCppLoader : public IBaseLoader
- {
- public:
- DevCppLoader(cbProject* project);
- - virtual ~DevCppLoader();
- + ~DevCppLoader() override;
-
- - bool Open(const wxString& filename);
- - bool Save(const wxString& filename);
- + bool Open(const wxString& filename) override;
- + bool Save(const wxString& filename) override;
- protected:
- cbProject* m_pProject;
- private:
- diff --git a/src/plugins/projectsimporter/msvc10loader.h b/src/plugins/projectsimporter/msvc10loader.h
- index f1c2bab82..26ccfe137 100644
- --- a/src/plugins/projectsimporter/msvc10loader.h
- +++ b/src/plugins/projectsimporter/msvc10loader.h
- @@ -20,10 +20,10 @@ class MSVC10Loader : public IBaseLoader
- // default %(AdditionalDependencies), not sure if "winmm" and "comctl32" are part of them
- static const wxString g_AdditionalDependencies;
- MSVC10Loader(cbProject* project);
- - virtual ~MSVC10Loader();
- + ~MSVC10Loader() override;
-
- - bool Open(const wxString& filename);
- - bool Save(const wxString& filename);
- + bool Open(const wxString& filename) override;
- + bool Save(const wxString& filename) override;
- protected:
- cbProject* m_pProject;
- char m_ConvertSwitches;
- diff --git a/src/plugins/projectsimporter/msvc7loader.h b/src/plugins/projectsimporter/msvc7loader.h
- index aaf76727c..9b1743861 100644
- --- a/src/plugins/projectsimporter/msvc7loader.h
- +++ b/src/plugins/projectsimporter/msvc7loader.h
- @@ -21,10 +21,10 @@ class MSVC7Loader : public IBaseLoader
- {
- public:
- MSVC7Loader(cbProject* project);
- - virtual ~MSVC7Loader();
- + ~MSVC7Loader() override;
-
- - bool Open(const wxString& filename);
- - bool Save(const wxString& filename);
- + bool Open(const wxString& filename) override;
- + bool Save(const wxString& filename) override;
- protected:
- cbProject* m_pProject;
- bool m_ConvertSwitches;
- diff --git a/src/plugins/projectsimporter/msvc7workspaceloader.h b/src/plugins/projectsimporter/msvc7workspaceloader.h
- index 2a4a19d52..4e417383c 100644
- --- a/src/plugins/projectsimporter/msvc7workspaceloader.h
- +++ b/src/plugins/projectsimporter/msvc7workspaceloader.h
- @@ -14,10 +14,10 @@ class MSVC7WorkspaceLoader : public IBaseWorkspaceLoader, public MSVCWorkspaceBa
- public:
- static wxString g_WorkspacePath; //!< @note : maybe put into ImportersGlobals (importers_globals.h in SDK include, who ever put it there...)
- MSVC7WorkspaceLoader();
- - virtual ~MSVC7WorkspaceLoader();
- + ~MSVC7WorkspaceLoader() override;
-
- - bool Open(const wxString& filename, wxString& Title);
- - bool Save(const wxString& title, const wxString& filename);
- + bool Open(const wxString& filename, wxString& Title) override;
- + bool Save(const wxString& title, const wxString& filename) override;
- };
-
- #endif // MSVC7WORKSPACELOADER_H
- diff --git a/src/plugins/projectsimporter/msvcloader.h b/src/plugins/projectsimporter/msvcloader.h
- index 95149e83e..86958a03b 100644
- --- a/src/plugins/projectsimporter/msvcloader.h
- +++ b/src/plugins/projectsimporter/msvcloader.h
- @@ -20,10 +20,10 @@ class MSVCLoader : public IBaseLoader
- {
- public:
- MSVCLoader(cbProject* project);
- - virtual ~MSVCLoader();
- + ~MSVCLoader() override;
-
- - bool Open(const wxString& filename);
- - bool Save(const wxString& filename);
- + bool Open(const wxString& filename) override;
- + bool Save(const wxString& filename) override;
- protected:
- bool ReadConfigurations();
- bool ParseConfiguration(int index);
- diff --git a/src/plugins/projectsimporter/msvcworkspaceloader.h b/src/plugins/projectsimporter/msvcworkspaceloader.h
- index 8236fe7fe..325787807 100644
- --- a/src/plugins/projectsimporter/msvcworkspaceloader.h
- +++ b/src/plugins/projectsimporter/msvcworkspaceloader.h
- @@ -13,10 +13,10 @@ class MSVCWorkspaceLoader : public IBaseWorkspaceLoader, public MSVCWorkspaceBas
- {
- public:
- MSVCWorkspaceLoader();
- - virtual ~MSVCWorkspaceLoader();
- + ~MSVCWorkspaceLoader() override;
-
- - bool Open(const wxString& filename, wxString& Title);
- - bool Save(const wxString& title, const wxString& filename);
- + bool Open(const wxString& filename, wxString& Title) override;
- + bool Save(const wxString& title, const wxString& filename) override;
- };
-
- #endif // MSVCWORKSPACELOADER_H
- diff --git a/src/plugins/projectsimporter/projectsimporter.h b/src/plugins/projectsimporter/projectsimporter.h
- index fd580aa74..19805f4a1 100644
- --- a/src/plugins/projectsimporter/projectsimporter.h
- +++ b/src/plugins/projectsimporter/projectsimporter.h
- @@ -12,11 +12,11 @@ class ProjectsImporter : public cbMimePlugin
- {
- public:
- ProjectsImporter();
- - ~ProjectsImporter();
- - bool HandlesEverything() const { return false; }
- - bool CanHandleFile(const wxString& filename) const;
- - int OpenFile(const wxString& filename);
- - void BuildMenu(wxMenuBar* menuBar);
- + ~ProjectsImporter() override;
- + bool HandlesEverything() const override { return false; }
- + bool CanHandleFile(const wxString& filename) const override;
- + int OpenFile(const wxString& filename) override;
- + void BuildMenu(wxMenuBar* menuBar) override;
- private:
- int LoadProject(const wxString& filename);
- int LoadWorkspace(const wxString& filename);
- diff --git a/src/plugins/scriptedwizard/projectpathpanel.h b/src/plugins/scriptedwizard/projectpathpanel.h
- index aa21f8398..6822aa5a3 100644
- --- a/src/plugins/scriptedwizard/projectpathpanel.h
- +++ b/src/plugins/scriptedwizard/projectpathpanel.h
- @@ -22,7 +22,7 @@ class ProjectPathPanel: public wxPanel
- public:
-
- ProjectPathPanel(wxWindow* parent,wxWindowID id = -1);
- - virtual ~ProjectPathPanel();
- + ~ProjectPathPanel() override;
-
- void SetPath(const wxString& path)
- {
- @@ -35,7 +35,7 @@ class ProjectPathPanel: public wxPanel
- //wxString GetName(){ return txtPrjName->GetValue(); }
- // NOTE (Biplab#1#): This is a temporary fix. This function
- // need to be renamed according to it's visual representation
- - wxString GetName() const { return txtPrjTitle->GetValue(); }
- + wxString GetName() const override { return txtPrjTitle->GetValue(); }
- wxString GetFullFileName() const { return txtFinalDir->GetValue(); }
- wxString GetTitle() const { return txtPrjTitle->GetValue(); }
-
- @@ -54,7 +54,7 @@ class ProjectPathPanel: public wxPanel
-
- private:
-
- - void Update();
- + void Update() override;
- void UpdateFromResulting();
- bool m_LockUpdates;
-
- diff --git a/src/plugins/scriptedwizard/wiz.h b/src/plugins/scriptedwizard/wiz.h
- index bd6c8e65a..aaa60b554 100644
- --- a/src/plugins/scriptedwizard/wiz.h
- +++ b/src/plugins/scriptedwizard/wiz.h
- @@ -39,7 +39,7 @@ class Wiz : public cbWizardPlugin
- {
- public:
- Wiz();
- - ~Wiz();
- + ~Wiz() override;
-
- Wiz& operator=(cb_unused const Wiz& rhs) // prevent assignment operator
- {
- @@ -47,14 +47,14 @@ class Wiz : public cbWizardPlugin
- return *this;
- }
-
- - int GetCount() const;
- - TemplateOutputType GetOutputType(int index) const;
- - wxString GetTitle(int index) const;
- - wxString GetDescription(int index) const;
- - wxString GetCategory(int index) const;
- - const wxBitmap& GetBitmap(int index) const;
- - wxString GetScriptFilename(int index) const;
- - CompileTargetBase* Launch(int index, wxString* pFilename = 0);
- + int GetCount() const override;
- + TemplateOutputType GetOutputType(int index) const override;
- + wxString GetTitle(int index) const override;
- + wxString GetDescription(int index) const override;
- + wxString GetCategory(int index) const override;
- + const wxBitmap& GetBitmap(int index) const override;
- + wxString GetScriptFilename(int index) const override;
- + CompileTargetBase* Launch(int index, wxString* pFilename = 0) override;
-
- CompileTargetBase* RunProjectWizard(wxString* pFilename); // called by Launch() for otProject wizards
- CompileTargetBase* RunTargetWizard(wxString* pFilename); // called by Launch() for otTarget wizards (always returns NULL)
- @@ -171,7 +171,7 @@ class Wiz : public cbWizardPlugin
- void RegisterWizard();
- wxString FindTemplateFile(const wxString& filename);
- protected:
- - void OnAttach();
- + void OnAttach() override;
- void Clear();
- void CopyFiles(cbProject* theproject, const wxString& prjdir, const wxString& srcdir);
- wxString GenerateFile(const wxString& basePath, const wxString& filename, const wxString& contents);
- diff --git a/src/plugins/scriptedwizard/wizpage.h b/src/plugins/scriptedwizard/wizpage.h
- index 5ac6204c4..7aff6d739 100644
- --- a/src/plugins/scriptedwizard/wizpage.h
- +++ b/src/plugins/scriptedwizard/wizpage.h
- @@ -34,15 +34,15 @@ class WizPageBase : public wxWizardPageSimple
- {
- public:
- WizPageBase(const wxString& pageName, wxWizard* parent, const wxBitmap& bitmap = wxNullBitmap);
- - ~WizPageBase();
- + ~WizPageBase() override;
-
- virtual bool SkipPage() const { return m_SkipPage; } // default: false
-
- virtual void OnPageChanging(wxWizardEvent& event);
- virtual void OnPageChanged(wxWizardEvent& event);
-
- - virtual wxWizardPage* GetPrev() const;
- - virtual wxWizardPage* GetNext() const;
- + wxWizardPage* GetPrev() const override;
- + wxWizardPage* GetNext() const override;
- wxString GetPageName() const {return m_PageName;}
- bool GetSkipPage() const {return m_SkipPage;}
- void SetSkipPage(bool skip) {m_SkipPage = skip;}
- @@ -69,9 +69,9 @@ class WizInfoPanel : public WizPageBase
- {
- public:
- WizInfoPanel(const wxString& pageId, const wxString& intro_msg, wxWizard* parent, const wxBitmap& bitmap = wxNullBitmap);
- - ~WizInfoPanel();
- + ~WizInfoPanel() override;
-
- - virtual void OnPageChanging(wxWizardEvent& event);
- + void OnPageChanging(wxWizardEvent& event) override;
- private:
- InfoPanel* m_InfoPanel;
- };
- @@ -80,7 +80,7 @@ class WizFilePathPanel : public WizPageBase
- {
- public:
- WizFilePathPanel(bool showHeaderGuard, wxWizard* parent, const wxBitmap& bitmap = wxNullBitmap);
- - ~WizFilePathPanel();
- + ~WizFilePathPanel() override;
-
- wxString GetFilename() const { return m_Filename; }
- wxString GetHeaderGuard() const { return m_HeaderGuard; }
- @@ -88,7 +88,7 @@ class WizFilePathPanel : public WizPageBase
- int GetTargetIndex() const;
- void SetFilePathSelectionFilter(const wxString& filter);
-
- - void OnPageChanging(wxWizardEvent& event);
- + void OnPageChanging(wxWizardEvent& event) override;
- private:
- FilePathPanel* m_pFilePathPanel;
- wxString m_Filename;
- @@ -100,16 +100,16 @@ class WizProjectPathPanel : public WizPageBase
- {
- public:
- WizProjectPathPanel(wxWizard* parent, const wxBitmap& bitmap = wxNullBitmap);
- - ~WizProjectPathPanel();
- + ~WizProjectPathPanel() override;
-
- wxString GetPath() const;
- - wxString GetName() const;
- + wxString GetName() const override;
- wxString GetFullFileName() const;
- wxString GetTitle() const;
-
- void OnButton(wxCommandEvent& event);
- - virtual void OnPageChanging(wxWizardEvent& event);
- - virtual void OnPageChanged(wxWizardEvent& event);
- + void OnPageChanging(wxWizardEvent& event) override;
- + void OnPageChanged(wxWizardEvent& event) override;
- private:
- ProjectPathPanel* m_pProjectPathPanel;
-
- @@ -121,10 +121,10 @@ class WizGenericSelectPathPanel : public WizPageBase
- public:
- WizGenericSelectPathPanel(const wxString& pageId, const wxString& descr, const wxString& label, const wxString& defValue,
- wxWizard* parent, const wxBitmap& bitmap = wxNullBitmap);
- - ~WizGenericSelectPathPanel();
- + ~WizGenericSelectPathPanel() override;
-
- void OnButton(wxCommandEvent& event);
- - virtual void OnPageChanging(wxWizardEvent& event);
- + void OnPageChanging(wxWizardEvent& event) override;
- private:
- GenericSelectPath* m_pGenericSelectPath;
-
- @@ -136,7 +136,7 @@ class WizCompilerPanel : public WizPageBase
- public:
- WizCompilerPanel(const wxString& compilerID, const wxString& validCompilerIDs, wxWizard* parent, const wxBitmap& bitmap = wxNullBitmap,
- bool allowCompilerChange = true, bool allowConfigChange = true);
- - ~WizCompilerPanel();
- + ~WizCompilerPanel() override;
-
- wxString GetCompilerID() const;
- bool GetWantDebug() const;
- @@ -148,7 +148,7 @@ class WizCompilerPanel : public WizPageBase
- wxString GetReleaseOutputDir() const;
- wxString GetReleaseObjectOutputDir() const;
-
- - void OnPageChanging(wxWizardEvent& event);
- + void OnPageChanging(wxWizardEvent& event) override;
- private:
- CompilerPanel* m_pCompilerPanel;
- bool m_AllowConfigChange;
- @@ -162,7 +162,7 @@ class WizBuildTargetPanel : public WizPageBase
- bool showCompiler = false,
- const wxString& compilerID = wxEmptyString, const wxString& validCompilerIDs = _T("*"),
- bool allowCompilerChange = true);
- - ~WizBuildTargetPanel();
- + ~WizBuildTargetPanel() override;
-
- wxString GetCompilerID() const;
- bool GetEnableDebug() const;
- @@ -170,7 +170,7 @@ class WizBuildTargetPanel : public WizPageBase
- wxString GetTargetOutputDir() const;
- wxString GetTargetObjectOutputDir() const;
-
- - void OnPageChanging(wxWizardEvent& event);
- + void OnPageChanging(wxWizardEvent& event) override;
- private:
- BuildTargetPanel* m_pBuildTargetPanel;
- };
- @@ -179,12 +179,12 @@ class WizGenericSingleChoiceList : public WizPageBase
- {
- public:
- WizGenericSingleChoiceList(const wxString& pageId, const wxString& descr, const wxArrayString& choices, int defChoice, wxWizard* parent, const wxBitmap& bitmap = wxNullBitmap);
- - ~WizGenericSingleChoiceList();
- + ~WizGenericSingleChoiceList() override;
-
- int GetChoice() const;
- void SetChoice(int choice);
-
- - void OnPageChanging(wxWizardEvent& event);
- + void OnPageChanging(wxWizardEvent& event) override;
- private:
- GenericSingleChoiceList* m_pGenericSingleChoiceList;
- };
- diff --git a/src/plugins/todo/addtododlg.h b/src/plugins/todo/addtododlg.h
- index 42eb6075b..b51565d8f 100644
- --- a/src/plugins/todo/addtododlg.h
- +++ b/src/plugins/todo/addtododlg.h
- @@ -37,7 +37,6 @@ class AddTodoDlg : public wxScrollingDialog
- {
- public:
- AddTodoDlg(wxWindow* parent, const wxArrayString& users, const wxArrayString& types, std::bitset<(int)tdctError+1> supportedTdcts);
- - virtual ~AddTodoDlg() {};
-
- wxString GetText() const;
- wxString GetUser() const;
- @@ -47,7 +46,7 @@ class AddTodoDlg : public wxScrollingDialog
- wxString GetType() const;
- ToDoCommentType GetCommentType() const;
-
- - void EndModal(int retVal);
- + void EndModal(int retVal) override;
-
- private:
- void OnAddUser(wxCommandEvent&);
- diff --git a/src/plugins/todo/todolist.h b/src/plugins/todo/todolist.h
- index 960b6165f..1c868ebc1 100644
- --- a/src/plugins/todo/todolist.h
- +++ b/src/plugins/todo/todolist.h
- @@ -28,12 +28,13 @@ class ToDoList : public cbPlugin
- {
- public:
- ToDoList();
- - ~ToDoList();
- - virtual cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
- - void BuildMenu(wxMenuBar* menuBar);
- - void BuildModuleMenu(const ModuleType type, wxMenu* menu, const FileTreeData* data = 0);
- - void OnAttach(); // fires when the plugin is attached to the application
- - void OnRelease(bool appShutDown); // fires when the plugin is released from the application
- + ~ToDoList() override;
- + cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent) override;
- + void BuildMenu(wxMenuBar* menuBar) override;
- + void BuildModuleMenu(const ModuleType type, wxMenu* menu,
- + const FileTreeData* data = nullptr) override;
- + void OnAttach() override; // fires when the plugin is attached to the application
- + void OnRelease(bool appShutDown) override; // fires when the plugin is released from the application
- private:
- // only parse files when C::B app is already start up
- void OnAppDoneStartup(CodeBlocksEvent& event);
- diff --git a/src/plugins/todo/todolistview.h b/src/plugins/todo/todolistview.h
- index 2d9b3426f..523278682 100644
- --- a/src/plugins/todo/todolistview.h
- +++ b/src/plugins/todo/todolistview.h
- @@ -76,8 +76,8 @@ class ToDoListView : public wxEvtHandler, public ListCtrlLogger
- {
- public:
- ToDoListView(const wxArrayString& titles, const wxArrayInt& widths, const wxArrayString& types);
- - ~ToDoListView();
- - virtual wxWindow* CreateControl(wxWindow* parent);
- + ~ToDoListView() override;
- + wxWindow* CreateControl(wxWindow* parent) override;
- void DestroyControls(bool control);
-
- // parse all the sources
- diff --git a/src/plugins/todo/todosettingsdlg.h b/src/plugins/todo/todosettingsdlg.h
- index c216b482f..c09851454 100644
- --- a/src/plugins/todo/todosettingsdlg.h
- +++ b/src/plugins/todo/todosettingsdlg.h
- @@ -14,12 +14,12 @@ class ToDoSettingsDlg : public cbConfigurationPanel
- {
- public:
- ToDoSettingsDlg(wxWindow* parent);
- - ~ToDoSettingsDlg();
- + ~ToDoSettingsDlg() override;
-
- - virtual wxString GetTitle() const { return _("Todo list"); }
- - virtual wxString GetBitmapBaseName() const { return _T("todo"); }
- - virtual void OnApply();
- - virtual void OnCancel(){}
- + wxString GetTitle() const override { return _("Todo list"); }
- + wxString GetBitmapBaseName() const override { return _T("todo"); }
- + void OnApply() override;
- + void OnCancel() override {}
- };
-
- #endif // TODOSETTINGSDLG_H
- diff --git a/src/src/app.cpp b/src/src/app.cpp
- index 10f278ff3..9437c7169 100644
- --- a/src/src/app.cpp
- +++ b/src/src/app.cpp
- @@ -319,7 +319,7 @@ class cbMessageOutputNull : public wxMessageOutput
- public:
-
- #if wxCHECK_VERSION(3, 0, 0)
- - virtual void Output(const wxString &str);
- + virtual void Output(const wxString &str) override;
- #else
- #ifdef WX_ATTRIBUTE_PRINTF
- virtual void Printf(const wxChar* format, ...) WX_ATTRIBUTE_PRINTF_2;
- diff --git a/src/src/app.h b/src/src/app.h
- index d9808a93f..4348b4688 100644
- --- a/src/src/app.h
- +++ b/src/src/app.h
- @@ -107,17 +107,17 @@ class cbSplashScreen;
- class CodeBlocksApp : public wxApp
- {
- public:
- - virtual bool OnInit();
- - virtual int OnExit();
- - virtual int OnRun();
- + bool OnInit() override;
- + int OnExit() override;
- + int OnRun() override;
- wxString GetAppPath() const;
- int ParseCmdLine(MainFrame* handlerFrame, const wxString& CmdLine = wxEmptyString);
- #if wxCHECK_VERSION(3,0,0)
- void OnCloseBatchBuildWindow(wxCloseEvent& evt);
- #endif // wxCHECK_VERSION
- void OnAppActivate(wxActivateEvent& event);
- - bool OnCmdLineParsed(wxCmdLineParser& parser);
- - void OnFatalException();
- + bool OnCmdLineParsed(wxCmdLineParser& parser) override;
- + void OnFatalException() override;
- void LoadDelayedFiles(MainFrame* frame); // command line or DDE (if available) files
- void SetAutoFile(wxString& file); // method to set m_AutoFile
- void AttachDebugger();
- diff --git a/src/src/backtracedlg.h b/src/src/backtracedlg.h
- index 7c0c12f61..9a7e88869 100644
- --- a/src/src/backtracedlg.h
- +++ b/src/src/backtracedlg.h
- @@ -21,10 +21,10 @@ class BacktraceDlg : public wxPanel, public cbBacktraceDlg
- public:
- BacktraceDlg(wxWindow* parent);
-
- - wxWindow* GetWindow() { return this; }
- + wxWindow* GetWindow() override { return this; }
-
- - void Reload();
- - void EnableWindow(bool enable);
- + void Reload() override;
- + void EnableWindow(bool enable) override;
- private:
- void OnListRightClick(wxListEvent& event);
- void OnDoubleClick(wxListEvent& event);
- diff --git a/src/src/batchbuild.h b/src/src/batchbuild.h
- index b352d06fd..bb2ce5ac5 100644
- --- a/src/src/batchbuild.h
- +++ b/src/src/batchbuild.h
- @@ -23,7 +23,7 @@ class BatchLogWindow : public wxScrollingDialog
- size.SetHeight(Manager::Get()->GetConfigManager(_T("message_manager"))->ReadInt(_T("/batch_build_log/height"), wxDefaultSize.GetHeight()));
- SetSize(size);
- }
- - void EndModal(int retCode)
- + void EndModal(int retCode) override
- {
- // allowed to close?
- // find compiler plugin
- diff --git a/src/src/breakpointsdlg.h b/src/src/breakpointsdlg.h
- index 37cc4b0ee..36efcb2e8 100644
- --- a/src/src/breakpointsdlg.h
- +++ b/src/src/breakpointsdlg.h
- @@ -26,15 +26,15 @@ class BreakpointsDlg : public wxPanel, public cbBreakpointsDlg
- public:
- BreakpointsDlg();
-
- - wxWindow* GetWindow() { return this; }
- + wxWindow* GetWindow() override { return this; }
-
- - bool AddBreakpoint(cbDebuggerPlugin *plugin, const wxString& filename, int line);
- - bool RemoveBreakpoint(cbDebuggerPlugin *plugin, const wxString& filename, int line);
- - void RemoveAllBreakpoints();
- - void EditBreakpoint(const wxString& filename, int line);
- - void EnableBreakpoint(const wxString& filename, int line, bool enable);
- + bool AddBreakpoint(cbDebuggerPlugin *plugin, const wxString& filename, int line) override;
- + bool RemoveBreakpoint(cbDebuggerPlugin *plugin, const wxString& filename, int line) override;
- + void RemoveAllBreakpoints() override;
- + void EditBreakpoint(const wxString& filename, int line) override;
- + void EnableBreakpoint(const wxString& filename, int line, bool enable) override;
-
- - void Reload();
- + void Reload() override;
- private:
-
- void OnRemove(wxCommandEvent& event);
- diff --git a/src/src/compilersettingsdlg.h b/src/src/compilersettingsdlg.h
- index 7927b842b..4d702175d 100644
- --- a/src/src/compilersettingsdlg.h
- +++ b/src/src/compilersettingsdlg.h
- @@ -15,8 +15,8 @@ class CompilerSettingsDlg : public wxScrollingDialog
- {
- public:
- CompilerSettingsDlg(wxWindow* parent);
- - virtual ~CompilerSettingsDlg();
- - virtual void EndModal(int retCode);
- + ~CompilerSettingsDlg() override;
- + void EndModal(int retCode) override;
- protected:
- void OnPageChanging(wxListbookEvent& event);
- void OnPageChanged(wxListbookEvent& event);
- diff --git a/src/src/cpuregistersdlg.h b/src/src/cpuregistersdlg.h
- index 35e6db300..1aa261765 100644
- --- a/src/src/cpuregistersdlg.h
- +++ b/src/src/cpuregistersdlg.h
- @@ -16,11 +16,12 @@ class CPURegistersDlg : public wxPanel, public cbCPURegistersDlg
- public:
- CPURegistersDlg(wxWindow* parent);
-
- - wxWindow* GetWindow() { return this; }
- + wxWindow* GetWindow() override { return this; }
-
- - void Clear();
- - void SetRegisterValue(const wxString& reg_name, const wxString& hexValue, const wxString& interpreted);
- - void EnableWindow(bool enable);
- + void Clear() override;
- + void SetRegisterValue(const wxString& reg_name, const wxString& hexValue,
- + const wxString& interpreted) override;
- + void EnableWindow(bool enable) override;
- protected:
- int RegisterIndex(const wxString& reg_name);
- void OnRefresh(wxCommandEvent& event);
- diff --git a/src/src/debugger_interface_creator.h b/src/src/debugger_interface_creator.h
- index 232292647..5f51a9940 100644
- --- a/src/src/debugger_interface_creator.h
- +++ b/src/src/debugger_interface_creator.h
- @@ -17,31 +17,31 @@ class DebugInterfaceFactory : public cbDebugInterfaceFactory
- ~DebugInterfaceFactory();
-
- public:
- - virtual cbBacktraceDlg* CreateBacktrace();
- - virtual void DeleteBacktrace(cbBacktraceDlg *dialog);
- + cbBacktraceDlg* CreateBacktrace() override;
- + void DeleteBacktrace(cbBacktraceDlg *dialog) override;
-
- - virtual cbBreakpointsDlg* CreateBreapoints();
- - virtual void DeleteBreakpoints(cbBreakpointsDlg *dialog);
- + cbBreakpointsDlg* CreateBreapoints() override;
- + void DeleteBreakpoints(cbBreakpointsDlg *dialog) override;
-
- - virtual cbCPURegistersDlg* CreateCPURegisters();
- - virtual void DeleteCPURegisters(cbCPURegistersDlg *dialog);
- + cbCPURegistersDlg* CreateCPURegisters() override;
- + void DeleteCPURegisters(cbCPURegistersDlg *dialog) override;
-
- - virtual cbDisassemblyDlg* CreateDisassembly();
- - virtual void DeleteDisassembly(cbDisassemblyDlg *dialog);
- + cbDisassemblyDlg* CreateDisassembly() override;
- + void DeleteDisassembly(cbDisassemblyDlg *dialog) override;
-
- - virtual cbExamineMemoryDlg* CreateMemory();
- - virtual void DeleteMemory(cbExamineMemoryDlg *dialog);
- + cbExamineMemoryDlg* CreateMemory() override;
- + void DeleteMemory(cbExamineMemoryDlg *dialog) override;
-
- - virtual cbThreadsDlg* CreateThreads();
- - virtual void DeleteThreads(cbThreadsDlg *dialog);
- + cbThreadsDlg* CreateThreads() override;
- + void DeleteThreads(cbThreadsDlg *dialog) override;
-
- - virtual cbWatchesDlg* CreateWatches();
- - virtual void DeleteWatches(cbWatchesDlg *dialog);
- + cbWatchesDlg* CreateWatches() override;
- + void DeleteWatches(cbWatchesDlg *dialog) override;
-
- - virtual bool ShowValueTooltip(const cb::shared_ptr<cbWatch> &watch, const wxRect &rect);
- - virtual void HideValueTooltip();
- - virtual bool IsValueTooltipShown();
- - virtual void UpdateValueTooltip();
- + bool ShowValueTooltip(const cb::shared_ptr<cbWatch> &watch, const wxRect &rect) override;
- + void HideValueTooltip() override;
- + bool IsValueTooltipShown() override;
- + void UpdateValueTooltip() override;
- private:
- void OnEditorDeactivate(CodeBlocksEvent &event);
- private:
- diff --git a/src/src/debuggermenu.h b/src/src/debuggermenu.h
- index 68db401a4..2332ce2db 100644
- --- a/src/src/debuggermenu.h
- +++ b/src/src/debuggermenu.h
- @@ -21,13 +21,13 @@ class DebuggerMenuHandler : public wxEvtHandler, public cbDebuggerMenuHandler
- void AppendWindowMenuItems(wxMenu &menu);
-
- public: // derived from cbDebuggerMenuHandler
- - virtual void SetActiveDebugger(cbDebuggerPlugin *active);
- - virtual void MarkActiveTargetAsValid(bool valid);
- - virtual void RebuildMenus();
- - virtual void BuildContextMenu(wxMenu &menu, const wxString& word_at_caret, bool is_running);
- + void SetActiveDebugger(cbDebuggerPlugin *active) override;
- + void MarkActiveTargetAsValid(bool valid) override;
- + void RebuildMenus() override;
- + void BuildContextMenu(wxMenu &menu, const wxString& word_at_caret, bool is_running) override;
-
- - virtual bool RegisterWindowMenu(const wxString &name, const wxString &help, cbDebuggerWindowMenuItem *item);
- - virtual void UnregisterWindowMenu(const wxString &name);
- + bool RegisterWindowMenu(const wxString &name, const wxString &help, cbDebuggerWindowMenuItem *item) override;
- + void UnregisterWindowMenu(const wxString &name) override;
- private:
- void OnUpdateUI(wxUpdateUIEvent& event);
- void OnUpdateUIActive(wxUpdateUIEvent &event);
- diff --git a/src/src/disassemblydlg.h b/src/src/disassemblydlg.h
- index 8ef9b6582..2e74d53fd 100644
- --- a/src/src/disassemblydlg.h
- +++ b/src/src/disassemblydlg.h
- @@ -20,16 +20,16 @@ class DisassemblyDlg : public wxPanel, public cbDisassemblyDlg
- public:
- DisassemblyDlg(wxWindow* parent);
-
- - wxWindow* GetWindow() { return this; }
- -
- - void Clear(const cbStackFrame& frame);
- - void AddAssemblerLine(uint64_t addr, const wxString& line);
- - void AddSourceLine(int lineno, const wxString& line);
- - bool SetActiveAddress(uint64_t addr);
- - void CenterLine(int lineno);
- - void CenterCurrentLine();
- - bool HasActiveAddr() { return m_HasActiveAddr; }
- - void EnableWindow(bool enable);
- + wxWindow* GetWindow() override { return this; }
- +
- + void Clear(const cbStackFrame& frame) override;
- + void AddAssemblerLine(uint64_t addr, const wxString& line) override;
- + void AddSourceLine(int lineno, const wxString& line) override;
- + bool SetActiveAddress(uint64_t addr) override;
- + void CenterLine(int lineno) override;
- + void CenterCurrentLine() override;
- + bool HasActiveAddr() override { return m_HasActiveAddr; }
- + void EnableWindow(bool enable) override;
-
- protected:
- void OnSave(wxCommandEvent& event);
- diff --git a/src/src/editorconfigurationdlg.h b/src/src/editorconfigurationdlg.h
- index 83fcac888..170f710ab 100644
- --- a/src/src/editorconfigurationdlg.h
- +++ b/src/src/editorconfigurationdlg.h
- @@ -48,7 +48,7 @@ class EditorConfigurationDlg : public wxScrollingDialog
- void OnCaretStyle(wxCommandEvent& event);
- void OnUpdateUIFontQuality(wxUpdateUIEvent& event);
-
- - void EndModal(int retCode);
- + void EndModal(int retCode) override;
- private:
- void OnPageChanging(wxListbookEvent& event);
- void OnPageChanged(wxListbookEvent& event);
- diff --git a/src/src/environmentsettingsdlg.h b/src/src/environmentsettingsdlg.h
- index 2e92e60a3..3a1b15784 100644
- --- a/src/src/environmentsettingsdlg.h
- +++ b/src/src/environmentsettingsdlg.h
- @@ -19,8 +19,8 @@ class EnvironmentSettingsDlg : public wxScrollingDialog, public cbConfigurationP
- {
- public:
- EnvironmentSettingsDlg(wxWindow* parent, wxAuiDockArt* art);
- - virtual ~EnvironmentSettingsDlg();
- - virtual void EndModal(int retCode);
- + ~EnvironmentSettingsDlg() override;
- + void EndModal(int retCode) override;
-
- public:
- // From cbConfigurationPanelColoursInterface
- diff --git a/src/src/examinememorydlg.h b/src/src/examinememorydlg.h
- index d9793320b..051ea1f71 100644
- --- a/src/src/examinememorydlg.h
- +++ b/src/src/examinememorydlg.h
- @@ -16,19 +16,19 @@ class ExamineMemoryDlg : public wxPanel, public cbExamineMemoryDlg
- public:
- ExamineMemoryDlg(wxWindow* parent);
-
- - wxWindow* GetWindow() { return this; }
- + wxWindow* GetWindow() override { return this; }
-
- // used for Freeze()/Thaw() calls
- - void Begin();
- - void End();
- -
- - void Clear();
- - wxString GetBaseAddress();
- - void SetBaseAddress(const wxString &addr);
- - int GetBytes();
- - void AddError(const wxString& err);
- - void AddHexByte(const wxString& addr, const wxString& hexbyte);
- - void EnableWindow(bool enable);
- + void Begin() override;
- + void End() override;
- +
- + void Clear() override;
- + wxString GetBaseAddress() override;
- + void SetBaseAddress(const wxString &addr) override;
- + int GetBytes() override;
- + void AddError(const wxString& err) override;
- + void AddHexByte(const wxString& addr, const wxString& hexbyte) override;
- + void EnableWindow(bool enable) override;
- protected:
- void OnGo(wxCommandEvent& event);
-
- diff --git a/src/src/notebookstyles.h b/src/src/notebookstyles.h
- index 80ef2f693..1a4942847 100644
- --- a/src/src/notebookstyles.h
- +++ b/src/src/notebookstyles.h
- @@ -28,29 +28,29 @@ class NbStyleVC71 : public wxAuiDefaultTabArt
- {
- public:
- NbStyleVC71();
- - wxAuiTabArt* Clone();
- + wxAuiTabArt* Clone() override;
-
- void DrawTab(wxDC& dc, wxWindow* wnd, const wxAuiNotebookPage& page,
- const wxRect& in_rect, int close_button_state,
- wxRect* out_tab_rect, wxRect* out_button_rect,
- - int* x_extent);
- + int* x_extent) override;
-
- int GetBestTabCtrlSize(wxWindow* wnd, const wxAuiNotebookPageArray& pages,
- - const wxSize& required_bmp_size);
- + const wxSize& required_bmp_size) override;
- };
-
- class NbStyleFF2 : public wxAuiDefaultTabArt
- {
- public:
- NbStyleFF2();
- - wxAuiTabArt* Clone();
- + wxAuiTabArt* Clone() override;
- void DrawTab(wxDC& dc, wxWindow* wnd, const wxAuiNotebookPage& page,
- const wxRect& in_rect, int close_button_state,
- wxRect* out_tab_rect, wxRect* out_button_rect,
- - int* x_extent);
- + int* x_extent) override;
-
- int GetBestTabCtrlSize(wxWindow* wnd, const wxAuiNotebookPageArray& pages,
- - const wxSize& required_bmp_size);
- + const wxSize& required_bmp_size) override;
- };
-
- #if defined(__WXGTK__) && (USE_GTK_NOTEBOOK) && !wxCHECK_VERSION(3, 0, 0)
- diff --git a/src/src/printdlg.h b/src/src/printdlg.h
- index 8cb554c5f..5289a240e 100644
- --- a/src/src/printdlg.h
- +++ b/src/src/printdlg.h
- @@ -13,9 +13,9 @@ class PrintDialog : public wxScrollingDialog
- {
- public:
- PrintDialog(wxWindow* parent);
- - virtual ~PrintDialog();
- + ~PrintDialog() override;
-
- - virtual void EndModal(int retCode);
- + void EndModal(int retCode) override;
-
- PrintScope GetPrintScope() const;
- PrintColourMode GetPrintColourMode() const;
- diff --git a/src/src/projectdepsdlg.h b/src/src/projectdepsdlg.h
- index 2665cbbd6..f04dafe1b 100644
- --- a/src/src/projectdepsdlg.h
- +++ b/src/src/projectdepsdlg.h
- @@ -14,8 +14,8 @@ class ProjectDepsDlg : public wxScrollingDialog
- {
- public:
- ProjectDepsDlg(wxWindow* parent, cbProject* sel = nullptr);
- - virtual ~ProjectDepsDlg();
- - virtual void EndModal(int retCode);
- + ~ProjectDepsDlg() override;
- + void EndModal(int retCode) override;
- protected:
- void FillList();
- bool SaveList();
- diff --git a/src/src/projectmanagerui.h b/src/src/projectmanagerui.h
- index 851708bfe..97e175c36 100644
- --- a/src/src/projectmanagerui.h
- +++ b/src/src/projectmanagerui.h
- @@ -20,43 +20,46 @@ class ProjectManagerUI : public wxEvtHandler, public cbProjectManagerUI
- ProjectManagerUI();
- ~ProjectManagerUI();
-
- - cbAuiNotebook* GetNotebook() { return m_pNotebook; }
- + cbAuiNotebook* GetNotebook() override { return m_pNotebook; }
-
- /** Retrieve a pointer to the project manager's tree (GUI).
- * @return A pointer to a wxTreeCtrl window.
- */
- - cbTreeCtrl* GetTree(){ return m_pTree; }
- + cbTreeCtrl* GetTree() override { return m_pTree; }
-
- - wxTreeItemId GetTreeSelection();
- + wxTreeItemId GetTreeSelection() override;
-
- - void RebuildTree();
- - void FreezeTree();
- - void UnfreezeTree(bool force = false);
- + void RebuildTree() override;
- + void FreezeTree() override;
- + void UnfreezeTree(bool force = false) override;
-
-
- - void UpdateActiveProject(cbProject* oldProject, cbProject* newProject, bool refresh);
- - void RemoveProject(cbProject* project);
- - void BeginLoadingWorkspace();
- - void CloseWorkspace();
- - void FinishLoadingProject(cbProject* project, bool newAddition, cb_unused FilesGroupsAndMasks* fgam);
- - void FinishLoadingWorkspace(cbProject* activeProject, const wxString &workspaceTitle);
- + void UpdateActiveProject(cbProject* oldProject, cbProject* newProject,
- + bool refresh) override;
- + void RemoveProject(cbProject* project) override;
- + void BeginLoadingWorkspace() override;
- + void CloseWorkspace() override;
- + void FinishLoadingProject(cbProject* project, bool newAddition,
- + cb_unused FilesGroupsAndMasks* fgam) override;
- + void FinishLoadingWorkspace(cbProject* activeProject,
- + const wxString &workspaceTitle) override;
-
- - void ShowFileInTree(ProjectFile &projectFile);
- + void ShowFileInTree(ProjectFile &projectFile) override;
-
- void CreateMenu(wxMenuBar* menuBar);
-
- - bool QueryCloseAllProjects();
- - bool QueryCloseProject(cbProject* project, bool dontsavefiles);
- - bool QueryCloseWorkspace();
- + bool QueryCloseAllProjects() override;
- + bool QueryCloseProject(cbProject* project, bool dontsavefiles) override;
- + bool QueryCloseWorkspace() override;
-
- - int AskForBuildTargetIndex(cbProject* project);
- - wxArrayInt AskForMultiBuildTargetIndex(cbProject* project);
- - void ConfigureProjectDependencies(cbProject* base, wxWindow *parent);
- + int AskForBuildTargetIndex(cbProject* project) override;
- + wxArrayInt AskForMultiBuildTargetIndex(cbProject* project) override;
- + void ConfigureProjectDependencies(cbProject* base, wxWindow *parent) override;
- void CheckForExternallyModifiedProjects();
-
- private:
- void InitPane();
- - void SwitchToProjectsPage();
- + void SwitchToProjectsPage() override;
- void ShowMenu(wxTreeItemId id, const wxPoint& pt);
- void CreateMenuTreeProps(wxMenu* menu, bool popup);
-
- diff --git a/src/src/projectoptionsdlg.h b/src/src/projectoptionsdlg.h
- index 3826cc809..01264d405 100644
- --- a/src/src/projectoptionsdlg.h
- +++ b/src/src/projectoptionsdlg.h
- @@ -23,9 +23,9 @@ class ProjectOptionsDlg : public wxScrollingDialog
- // class constructor
- ProjectOptionsDlg(wxWindow* parent, cbProject* project);
- // class destructor
- - ~ProjectOptionsDlg();
- + ~ProjectOptionsDlg() override;
-
- - void EndModal(int retCode);
- + void EndModal(int retCode) override;
- void OnFileOptionsClick(wxCommandEvent& event);
- void OnFileToggleMarkClick(wxCommandEvent& event);
- void OnFileMarkOnClick(wxCommandEvent& event);
- diff --git a/src/src/scriptingsettingsdlg.h b/src/src/scriptingsettingsdlg.h
- index 66878dcad..527ff63e3 100644
- --- a/src/src/scriptingsettingsdlg.h
- +++ b/src/src/scriptingsettingsdlg.h
- @@ -41,9 +41,9 @@ class ScriptingSettingsDlg : public wxScrollingDialog
- {
- public:
- ScriptingSettingsDlg(wxWindow* parent);
- - ~ScriptingSettingsDlg();
- + ~ScriptingSettingsDlg() override;
-
- - void EndModal(int retCode);
- + void EndModal(int retCode) override;
- protected:
- void FillScripts();
- void UpdateState();
- diff --git a/src/src/startherepage.h b/src/src/startherepage.h
- index 8b9ef614f..4bc29a199 100644
- --- a/src/src/startherepage.h
- +++ b/src/src/startherepage.h
- @@ -23,10 +23,10 @@ class StartHerePage : public EditorBase
- public:
- StartHerePage(wxEvtHandler* owner, const RecentItemsList &projects,
- const RecentItemsList &files, wxWindow* parent);
- - virtual ~StartHerePage();
- + ~StartHerePage() override;
-
- bool LinkClicked(const wxHtmlLinkInfo& link);
- - virtual bool VisibleToTree() const { return false; }
- + bool VisibleToTree() const override { return false; }
- void Reload();
- private:
- void RegisterColours();
- diff --git a/src/src/switcherdlg.h b/src/src/switcherdlg.h
- index b23e516c6..8020adac5 100644
- --- a/src/src/switcherdlg.h
- +++ b/src/src/switcherdlg.h
- @@ -235,7 +235,7 @@ class wxMultiColumnListCtrl: public wxControl
- void OnEraseBackground(wxEraseEvent& event);
-
- // Overrides
- - virtual wxSize DoGetBestSize() const ;
- + wxSize DoGetBestSize() const override;
-
- // Implementation
-
- diff --git a/src/src/threadsdlg.h b/src/src/threadsdlg.h
- index 2cfa55122..31054c769 100644
- --- a/src/src/threadsdlg.h
- +++ b/src/src/threadsdlg.h
- @@ -18,10 +18,10 @@ class ThreadsDlg : public wxPanel, public cbThreadsDlg
- public:
- ThreadsDlg(wxWindow* parent);
-
- - wxWindow* GetWindow() { return this; }
- + wxWindow* GetWindow() override { return this; }
-
- - void Reload();
- - void EnableWindow(bool enable);
- + void Reload() override;
- + void EnableWindow(bool enable) override;
- protected:
- void OnListRightClick(wxListEvent& event);
- void OnListDoubleClick(wxListEvent& event);
- diff --git a/src/src/watchesdlg.h b/src/src/watchesdlg.h
- index 6bf827910..2803f4b3b 100644
- --- a/src/src/watchesdlg.h
- +++ b/src/src/watchesdlg.h
- @@ -24,7 +24,7 @@ class WatchesDlg : public wxPanel, public cbWatchesDlg
- public:
- WatchesDlg();
-
- - wxWindow* GetWindow() { return this; }
- + wxWindow* GetWindow() override { return this; }
-
- void AddWatch(cb::shared_ptr<cbWatch> watch) override;
- void AddSpecialWatch(cb::shared_ptr<cbWatch> watch, bool readonly) override;
- @@ -93,7 +93,7 @@ class ValueTooltip :
- protected:
- virtual void OnDismiss();
- private:
- - void Fit();
- + void Fit() override;
- void ClearWatch();
- private:
-
|