diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst --- a/clang/docs/ClangFormatStyleOptions.rst +++ b/clang/docs/ClangFormatStyleOptions.rst @@ -758,10 +758,14 @@ int bbbbbbbbbbbbbbbbbbbbb) { } + + **AttributeMacros** (``std::vector``) A vector of strings that should be interpreted as attributes/qualifiers instead of identifiers. This can be useful for language extensions or - static analyzer annotations: + static analyzer annotations. + + For example: .. code-block:: c++ @@ -775,8 +779,6 @@ AttributeMacros: ['__capability', '__output', '__ununsed'] - For example: __capability. - **BinPackArguments** (``bool``) If ``false``, a function call's arguments will either be all on the same line or will have one line each. @@ -2246,7 +2248,7 @@ **ObjCBreakBeforeNestedBlockParam** (``bool``) Break parameters list into lines when there is nested block - parameters in a fuction call. + parameters in a function call. .. code-block:: c++ diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h --- a/clang/include/clang/Format/Format.h +++ b/clang/include/clang/Format/Format.h @@ -1860,7 +1860,7 @@ bool ObjCSpaceAfterProperty; /// Break parameters list into lines when there is nested block - /// parameters in a fuction call. + /// parameters in a function call. /// \code /// false: /// - (void)_aMethod