summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-29 09:27:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-29 09:31:42 +0200
commitc6bc9f71fb3bf92291bb7253f402d8d283ca8679 (patch)
treeaff88a8f9216cc5478d0a1d0ba1ce40ef681f9e9 /compilerplugins
parent484fe43b5e9f3696d26b8c0452aab6fd14e10772 (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>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/expressionalwayszero.cxx5
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
}