diff options
Diffstat (limited to 'compilerplugins/clang/loopvartoosmall.cxx')
-rw-r--r-- | compilerplugins/clang/loopvartoosmall.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compilerplugins/clang/loopvartoosmall.cxx b/compilerplugins/clang/loopvartoosmall.cxx index 7ebe34f22474..896266385dea 100644 --- a/compilerplugins/clang/loopvartoosmall.cxx +++ b/compilerplugins/clang/loopvartoosmall.cxx @@ -9,6 +9,8 @@ * */ +#ifndef LO_CLANG_SHARED_PLUGINS + #include <algorithm> #include <cassert> #include <list> @@ -234,8 +236,10 @@ void LoopVarTooSmall::checkExpr(Expr const * expr) { } } -loplugin::Plugin::Registration< LoopVarTooSmall > X("loopvartoosmall"); +loplugin::Plugin::Registration< LoopVarTooSmall > loopvartoosmall("loopvartoosmall"); } +#endif // LO_CLANG_SHARED_PLUGINS + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |