summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-11-11 10:09:16 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-11-11 19:37:16 +0100
commit4c9093c95445c154c4ce7db1756ca936ea0752ca (patch)
tree4233f634d3d671fe0be167a6b5b6146d6250c2ca /solenv
parentc725028f15c36fc626d9ad8cdc288eb73c3e2643 (diff)
New loplugin:constmove
"Find occurrences of std::move on const-qualified types. While there might theoretically be legitimate uses for such (for which this plugin would generate false positives and would need to be updated), in practice they tend to point at suspicious code that should be cleaned up in some way." (All issues found for a Linux build have already been addressed with eleven recent commits mentioning in their commit messages: "I came across this code with an upcoming loplugin:constmove that flags suspicious uses of std::move involving const-qualified types.") Change-Id: I891a66eb0ec5f9b7d93536bbccea0359893383df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142589 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/CompilerTest_compilerplugins_clang.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/solenv/CompilerTest_compilerplugins_clang.mk b/solenv/CompilerTest_compilerplugins_clang.mk
index 631217b2be1b..6e77d57cc2b3 100644
--- a/solenv/CompilerTest_compilerplugins_clang.mk
+++ b/solenv/CompilerTest_compilerplugins_clang.mk
@@ -20,6 +20,7 @@ $(eval $(call gb_CompilerTest_add_exception_objects,compilerplugins_clang, \
compilerplugins/clang/test/commaoperator \
compilerplugins/clang/test/conditionalstring \
compilerplugins/clang/test/constmethod \
+ compilerplugins/clang/test/constmove \
compilerplugins/clang/test/consttobool \
compilerplugins/clang/test/cow_wrapper \
compilerplugins/clang/test/cppunitassertequals \