diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-12 17:12:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-15 07:56:21 +0200 |
commit | a84e3df74eecc8778e3d5be5dd80ad4ddb511edf (patch) | |
tree | 37c5f3584aab3fd520dbe0daf0950d7bbb3173c1 /compilerplugins | |
parent | fb1d3b580763a333bbbfe115d09e1b5cd8849675 (diff) |
loplugin:constfields in oox
Change-Id: I1e110d193ebfa30ab1ab0d85bfb6dc409e341439
Reviewed-on: https://gerrit.libreoffice.org/61728
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/staticconstfield.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compilerplugins/clang/staticconstfield.cxx b/compilerplugins/clang/staticconstfield.cxx index 79fda38531e9..cde2f80babc5 100644 --- a/compilerplugins/clang/staticconstfield.cxx +++ b/compilerplugins/clang/staticconstfield.cxx @@ -93,6 +93,8 @@ bool StaticConstField::TraverseConstructorInitializer(CXXCtorInitializer* init) // unusual case where a user constructor sets a field to one value, and a copy constructor sets it to a different value if (fn == SRCDIR "/sw/source/core/attr/hints.cxx") return true; + if (fn == SRCDIR "/oox/source/core/contexthandler2.cxx") + return true; report(DiagnosticsEngine::Warning, "field can be static const", init->getSourceLocation()) << init->getSourceRange(); |