diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-05-31 18:34:11 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-05-31 20:00:53 +0200 |
commit | a0d320096ceadc64f2b3b1022a3e52f307a4d0f2 (patch) | |
tree | 9bca2b3ddf40f1e794e1975eac58e089f8fbf50b /compilerplugins/clang/store/tutorial | |
parent | a20c18941521f067280ab3cd0bc36b0a84f27515 (diff) |
mark all virtuals in the clang plugin as override
In order to help catch Clang API changes.
Change-Id: I5738f5dff405f7a2dd377c983fb32c1c7a2ff921
Diffstat (limited to 'compilerplugins/clang/store/tutorial')
-rw-r--r-- | compilerplugins/clang/store/tutorial/tutorial1.hxx | 2 | ||||
-rw-r--r-- | compilerplugins/clang/store/tutorial/tutorial2.hxx | 2 | ||||
-rw-r--r-- | compilerplugins/clang/store/tutorial/tutorial3.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/store/tutorial/tutorial1.hxx b/compilerplugins/clang/store/tutorial/tutorial1.hxx index 144d0dc64f36..bb5fe2e397f0 100644 --- a/compilerplugins/clang/store/tutorial/tutorial1.hxx +++ b/compilerplugins/clang/store/tutorial/tutorial1.hxx @@ -27,7 +27,7 @@ class Tutorial1 // Ctor, nothing special. Tutorial1( CompilerInstance& compiler ); // The function that will be called to perform the actual action. - virtual void run(); + virtual void run() override; // Function from Clang, it will be called for every return statement in the source. bool VisitReturnStmt( const ReturnStmt* returnstmt ); }; diff --git a/compilerplugins/clang/store/tutorial/tutorial2.hxx b/compilerplugins/clang/store/tutorial/tutorial2.hxx index 71cec477a81e..4fa62326f945 100644 --- a/compilerplugins/clang/store/tutorial/tutorial2.hxx +++ b/compilerplugins/clang/store/tutorial/tutorial2.hxx @@ -23,7 +23,7 @@ class Tutorial2 { public: Tutorial2( CompilerInstance& compiler ); - virtual void run(); + virtual void run() override; // Will be called for every if statement. bool VisitIfStmt( const IfStmt* ifstmt ); private: diff --git a/compilerplugins/clang/store/tutorial/tutorial3.hxx b/compilerplugins/clang/store/tutorial/tutorial3.hxx index a3dd0bdd7374..b82f149a0fa7 100644 --- a/compilerplugins/clang/store/tutorial/tutorial3.hxx +++ b/compilerplugins/clang/store/tutorial/tutorial3.hxx @@ -24,7 +24,7 @@ class Tutorial3 public: // One more argument for ctor. Tutorial3( CompilerInstance& compiler, Rewriter& rewriter ); - virtual void run(); + virtual void run() override; // Will be called for every if statement. bool VisitIfStmt( const IfStmt* ifstmt ); private: |