summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/test
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-06 10:49:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-06 11:06:22 +0100
commitcfd080d00af43c4650c7ed1e9bf68626edcac944 (patch)
tree44aaeb0cd7118fe5ac40484281c8523f15fbcd41 /compilerplugins/clang/test
parent7e2a4f53a243e90cca4b17c63f5318af1a4687f2 (diff)
loplugin:staticconstfield improve warning message
Change-Id: I000dff6b1b6e33e1b2c5aa337c027c1edd7b1003 Reviewed-on: https://gerrit.libreoffice.org/68795 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins/clang/test')
-rw-r--r--compilerplugins/clang/test/staticconstfield.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/compilerplugins/clang/test/staticconstfield.cxx b/compilerplugins/clang/test/staticconstfield.cxx
index d0d6939a3619..fd36a6452bfb 100644
--- a/compilerplugins/clang/test/staticconstfield.cxx
+++ b/compilerplugins/clang/test/staticconstfield.cxx
@@ -15,7 +15,7 @@
class Class1
{
OUString const
- m_field1; // expected-error {{field can be static const [loplugin:staticconstfield]}}
+ m_field1; // expected-error {{const field can be static [loplugin:staticconstfield]}}
Class1()
: m_field1("xxxx")
// expected-note@-1 {{init here [loplugin:staticconstfield]}}
@@ -27,7 +27,7 @@ class Class1
class Class2
{
OString const
- m_field2; // expected-error {{field can be static const [loplugin:staticconstfield]}}
+ m_field2; // expected-error {{const field can be static [loplugin:staticconstfield]}}
Class2()
: m_field2("yyyy")
// expected-note@-1 {{init here [loplugin:staticconstfield]}}
@@ -54,12 +54,12 @@ class Class5
ONE
};
float const
- m_fielda1; // expected-error {{field can be static const [loplugin:staticconstfield]}}
- int const m_fielda2; // expected-error {{field can be static const [loplugin:staticconstfield]}}
+ m_fielda1; // expected-error {{const field can be static [loplugin:staticconstfield]}}
+ int const m_fielda2; // expected-error {{const field can be static [loplugin:staticconstfield]}}
bool const
- m_fielda3; // expected-error {{field can be static const [loplugin:staticconstfield]}}
+ m_fielda3; // expected-error {{const field can be static [loplugin:staticconstfield]}}
Enum const
- m_fielda4; // expected-error {{field can be static const [loplugin:staticconstfield]}}
+ m_fielda4; // expected-error {{const field can be static [loplugin:staticconstfield]}}
Class5()
: m_fielda1(1.0)
// expected-note@-1 {{init here [loplugin:staticconstfield]}}