diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst index 3b3f6f2860906..7847f6aa5fb1c 100644 --- a/clang/docs/ClangFormatStyleOptions.rst +++ b/clang/docs/ClangFormatStyleOptions.rst @@ -1549,14 +1549,14 @@ the configuration (without a prefix: ``Auto``). .. code-block:: c++ x = (char *__capability)&y; - int function(void) __ununsed; + int function(void) __unused; void only_writes_to_buffer(char *__output buffer); In the .clang-format configuration file, this can be configured like: .. code-block:: yaml - AttributeMacros: ['__capability', '__output', '__ununsed'] + AttributeMacros: ['__capability', '__output', '__unused'] .. _BinPackArguments: diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h index 192cc68e51fad..eb47715e71ca0 100644 --- a/clang/include/clang/Format/Format.h +++ b/clang/include/clang/Format/Format.h @@ -971,13 +971,13 @@ struct FormatStyle { /// For example: /// \code /// x = (char *__capability)&y; - /// int function(void) __ununsed; + /// int function(void) __unused; /// void only_writes_to_buffer(char *__output buffer); /// \endcode /// /// In the .clang-format configuration file, this can be configured like: /// \code{.yaml} - /// AttributeMacros: ['__capability', '__output', '__ununsed'] + /// AttributeMacros: ['__capability', '__output', '__unused'] /// \endcode /// /// \version 12 @@ -4015,7 +4015,7 @@ struct FormatStyle { /// AfterFunctionDefinitionName: true /// \endcode struct SpaceBeforeParensCustom { - /// If ``true``, put space betwee control statement keywords + /// If ``true``, put space between control statement keywords /// (for/if/while...) and opening parentheses. /// \code /// true: false: