new loplugin:returnconstval
commit4ad54c347180f227fac127b70c4072c192c21ddd
authorNoel Grandin <noel.grandin@collabora.co.uk>
Thu, 22 Aug 2019 18:58:07 +0000 (22 20:58 +0200)
committerNoel Grandin <noel.grandin@collabora.co.uk>
Fri, 23 Aug 2019 07:12:16 +0000 (23 09:12 +0200)
treea6939e48027ee44bba1b76bd2e5d76ad5a6ae794
parent24c17dab2f10ad1b7ba342fbd40dc65b7d8f9b24
new loplugin:returnconstval

look for code that thwarts copy-elision/move optimisations by
returning const values.

Change-Id: Iafa038d15051e06ee76d8a1c0ce8b7d234cd8488
Reviewed-on: https://gerrit.libreoffice.org/77964
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
compilerplugins/clang/returnconstval.cxx [new file with mode: 0644]
compilerplugins/clang/test/returnconstval.cxx [new file with mode: 0644]
solenv/CompilerTest_compilerplugins_clang.mk