aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppquickfixsettings.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/cppquickfixsettings.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/cppquickfixsettings.h')
-rw-r--r--src/plugins/cppeditor/cppquickfixsettings.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppquickfixsettings.h b/src/plugins/cppeditor/cppquickfixsettings.h
index 0ac2ed91f8..ea16c870fb 100644
--- a/src/plugins/cppeditor/cppquickfixsettings.h
+++ b/src/plugins/cppeditor/cppquickfixsettings.h
@@ -129,6 +129,7 @@ public:
MissingNamespaceHandling cppFileNamespaceHandling = MissingNamespaceHandling::CreateMissing;
QString memberVariableNameTemplate = "m_<name>";
QStringList valueTypes; // if contains use value. Ignores namespaces and template parameters
+ bool returnByConstRef = false;
std::vector<CustomTemplate> customTemplates;
};
} // namespace CppEditor