summaryrefslogtreecommitdiff
path: root/compilerplugins/clang
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r--compilerplugins/clang/bodynotinblock.hxx2
-rw-r--r--compilerplugins/clang/checkconfigmacros.cxx12
-rw-r--r--compilerplugins/clang/literalalternative.cxx2
-rw-r--r--compilerplugins/clang/pluginhandler.hxx2
-rw-r--r--compilerplugins/clang/postfixincrementfix.hxx2
-rw-r--r--compilerplugins/clang/rtlconstasciimacro.cxx4
-rw-r--r--compilerplugins/clang/sallogareas.hxx2
-rw-r--r--compilerplugins/clang/store/lclstaticfix.hxx2
-rw-r--r--compilerplugins/clang/store/referencecasting.hxx2
-rw-r--r--compilerplugins/clang/store/removeforwardstringdecl.hxx2
-rw-r--r--compilerplugins/clang/store/tutorial/tutorial1.hxx2
-rw-r--r--compilerplugins/clang/store/tutorial/tutorial2.hxx2
-rw-r--r--compilerplugins/clang/store/tutorial/tutorial3.hxx2
-rw-r--r--compilerplugins/clang/store/unusedcode.cxx2
-rw-r--r--compilerplugins/clang/unusedvariablecheck.hxx2
15 files changed, 21 insertions, 21 deletions
diff --git a/compilerplugins/clang/bodynotinblock.hxx b/compilerplugins/clang/bodynotinblock.hxx
index 9c5ed784a427..e6ad1ab893e3 100644
--- a/compilerplugins/clang/bodynotinblock.hxx
+++ b/compilerplugins/clang/bodynotinblock.hxx
@@ -22,7 +22,7 @@ class BodyNotInBlock
{
public:
explicit BodyNotInBlock( CompilerInstance& compiler );
- virtual void run();
+ virtual void run() override;
bool VisitFunctionDecl( const FunctionDecl* declaration );
private:
typedef vector< const Stmt* > StmtParents;
diff --git a/compilerplugins/clang/checkconfigmacros.cxx b/compilerplugins/clang/checkconfigmacros.cxx
index 3ffaff8a2d69..3a220456ef25 100644
--- a/compilerplugins/clang/checkconfigmacros.cxx
+++ b/compilerplugins/clang/checkconfigmacros.cxx
@@ -31,12 +31,12 @@ class CheckConfigMacros
{
public:
explicit CheckConfigMacros( CompilerInstance& compiler );
- virtual void run();
- virtual void MacroDefined( const Token& macroToken, const MacroInfo* info );
- virtual void MacroUndefined( const Token& macroToken , const MacroInfo* info );
- virtual void Ifdef( SourceLocation location, const Token& macroToken );
- virtual void Ifndef( SourceLocation location, const Token& macroToken );
- virtual void Defined( const Token& macroToken );
+ virtual void run() override;
+ virtual void MacroDefined( const Token& macroToken, const MacroInfo* info ) override;
+ virtual void MacroUndefined( const Token& macroToken , const MacroInfo* info ) override;
+ virtual void Ifdef( SourceLocation location, const Token& macroToken ) override;
+ virtual void Ifndef( SourceLocation location, const Token& macroToken ) override;
+ virtual void Defined( const Token& macroToken ) override;
private:
void checkMacro( const Token& macroToken, SourceLocation location );
std::set< string > configMacros;
diff --git a/compilerplugins/clang/literalalternative.cxx b/compilerplugins/clang/literalalternative.cxx
index f8564047ad01..4d2711c3d64c 100644
--- a/compilerplugins/clang/literalalternative.cxx
+++ b/compilerplugins/clang/literalalternative.cxx
@@ -23,7 +23,7 @@ class LiteralAlternative:
public:
explicit LiteralAlternative(CompilerInstance & compiler): Plugin(compiler) {}
- virtual void run() { TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); }
+ virtual void run() override { TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); }
bool VisitCallExpr(const CallExpr * expr);
};
diff --git a/compilerplugins/clang/pluginhandler.hxx b/compilerplugins/clang/pluginhandler.hxx
index fcba5820b56a..ef960d1ff2b5 100644
--- a/compilerplugins/clang/pluginhandler.hxx
+++ b/compilerplugins/clang/pluginhandler.hxx
@@ -28,7 +28,7 @@ class PluginHandler
public:
PluginHandler( CompilerInstance& compiler, const vector< string >& args );
virtual ~PluginHandler();
- virtual void HandleTranslationUnit( ASTContext& context );
+ virtual void HandleTranslationUnit( ASTContext& context ) override;
static void registerPlugin( Plugin* (*create)( CompilerInstance&, Rewriter& ), const char* optionName, bool isRewriter );
private:
void handleOption( const string& option );
diff --git a/compilerplugins/clang/postfixincrementfix.hxx b/compilerplugins/clang/postfixincrementfix.hxx
index d65c197a170f..29756cf690c6 100644
--- a/compilerplugins/clang/postfixincrementfix.hxx
+++ b/compilerplugins/clang/postfixincrementfix.hxx
@@ -22,7 +22,7 @@ class PostfixIncrementFix
{
public:
explicit PostfixIncrementFix( CompilerInstance& compiler, Rewriter& rewriter );
- virtual void run();
+ virtual void run() override;
bool VisitFunctionDecl( const FunctionDecl* declaration );
private:
typedef std::vector< const Stmt* > StmtParents;
diff --git a/compilerplugins/clang/rtlconstasciimacro.cxx b/compilerplugins/clang/rtlconstasciimacro.cxx
index f1a9d0256c96..331401afbc9c 100644
--- a/compilerplugins/clang/rtlconstasciimacro.cxx
+++ b/compilerplugins/clang/rtlconstasciimacro.cxx
@@ -29,11 +29,11 @@ class RtlConstAsciiMacro
{
public:
explicit RtlConstAsciiMacro( CompilerInstance& compiler, Rewriter& rewriter );
- virtual void run();
+ virtual void run() override;
bool VisitCXXConstructExpr( CXXConstructExpr* expr );
bool VisitCXXTemporaryObjectExpr( CXXTemporaryObjectExpr* expr );
bool VisitStringLiteral( const StringLiteral* literal );
- virtual void MacroExpands( const Token& macro, const MacroInfo* info, SourceRange range );
+ virtual void MacroExpands( const Token& macro, const MacroInfo* info, SourceRange range ) override;
private:
map< SourceLocation, SourceLocation > expansions; // start location -> end location
bool searchingForString;
diff --git a/compilerplugins/clang/sallogareas.hxx b/compilerplugins/clang/sallogareas.hxx
index 2c0326d58037..e00086b27ae4 100644
--- a/compilerplugins/clang/sallogareas.hxx
+++ b/compilerplugins/clang/sallogareas.hxx
@@ -24,7 +24,7 @@ class SalLogAreas
{
public:
explicit SalLogAreas( CompilerInstance& compiler );
- virtual void run();
+ virtual void run() override;
bool VisitFunctionDecl( const FunctionDecl* function );
bool VisitCallExpr( const CallExpr* call );
private:
diff --git a/compilerplugins/clang/store/lclstaticfix.hxx b/compilerplugins/clang/store/lclstaticfix.hxx
index 256c6dd14e0e..48e9c6699878 100644
--- a/compilerplugins/clang/store/lclstaticfix.hxx
+++ b/compilerplugins/clang/store/lclstaticfix.hxx
@@ -22,7 +22,7 @@ class LclStaticFix
{
public:
explicit LclStaticFix( CompilerInstance& compiler, Rewriter& rewriter );
- virtual void run();
+ virtual void run() override;
bool VisitFunctionDecl( const FunctionDecl* declaration );
};
diff --git a/compilerplugins/clang/store/referencecasting.hxx b/compilerplugins/clang/store/referencecasting.hxx
index 732e32de7b75..454d5ee823f0 100644
--- a/compilerplugins/clang/store/referencecasting.hxx
+++ b/compilerplugins/clang/store/referencecasting.hxx
@@ -22,7 +22,7 @@ class ReferenceCasting
{
public:
explicit ReferenceCasting( CompilerInstance& compiler );
- virtual void run();
+ virtual void run() override;
bool VisitCXXConstructExpr( CXXConstructExpr* cce );
};
diff --git a/compilerplugins/clang/store/removeforwardstringdecl.hxx b/compilerplugins/clang/store/removeforwardstringdecl.hxx
index 774bbc3ffb0d..552aa4d4256e 100644
--- a/compilerplugins/clang/store/removeforwardstringdecl.hxx
+++ b/compilerplugins/clang/store/removeforwardstringdecl.hxx
@@ -22,7 +22,7 @@ class RemoveForwardStringDecl
{
public:
explicit RemoveForwardStringDecl( CompilerInstance& compiler, Rewriter& rewriter );
- virtual void run();
+ virtual void run() override;
bool VisitNamespaceDecl( const NamespaceDecl* declaration );
private:
bool tryRemoveStringForwardDecl( const Decl* decl );
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:
diff --git a/compilerplugins/clang/store/unusedcode.cxx b/compilerplugins/clang/store/unusedcode.cxx
index 37c626e0782f..ed5b2ea81c16 100644
--- a/compilerplugins/clang/store/unusedcode.cxx
+++ b/compilerplugins/clang/store/unusedcode.cxx
@@ -29,7 +29,7 @@ class UnusedCode
{
public:
explicit UnusedCode( CompilerInstance& compiler, Rewriter& rewriter );
- virtual void run();
+ virtual void run() override;
bool VisitFunctionDecl( const FunctionDecl* declaration );
};
diff --git a/compilerplugins/clang/unusedvariablecheck.hxx b/compilerplugins/clang/unusedvariablecheck.hxx
index ef14942ef679..695971ebd005 100644
--- a/compilerplugins/clang/unusedvariablecheck.hxx
+++ b/compilerplugins/clang/unusedvariablecheck.hxx
@@ -22,7 +22,7 @@ class UnusedVariableCheck
{
public:
explicit UnusedVariableCheck( CompilerInstance& compiler );
- virtual void run();
+ virtual void run() override;
bool VisitVarDecl( const VarDecl* var );
};