This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG1d0061fc5e1f: [clang-format][doc] Correct typos (authored by sstwcw).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D158697/new/ https://reviews.llvm.org/D158697 Files: clang/docs/ClangFormatStyleOptions.rst clang/include/clang/Format/Format.h Index: clang/include/clang/Format/Format.h =================================================================== --- clang/include/clang/Format/Format.h +++ clang/include/clang/Format/Format.h @@ -971,13 +971,13 @@ /// 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 @@ /// 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: Index: clang/docs/ClangFormatStyleOptions.rst =================================================================== --- clang/docs/ClangFormatStyleOptions.rst +++ clang/docs/ClangFormatStyleOptions.rst @@ -1549,14 +1549,14 @@ .. 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:
Index: clang/include/clang/Format/Format.h =================================================================== --- clang/include/clang/Format/Format.h +++ clang/include/clang/Format/Format.h @@ -971,13 +971,13 @@ /// 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 @@ /// 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: Index: clang/docs/ClangFormatStyleOptions.rst =================================================================== --- clang/docs/ClangFormatStyleOptions.rst +++ clang/docs/ClangFormatStyleOptions.rst @@ -1549,14 +1549,14 @@ .. 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:
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits