Skip to content

Commit

Permalink
[clang-format][doc] Correct typos
Browse files Browse the repository at this point in the history
I ran the script for dumping the format style options before committing
16ccba5 just in case.  It turned out that the 2 files didn't matchc
any more since 11e2975 due to an attempt at fixing typos.

Reviewed By: owenpan

Differential Revision: https://reviews.llvm.org/D158697
  • Loading branch information
sstwcw committed Aug 26, 2023
1 parent 7afea8a commit 1d0061f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions clang/docs/ClangFormatStyleOptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
6 changes: 3 additions & 3 deletions clang/include/clang/Format/Format.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1d0061f

Please sign in to comment.