diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-29 09:27:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-29 09:31:42 +0200 |
commit | c6bc9f71fb3bf92291bb7253f402d8d283ca8679 (patch) | |
tree | aff88a8f9216cc5478d0a1d0ba1ce40ef681f9e9 | |
parent | 484fe43b5e9f3696d26b8c0452aab6fd14e10772 (diff) |
disable expressionalwayszero loplugin on clang-3.8
can generate OOM
Change-Id: Ie9fbed147687c06727a702616764a18d91b38e9c
Reviewed-on: https://gerrit.libreoffice.org/52052
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | compilerplugins/clang/expressionalwayszero.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compilerplugins/clang/expressionalwayszero.cxx b/compilerplugins/clang/expressionalwayszero.cxx index ff69154c7dc8..66e7c699a67a 100644 --- a/compilerplugins/clang/expressionalwayszero.cxx +++ b/compilerplugins/clang/expressionalwayszero.cxx @@ -163,7 +163,12 @@ bool ExpressionAlwaysZero::TraverseStaticAssertDecl( StaticAssertDecl * ) return true; } +// on clang-3.8, this plugin can generate OOM +#if CLANG_VERSION >= 30900 loplugin::Plugin::Registration< ExpressionAlwaysZero > X("expressionalwayszero"); +#else +loplugin::Plugin::Registration< ExpressionAlwaysZero > X("expressionalwayszero", false); +#endif } |