diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-06-02 16:30:52 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-06-02 16:33:25 +0200 |
commit | 0df04e0331b11269c4ed34bdd89d2b52a4c08d43 (patch) | |
tree | 5c9fc8c2dacc5f95ac50a361a20713651407902d /compilerplugins | |
parent | 727e63452dc4de88d5dc62d5b1da6da0647564ba (diff) |
fix plugin build with clang < 3.3
Change-Id: If2eb7595ca7d25f6d491e332bb3060061d3b42a7
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/checkconfigmacros.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compilerplugins/clang/checkconfigmacros.cxx b/compilerplugins/clang/checkconfigmacros.cxx index 8524d7b8edb6..86b7e4378f9d 100644 --- a/compilerplugins/clang/checkconfigmacros.cxx +++ b/compilerplugins/clang/checkconfigmacros.cxx @@ -32,7 +32,7 @@ class CheckConfigMacros public: explicit CheckConfigMacros( CompilerInstance& compiler ); virtual void run() override; -#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 2 +#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 3 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; @@ -61,7 +61,7 @@ void CheckConfigMacros::run() // nothing, only check preprocessor usage } -#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 2 +#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 3 void CheckConfigMacros::MacroDefined( const Token& macroToken, const MacroInfo* info ) { SourceLocation location = info->getDefinitionLoc(); @@ -80,7 +80,7 @@ void CheckConfigMacros::MacroDefined( const Token& macroToken, const MacroDirect } } -#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 2 +#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 3 void CheckConfigMacros::MacroUndefined( const Token& macroToken, const MacroInfo* ) #else void CheckConfigMacros::MacroUndefined( const Token& macroToken, const MacroDirective* ) @@ -89,7 +89,7 @@ void CheckConfigMacros::MacroUndefined( const Token& macroToken, const MacroDire configMacros.erase( macroToken.getIdentifierInfo()->getName()); } -#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 2 +#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 3 void CheckConfigMacros::Ifdef( SourceLocation location, const Token& macroToken ) #else void CheckConfigMacros::Ifdef( SourceLocation location, const Token& macroToken, const MacroDirective* ) @@ -98,7 +98,7 @@ void CheckConfigMacros::Ifdef( SourceLocation location, const Token& macroToken, checkMacro( macroToken, location ); } -#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 2 +#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 3 void CheckConfigMacros::Ifndef( SourceLocation location, const Token& macroToken ) #else void CheckConfigMacros::Ifndef( SourceLocation location, const Token& macroToken, const MacroDirective* ) @@ -107,7 +107,7 @@ void CheckConfigMacros::Ifndef( SourceLocation location, const Token& macroToken checkMacro( macroToken, location ); } -#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 2 +#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 3 void CheckConfigMacros::Defined( const Token& macroToken ) #else void CheckConfigMacros::Defined( const Token& macroToken, const MacroDirective* ) |