diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-16 15:25:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-25 07:58:04 +0100 |
commit | a6358f1c1b8f981345061b0cbb708df707a5b7b8 (patch) | |
tree | c915cb789c23c60bb64a09248b707cea154ad540 /compilerplugins/clang/test | |
parent | Fix typo (diff) | |
download | core-a6358f1c1b8f981345061b0cbb708df707a5b7b8.tar.gz core-a6358f1c1b8f981345061b0cbb708df707a5b7b8.zip |
improve loplugin constparams
Change-Id: Ic1833dbd030044011e7ee5f89dc35737e5469f05
Reviewed-on: https://gerrit.libreoffice.org/66586
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins/clang/test')
-rw-r--r-- | compilerplugins/clang/test/constparams.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/test/constparams.cxx b/compilerplugins/clang/test/constparams.cxx index 9390ce2dec17..2cffd87fd5be 100644 --- a/compilerplugins/clang/test/constparams.cxx +++ b/compilerplugins/clang/test/constparams.cxx @@ -12,7 +12,7 @@ struct Class1 { int const * m_f1; - Class1(int * f1) : m_f1(f1) {} // expected-error {{this parameter can be const [loplugin:constparams]}} + Class1(int * f1) : m_f1(f1) {} // expected-error {{this parameter can be const Class1::Class1 [loplugin:constparams]}} }; struct Class2 @@ -38,7 +38,7 @@ void g() { P2 p2; p2 = (P2) (f3); } -int const * f1(int * p) { // expected-error {{this parameter can be const [loplugin:constparams]}} +int const * f1(int * p) { // expected-error {{this parameter can be const f1 [loplugin:constparams]}} return p; } void f4(std::string * p) { |