[clang] 3364d76 - [clang-format][doc] Don't use the ".0" suffix on version numbers
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 18 14:57:56 PDT 2023
Author: Owen Pan
Date: 2023-08-18T14:57:43-07:00
New Revision: 3364d7620ef78c6e9f04c63e62ac6b0801090ea5
URL: https://github.com/llvm/llvm-project/commit/3364d7620ef78c6e9f04c63e62ac6b0801090ea5
DIFF: https://github.com/llvm/llvm-project/commit/3364d7620ef78c6e9f04c63e62ac6b0801090ea5.diff
LOG: [clang-format][doc] Don't use the ".0" suffix on version numbers
Fixes #64818.
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 6f02a436b0ac81..651fa4436dfe78 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -3832,7 +3832,7 @@ the configuration (without a prefix: ``Auto``).
.. _Macros:
-**Macros** (``List of Strings``) :versionbadge:`clang-format 17.0` :ref:`¶ <Macros>`
+**Macros** (``List of Strings``) :versionbadge:`clang-format 17` :ref:`¶ <Macros>`
A list of macros of the form ``<definition>=<expansion>`` .
Code will be parsed with macros expanded, in order to determine how to
diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h
index 8bcf6e6f58f162..192cc68e51fad7 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -2963,7 +2963,7 @@ struct FormatStyle {
/// A(a, b); // will not be expanded.
/// \endcode
///
- /// \version 17.0
+ /// \version 17
std::vector<std::string> Macros;
/// The maximum number of consecutive empty lines to keep.
More information about the cfe-commits
mailing list