[clang] b9731a4 - [clang-format][doc] Minor cleanup
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 24 23:15:48 PST 2024
Author: Owen Pan
Date: 2024-11-24T23:15:39-08:00
New Revision: b9731a479cb053cd07cc5f460b097c5f2d5f396e
URL: https://github.com/llvm/llvm-project/commit/b9731a479cb053cd07cc5f460b097c5f2d5f396e
DIFF: https://github.com/llvm/llvm-project/commit/b9731a479cb053cd07cc5f460b097c5f2d5f396e.diff
LOG: [clang-format][doc] Minor cleanup
Added:
Modified:
clang/docs/ClangFormat.rst
clang/include/clang/Format/Format.h
clang/tools/clang-format/ClangFormat.cpp
Removed:
################################################################################
diff --git a/clang/docs/ClangFormat.rst b/clang/docs/ClangFormat.rst
index 7afad5b15b2d54..e17d741b0a00eb 100644
--- a/clang/docs/ClangFormat.rst
+++ b/clang/docs/ClangFormat.rst
@@ -33,7 +33,7 @@ to format C/C++/Java/JavaScript/JSON/Objective-C/Protobuf/C# code.
Clang-format options:
--Werror - If set, changes formatting warnings to errors
- --Wno-error=<value> - If set don't error out on the specified warning type.
+ --Wno-error=<value> - If set, don't error out on the specified warning type.
=unknown - If set, unknown format options are only warned about.
This can be used to enable formatting, even if the
configuration contains unknown (newer) options.
diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h
index ea6b414618c1d0..056fad2cc0ff8c 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -4970,12 +4970,11 @@ struct FormatStyle {
/// \version 12
std::vector<std::string> StatementAttributeLikeMacros;
- /// A vector of macros that should be interpreted as complete
- /// statements.
+ /// A vector of macros that should be interpreted as complete statements.
///
- /// Typical macros are expressions, and require a semi-colon to be
- /// added; sometimes this is not the case, and this allows to make
- /// clang-format aware of such cases.
+ /// Typical macros are expressions and require a semicolon to be added.
+ /// Sometimes this is not the case, and this allows to make clang-format aware
+ /// of such cases.
///
/// For example: Q_UNUSED
/// \version 8
diff --git a/clang/tools/clang-format/ClangFormat.cpp b/clang/tools/clang-format/ClangFormat.cpp
index cc735e48725921..5481bb6b87503c 100644
--- a/clang/tools/clang-format/ClangFormat.cpp
+++ b/clang/tools/clang-format/ClangFormat.cpp
@@ -178,7 +178,7 @@ enum class WNoError { Unknown };
static cl::bits<WNoError> WNoErrorList(
"Wno-error",
- cl::desc("If set don't error out on the specified warning type."),
+ cl::desc("If set, don't error out on the specified warning type."),
cl::values(
clEnumValN(WNoError::Unknown, "unknown",
"If set, unknown format options are only warned about.\n"
More information about the cfe-commits
mailing list