summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-10-22 15:16:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-10-22 15:16:38 +0200
commit3929eab0c0b329d6631cf7fdba7204c3690e9b8a (patch)
tree07d7efd47ab809102e093c480d090af25e09cd80
parentc99732d59bc649ff9e79d880c7f328076864f64e (diff)
Disable loplugin:staticvar for now
produces false positive > [CXX] svtools/source/svrtf/rtfkeywd.cxx > /home/sbergman/lo/core/svtools/source/svrtf/rtfkeywd.cxx:38:23: error: var should be const, or whitelisted [loplugin:staticvar] > static RTF_TokenEntry aRTFTokenTab[] = { > ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ Change-Id: I7cd96988218d1192ced2fadff911c7ec89088012
-rw-r--r--compilerplugins/clang/staticvar.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/staticvar.cxx b/compilerplugins/clang/staticvar.cxx
index b9069b5de61f..2383f61bbfd6 100644
--- a/compilerplugins/clang/staticvar.cxx
+++ b/compilerplugins/clang/staticvar.cxx
@@ -204,7 +204,7 @@ bool StaticVar::VisitVarDecl(VarDecl const* varDecl)
return true;
}
-loplugin::Plugin::Registration<StaticVar> X("staticvar", true);
+loplugin::Plugin::Registration<StaticVar> X("staticvar", false);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */