[PATCH] D139937: [clang-format] fix typo in doc for SLS_Inline
Zhikai Zeng via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 13 07:34:17 PST 2022
Backl1ght created this revision.
Backl1ght added reviewers: HazardyKnusperkeks, MyDeveloperDay.
Backl1ght added a project: clang-format.
Herald added a project: All.
Backl1ght requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D139937
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
@@ -688,7 +688,7 @@
/// };
/// \endcode
SLS_Empty,
- /// Merge lambda into a single line if argument of a function.
+ /// Merge lambda into a single line if argument of a function is empty.
/// \code
/// auto lambda = [](int a) {
/// return a;
Index: clang/docs/ClangFormatStyleOptions.rst
===================================================================
--- clang/docs/ClangFormatStyleOptions.rst
+++ clang/docs/ClangFormatStyleOptions.rst
@@ -1191,7 +1191,7 @@
};
* ``SLS_Inline`` (in configuration: ``Inline``)
- Merge lambda into a single line if argument of a function.
+ Merge lambda into a single line if argument of a function is empty.
.. code-block:: c++
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139937.482474.patch
Type: text/x-patch
Size: 932 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221213/20cc9fc6/attachment.bin>
More information about the cfe-commits
mailing list