diff options
Diffstat (limited to 'clang-tools-extra/docs/clang-tidy/checks/misc-multiple-statement-macro.rst')
-rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/misc-multiple-statement-macro.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-multiple-statement-macro.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-multiple-statement-macro.rst index b2b47601929..a0a65946f3d 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/misc-multiple-statement-macro.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/misc-multiple-statement-macro.rst @@ -3,14 +3,14 @@ misc-multiple-statement-macro ============================= -Detect multiple statement macros that are used in unbraced conditionals. -Only the first statement of the macro will be inside the conditional and the other ones will be executed unconditionally. +Detect multiple statement macros that are used in unbraced conditionals. Only +the first statement of the macro will be inside the conditional and the other +ones will be executed unconditionally. Example: -.. code:: c++ +.. code-block:: c++ #define INCREMENT_TWO(x, y) (x)++; (y)++ if (do_increment) - INCREMENT_TWO(a, b); // `(b)++;` will be executed unconditionally. - + INCREMENT_TWO(a, b); // (b)++ will be executed unconditionally. |