[clang] [clang-format] fix typo in docs (PR #150658)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 25 10:17:26 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-format

@llvm/pr-subscribers-clang

Author: gui martins (haveheartt)

<details>
<summary>Changes</summary>

Closes #<!-- -->150533 

---
Full diff: https://github.com/llvm/llvm-project/pull/150658.diff


2 Files Affected:

- (modified) clang/docs/ClangFormatStyleOptions.rst (+1-1) 
- (modified) clang/include/clang/Format/Format.h (+1-1) 


``````````diff
diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst
index d39ee49b432e5..029b8d0e238f7 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -1912,7 +1912,7 @@ the configuration (without a prefix: ``Auto``).
 
   * ``SFS_InlineOnly`` (in configuration: ``InlineOnly``)
     Only merge functions defined inside a class. Same as ``inline``,
-    except it does not implies ``empty``: i.e. top level empty functions
+    except it does not imply ``empty``: i.e. top level empty functions
     are not merged either.
 
     .. code-block:: c++
diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h
index 7677604484f52..9a173fd518b47 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -831,7 +831,7 @@ struct FormatStyle {
     /// Never merge functions into a single line.
     SFS_None,
     /// Only merge functions defined inside a class. Same as ``inline``,
-    /// except it does not implies ``empty``: i.e. top level empty functions
+    /// except it does not imply ``empty``: i.e. top level empty functions
     /// are not merged either.
     /// \code
     ///   class Foo {

``````````

</details>


https://github.com/llvm/llvm-project/pull/150658


More information about the cfe-commits mailing list