Skip to content

Commit b9731a4

Browse files
committed
[clang-format][doc] Minor cleanup
1 parent 73bebf9 commit b9731a4

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

clang/docs/ClangFormat.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ to format C/C++/Java/JavaScript/JSON/Objective-C/Protobuf/C# code.
3333
Clang-format options:
3434
3535
--Werror - If set, changes formatting warnings to errors
36-
--Wno-error=<value> - If set don't error out on the specified warning type.
36+
--Wno-error=<value> - If set, don't error out on the specified warning type.
3737
=unknown - If set, unknown format options are only warned about.
3838
This can be used to enable formatting, even if the
3939
configuration contains unknown (newer) options.

clang/include/clang/Format/Format.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4970,12 +4970,11 @@ struct FormatStyle {
49704970
/// \version 12
49714971
std::vector<std::string> StatementAttributeLikeMacros;
49724972

4973-
/// A vector of macros that should be interpreted as complete
4974-
/// statements.
4973+
/// A vector of macros that should be interpreted as complete statements.
49754974
///
4976-
/// Typical macros are expressions, and require a semi-colon to be
4977-
/// added; sometimes this is not the case, and this allows to make
4978-
/// clang-format aware of such cases.
4975+
/// Typical macros are expressions and require a semicolon to be added.
4976+
/// Sometimes this is not the case, and this allows to make clang-format aware
4977+
/// of such cases.
49794978
///
49804979
/// For example: Q_UNUSED
49814980
/// \version 8

clang/tools/clang-format/ClangFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ enum class WNoError { Unknown };
178178

179179
static cl::bits<WNoError> WNoErrorList(
180180
"Wno-error",
181-
cl::desc("If set don't error out on the specified warning type."),
181+
cl::desc("If set, don't error out on the specified warning type."),
182182
cl::values(
183183
clEnumValN(WNoError::Unknown, "unknown",
184184
"If set, unknown format options are only warned about.\n"

0 commit comments

Comments
 (0)