Doc: Describe Preferences > C++ > Code Style > Statement Macros

Task-number: QTCREATORBUG-30604
Change-Id: I8ce44b3ed677076801d3ec96cdf33704a97f4efe
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Leena Miettinen
2024-06-13 17:01:03 +02:00
parent ad2b6eeeb3
commit 9aeb396836
3 changed files with 5 additions and 2 deletions

View File

@@ -69,8 +69,9 @@ Editing
* Added the `Enable indexing` option in `Preferences` > `C++` > `Code Model` * Added the `Enable indexing` option in `Preferences` > `C++` > `Code Model`
to turn off the built-in indexer to turn off the built-in indexer
([QTCREATORBUG-29147](https://bugreports.qt.io/browse/QTCREATORBUG-29147)) ([QTCREATORBUG-29147](https://bugreports.qt.io/browse/QTCREATORBUG-29147))
* Added an option for "statement macros" that are interpreted by the indenter * Added the `Statement Macros` field in `Preferences` > `C++` > `Code Style`
as complete statements that don't require a semicolon at the end for macros that the indenter interprets as complete statements that don't
require a semicolon at the end
([QTCREATORBUG-13640](https://bugreports.qt.io/browse/QTCREATORBUG-13640), ([QTCREATORBUG-13640](https://bugreports.qt.io/browse/QTCREATORBUG-13640),
[QTCREATORBUG-15069](https://bugreports.qt.io/browse/QTCREATORBUG-15069), [QTCREATORBUG-15069](https://bugreports.qt.io/browse/QTCREATORBUG-15069),
[QTCREATORBUG-18789](https://bugreports.qt.io/browse/QTCREATORBUG-18789)) [QTCREATORBUG-18789](https://bugreports.qt.io/browse/QTCREATORBUG-18789))

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -54,6 +54,8 @@
\list \list
\li Interpret the \key Tab and \key Backspace key presses. \li Interpret the \key Tab and \key Backspace key presses.
\li Add macros that the indenter interprets as complete statements that
don't require a semicolon at the end.
\li Indent the contents of classes, functions, blocks, and namespaces. \li Indent the contents of classes, functions, blocks, and namespaces.
\li Indent braces in classes, namespaces, enums, functions, and blocks. \li Indent braces in classes, namespaces, enums, functions, and blocks.
\li Control switch statements and their contents. \li Control switch statements and their contents.