Author: Shubh
Date: 2026-08-20T18:28:25Z
New Revision: c47d47a27c402646b5369165ca9c500e9687d3b0

URL: 
https://github.com/llvm/llvm-project/commit/c47d47a27c402646b5369165ca9c500e9687d3b0
DIFF: 
https://github.com/llvm/llvm-project/commit/c47d47a27c402646b5369165ca9c500e9687d3b0.diff

LOG: [clang-format][docs] Fix grammar in AllowShortFunctionsOnASingleLine 
(#217625)

## Summary

The `InlineOnly` description said "does not implies `empty`". Change to
"does not imply".

Updated both `Format.h` (source of the style option docs) and
`ClangFormatStyleOptions.md`.

Fixes #195326

Assisted-by: Grok (xAI)

Added: 
    

Modified: 
    clang/docs/ClangFormatStyleOptions.md
    clang/include/clang/Format/Format.h

Removed: 
    


################################################################################
diff  --git a/clang/docs/ClangFormatStyleOptions.md 
b/clang/docs/ClangFormatStyleOptions.md
index 8230e6f5139e7..5ee06983036c9 100644
--- a/clang/docs/ClangFormatStyleOptions.md
+++ b/clang/docs/ClangFormatStyleOptions.md
@@ -1949,7 +1949,7 @@ the configuration (without a prefix: `Auto`).
 
   - `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. See `Inline` of `ShortFunctionStyle`.
 
     ```c++

diff  --git a/clang/include/clang/Format/Format.h 
b/clang/include/clang/Format/Format.h
index 49e4666ae5e99..554ebdab09442 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -840,7 +840,7 @@ struct FormatStyle {
   ///
   /// * `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. See `Inline` of `ShortFunctionStyle`.
   ///   \code
   ///     class Foo {


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to