Skip to content

Commit 7ab9acd

Browse files
kiszkAaronBallman
authored andcommitted
Fix trivial typos in comments; NFC
1 parent ec3d8e6 commit 7ab9acd

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

clang-tools-extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ static bool isDestExprFix(const MatchFinder::MatchResult &Result,
393393
}
394394

395395
// If the destination array is the same length as the given length we have to
396-
// increase the capacity by one to create space for the the null terminator.
396+
// increase the capacity by one to create space for the null terminator.
397397
static bool isDestCapacityFix(const MatchFinder::MatchResult &Result,
398398
DiagnosticBuilder &Diag) {
399399
bool IsOverflows = isDestCapacityOverflows(Result);

clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ std::string VariableNamer::createIndexName() {
867867
return OldIndex->getName();
868868
}
869869

870-
/// Determines whether or not the the name \a Symbol conflicts with
870+
/// Determines whether or not the name \a Symbol conflicts with
871871
/// language keywords or defined macros. Also checks if the name exists in
872872
/// LoopContext, any of its parent contexts, or any of its child statements.
873873
///

clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class DependencyFinderASTVisitor
145145
///
146146
/// In order to avoid this, this class looks at the container expression
147147
/// `arr[k]` and decides whether or not it contains a sub-expression declared
148-
/// within the the loop body.
148+
/// within the loop body.
149149
bool dependsOnInsideVariable(const clang::Stmt *Body) {
150150
DependsOnInsideVariable = false;
151151
TraverseStmt(const_cast<clang::Stmt *>(Body));

clang-tools-extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void ReplaceAutoPtrCheck::registerMatchers(MatchFinder *Finder) {
114114
this);
115115

116116
// Find ownership transfers via copy construction and assignment.
117-
// AutoPtrOwnershipTransferId is bound to the the part that has to be wrapped
117+
// AutoPtrOwnershipTransferId is bound to the part that has to be wrapped
118118
// into std::move().
119119
// std::auto_ptr<int> i, j;
120120
// i = j;

clang-tools-extra/clangd/CodeComplete.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ struct CodeCompleteOptions {
6161
bool IncludeIneligibleResults = false;
6262

6363
/// Combine overloads into a single completion item where possible.
64-
/// If none, the the implementation may choose an appropriate behavior.
64+
/// If none, the implementation may choose an appropriate behavior.
6565
/// (In practice, ClangdLSPServer enables bundling if the client claims
6666
/// to supports signature help).
6767
llvm::Optional<bool> BundleOverloads;

clang-tools-extra/clangd/unittests/TweakTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ TEST_F(ObjCLocalizeStringLiteralTest, Test) {
127127
ExtraArgs.push_back("-x");
128128
ExtraArgs.push_back("objective-c");
129129

130-
// Ensure the the action can be initiated in the string literal.
130+
// Ensure the action can be initiated in the string literal.
131131
EXPECT_AVAILABLE(R"(id x = ^[[@[[^"^t^est^"]]]];)");
132132

133133
// Ensure that the action can't be initiated in other places.

clang-tools-extra/docs/doxygen.cfg.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ PROJECT_NUMBER = @PACKAGE_VERSION@
4646

4747
PROJECT_BRIEF =
4848

49-
# With the PROJECT_LOGO tag one can specify an logo or icon that is included in
49+
# With the PROJECT_LOGO tag one can specify a logo or icon that is included in
5050
# the documentation. The maximum height of the logo should not exceed 55 pixels
5151
# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo
5252
# to the output directory.

0 commit comments

Comments
 (0)