diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-18 12:30:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-29 12:43:37 +0200 |
commit | 1820fcbbc38e82daf43ebe759200050ce05b3fe1 (patch) | |
tree | f5a494e6a437971ef7b9ae003547d4b156bb8b13 /solenv | |
parent | 66889d5219cec22bd0e654e5a812e90cdd04e59d (diff) |
constmethod for accessor-type methods
Apply the constmethod plugin, but only to accessor-type methods, e.g.
IsFoo(), GetBar(), etc, where we can be sure of that
constifying is a reasonable thing to do.
Change-Id: Ibc97f5f359a0992dd1ce2d66f0189f8a0a43d98a
Reviewed-on: https://gerrit.libreoffice.org/74269
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/CompilerTest_compilerplugins_clang.mk | 1 | ||||
-rw-r--r-- | solenv/clang-format/blacklist | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/solenv/CompilerTest_compilerplugins_clang.mk b/solenv/CompilerTest_compilerplugins_clang.mk index b575074e184f..b76d3767149b 100644 --- a/solenv/CompilerTest_compilerplugins_clang.mk +++ b/solenv/CompilerTest_compilerplugins_clang.mk @@ -18,6 +18,7 @@ $(eval $(call gb_CompilerTest_add_exception_objects,compilerplugins_clang, \ compilerplugins/clang/test/commaoperator \ $(if $(filter-out WNT,$(OS)),compilerplugins/clang/test/constfields) \ compilerplugins/clang/test/constparams \ + compilerplugins/clang/test/constmethod \ compilerplugins/clang/test/constvars \ compilerplugins/clang/test/convertlong \ compilerplugins/clang/test/cppunitassertequals \ diff --git a/solenv/clang-format/blacklist b/solenv/clang-format/blacklist index 9d0ac1972cd5..c89b6861b7d9 100644 --- a/solenv/clang-format/blacklist +++ b/solenv/clang-format/blacklist @@ -1668,6 +1668,7 @@ compilerplugins/clang/commaoperator.cxx compilerplugins/clang/comparisonwithconstant.cxx compilerplugins/clang/compat.hxx compilerplugins/clang/constantparam.cxx +compilerplugins/clang/constmethod.cxx compilerplugins/clang/constparams.cxx compilerplugins/clang/conststringvar.cxx compilerplugins/clang/countusersofdefaultparams.cxx @@ -1741,7 +1742,6 @@ compilerplugins/clang/store/cascadingcondop.cxx compilerplugins/clang/store/cascadingcondop.hxx compilerplugins/clang/store/changefunctioncalls.cxx compilerplugins/clang/store/constantfunction.cxx -compilerplugins/clang/store/constmethod.cxx compilerplugins/clang/store/deadclass.cxx compilerplugins/clang/store/defaultparams.cxx compilerplugins/clang/store/deletedspecial.cxx |