[clang] 085f9b0 - [clang-format][doc] Update documentation for RemoveSemicolon
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 25 16:08:47 PST 2024
Author: Owen Pan
Date: 2024-02-25T16:08:37-08:00
New Revision: 085f9b0d146fc99bbb0e193593aad696fc50a056
URL: https://github.com/llvm/llvm-project/commit/085f9b0d146fc99bbb0e193593aad696fc50a056
DIFF: https://github.com/llvm/llvm-project/commit/085f9b0d146fc99bbb0e193593aad696fc50a056.diff
LOG: [clang-format][doc] Update documentation for RemoveSemicolon
Added:
Modified:
clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
Removed:
################################################################################
diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst
index fdf7bfaeaa4ec7..6515b166001910 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -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::
diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h
index e9b2160a7b9243..47923e06d2c2d1 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -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,
More information about the cfe-commits
mailing list