Skip to content

Commit

Permalink
[clang-format][doc] Update documentation for RemoveSemicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
owenca committed Feb 26, 2024
1 parent 529b570 commit 085f9b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion clang/docs/ClangFormatStyleOptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4844,7 +4844,8 @@ the configuration (without a prefix: ``Auto``).
.. _RemoveSemicolon:

**RemoveSemicolon** (``Boolean``) :versionbadge:`clang-format 16` :ref:`<RemoveSemicolon>`
Remove semicolons after the closing brace of a non-empty function.
Remove semicolons after the closing braces of functions and
constructors/destructors.

.. warning::

Expand Down
3 changes: 2 additions & 1 deletion clang/include/clang/Format/Format.h
Original file line number Diff line number Diff line change
Expand Up @@ -3771,7 +3771,8 @@ struct FormatStyle {
/// \version 17
RemoveParenthesesStyle RemoveParentheses;

/// Remove semicolons after the closing brace of a non-empty function.
/// Remove semicolons after the closing braces of functions and
/// constructors/destructors.
/// \warning
/// Setting this option to ``true`` could lead to incorrect code formatting
/// due to clang-format's lack of complete semantic information. As such,
Expand Down

0 comments on commit 085f9b0

Please sign in to comment.