forked from qt-creator/qt-creator
Doc: Describe new preferences for refactoring actions
Task-number: QTCREATORBUG-27876 Change-Id: I37513cc641db034eaf1737eee4f25c5ba6b7fd82 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9.4 KiB |
@@ -145,6 +145,9 @@
|
||||
removed. The real Type must contain the given Type. For example, \c int
|
||||
matches \c int32_t but not \c vector<int>, and \c vector matches
|
||||
\c {std::pmr::vector<int>} but not \c {std::optional<vector<int>>}.
|
||||
|
||||
To return non-trivial objects by using a \c const reference, select the
|
||||
\uicontrol {Return non-value types by const reference} check box.
|
||||
\endif
|
||||
|
||||
\section1 Summary of Refactoring Actions
|
||||
@@ -721,6 +724,13 @@
|
||||
Foo * localFoo = new Foo;
|
||||
\endcode
|
||||
|
||||
By default, \QC uses the \c auto variable type when creating the
|
||||
variable. To label the variable with its actual type, select
|
||||
\uicontrol Edit > \uicontrol Preferences > \uicontrol C++ >
|
||||
\uicontrol {Quick Fixes}, and then deselect the
|
||||
\uicontrol {Use type "auto" when creating new variables} check
|
||||
box.
|
||||
|
||||
\li Function call or class name
|
||||
\row
|
||||
\li Insert Virtual Functions of Base Classes
|
||||
|
Reference in New Issue
Block a user