Allow partial moving

The official C++ core guidelines policy is you must move rvalues.

This is inflexible in practice in the Wesnoth codebase.
This commit is contained in:
JJ Marr 2024-09-23 10:04:24 -04:00 committed by Charles Dang
parent 0b46bd3044
commit 7ddd4ff02e

View File

@ -1,4 +1,7 @@
---
Checks: '-*,bugprone-move-forwarding-reference,bugprone-use-after-move,cppcoreguidelines-rvalue-reference-param-not-moved,modernize-use-nullptr,performance-move-const-arg,performance-move-constructor-init,performance-no-automatic-move,performance-unnecessary-value-param'
CheckOptions:
- key: cppcoreguidelines-rvalue-reference-param-not-moved.AllowPartialMove
value: true
WarningsAsErrors: true
...