aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppeditorconstants.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2022-09-12 17:36:52 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2022-09-19 12:30:47 +0000
commit41191817629cb447a70497c9f3b4da6d7513c92c (patch)
tree733a102ca34c30539beafc1b1c88662d064145c2 /src/plugins/cppeditor/cppeditorconstants.h
parent75e35cc4f27c6f959f747e19ac844e67c73e9458 (diff)
CppEditor: Make value vs const ref return type configurable
... in the quickfix settings. Also change the default: With mandatory RVO and move semantics, value return types are the right choice most of the time. Fixes: QTCREATORBUG-25790 Change-Id: I68fc6c616358478ba893101b3e04aa6bbbe79348 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppeditorconstants.h')
-rw-r--r--src/plugins/cppeditor/cppeditorconstants.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppeditorconstants.h b/src/plugins/cppeditor/cppeditorconstants.h
index 86a6c21809..6eb24c688b 100644
--- a/src/plugins/cppeditor/cppeditorconstants.h
+++ b/src/plugins/cppeditor/cppeditorconstants.h
@@ -49,6 +49,7 @@ const char QUICK_FIX_SETTING_SETTER_PARAMETER_NAME[] = "SetterParameterName";
const char QUICK_FIX_SETTING_CPP_FILE_NAMESPACE_HANDLING[] = "CppFileNamespaceHandling";
const char QUICK_FIX_SETTING_MEMBER_VARIABEL_NAME_TEMPLATE[] = "MemberVariableNameTemplate";
const char QUICK_FIX_SETTING_VALUE_TYPES[] = "ValueTypes";
+const char QUICK_FIX_SETTING_RETURN_BY_CONST_REF[] = "ReturnNonValueTypesByConstRef";
const char QUICK_FIX_SETTING_CUSTOM_TEMPLATES[] = "CustomTemplate";
const char QUICK_FIX_SETTING_CUSTOM_TEMPLATE_TYPES[] = "Types";
const char QUICK_FIX_SETTING_CUSTOM_TEMPLATE_COMPARISON[] = "Comparison";