Kaydet (Commit) 15e0b08a authored tarafından Alexander Wilms's avatar Alexander Wilms Kaydeden (comit) Stephan Bergmann

Remove visual noise from compilerplugins

Change-Id: Ibfed0b64bd60804fa377b5e25e5f197a7772d605
Signed-off-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 98b82956
...@@ -151,8 +151,6 @@ SourceLocation Plugin::locationAfterToken( SourceLocation location ) ...@@ -151,8 +151,6 @@ SourceLocation Plugin::locationAfterToken( SourceLocation location )
return Lexer::getLocForEndOfToken( location, 0, compiler.getSourceManager(), compiler.getLangOpts()); return Lexer::getLocForEndOfToken( location, 0, compiler.getSourceManager(), compiler.getLangOpts());
} }
/////
RewritePlugin::RewritePlugin( const InstantiationData& data ) RewritePlugin::RewritePlugin( const InstantiationData& data )
: Plugin( data ) : Plugin( data )
, rewriter( data.rewriter ) , rewriter( data.rewriter )
......
...@@ -164,8 +164,6 @@ class RegistrationCreate ...@@ -164,8 +164,6 @@ class RegistrationCreate
template< typename T, bool > static T* create( const Plugin::InstantiationData& data ); template< typename T, bool > static T* create( const Plugin::InstantiationData& data );
}; };
/////
inline inline
Plugin::~Plugin() Plugin::~Plugin()
{ {
......
...@@ -252,7 +252,6 @@ bool LibreOfficeAction::ParseArgs( const CompilerInstance&, const vector< string ...@@ -252,7 +252,6 @@ bool LibreOfficeAction::ParseArgs( const CompilerInstance&, const vector< string
return true; return true;
} }
static FrontendPluginRegistry::Add< loplugin::LibreOfficeAction > X( "loplugin", "LibreOffice compile check plugin" ); static FrontendPluginRegistry::Add< loplugin::LibreOfficeAction > X( "loplugin", "LibreOffice compile check plugin" );
} // namespace } // namespace
......
...@@ -32,7 +32,6 @@ I have logged a bug here: ...@@ -32,7 +32,6 @@ I have logged a bug here:
http://llvm.org/bugs/show_bug.cgi?id=15902 http://llvm.org/bugs/show_bug.cgi?id=15902
*/ */
ReferenceCasting::ReferenceCasting( CompilerInstance& compiler ) ReferenceCasting::ReferenceCasting( CompilerInstance& compiler )
: Plugin( compiler ) : Plugin( compiler )
{ {
...@@ -189,7 +188,6 @@ static const Type* extractTemplateType(Expr* cce) ...@@ -189,7 +188,6 @@ static const Type* extractTemplateType(Expr* cce)
return templateParamQT.getTypePtr(); return templateParamQT.getTypePtr();
} }
static Plugin::Registration< ReferenceCasting > X( "referencecasting" ); static Plugin::Registration< ReferenceCasting > X( "referencecasting" );
} // namespace } // namespace
......
...@@ -59,7 +59,6 @@ void RtlConstAsciiMacro::run() ...@@ -59,7 +59,6 @@ void RtlConstAsciiMacro::run()
TraverseDecl( compiler.getASTContext().getTranslationUnitDecl()); TraverseDecl( compiler.getASTContext().getTranslationUnitDecl());
} }
#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 3 #if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 3
void RtlConstAsciiMacro::MacroExpands( const Token& macro, const MacroInfo*, SourceRange range ) void RtlConstAsciiMacro::MacroExpands( const Token& macro, const MacroInfo*, SourceRange range )
#else #else
......
...@@ -217,7 +217,6 @@ SourceLocation SvStreamOutputOperators::after( const SourceLocation& loc ) ...@@ -217,7 +217,6 @@ SourceLocation SvStreamOutputOperators::after( const SourceLocation& loc )
return Lexer::getLocForEndOfToken( loc, 0, compiler.getASTContext().getSourceManager(), compiler.getASTContext().getLangOpts() ); return Lexer::getLocForEndOfToken( loc, 0, compiler.getASTContext().getSourceManager(), compiler.getASTContext().getLangOpts() );
} }
static Plugin::Registration< SvStreamOutputOperators > X( "svstreamoutputoperators" ); static Plugin::Registration< SvStreamOutputOperators > X( "svstreamoutputoperators" );
} // namespace } // namespace
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment