Skip to content

Commit c8f4792

Browse files
Rageking8kadircet
authored andcommitted
Fix dupe word typos
This revision fixes typos where there are 2 consecutive words which are duplicated. There should be no code changes in this revision (only changes to comments and docs). Do let me know if there are any undesirable changes in this revision. Thanks.
1 parent 8249dc2 commit c8f4792

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

clang-tools-extra/clangd/Headers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class IncludeStructure::RecordHeaders : public PPCallbacks,
164164
LastPragmaKeepInMainFileLine =
165165
SM.getLineNumber(SM.getMainFileID(), Offset) - 1;
166166
} else {
167-
// Memorize headers that that have export pragmas in them. Include Cleaner
167+
// Memorize headers that have export pragmas in them. Include Cleaner
168168
// does not support them properly yet, so they will be not marked as
169169
// unused.
170170
// FIXME: Once IncludeCleaner supports export pragmas, remove this.

clang-tools-extra/clangd/Protocol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,7 @@ struct SemanticTokensDeltaParams {
17001700
bool fromJSON(const llvm::json::Value &Params, SemanticTokensDeltaParams &R,
17011701
llvm::json::Path);
17021702

1703-
/// Describes a a replacement of a contiguous range of semanticTokens.
1703+
/// Describes a replacement of a contiguous range of semanticTokens.
17041704
struct SemanticTokensEdit {
17051705
// LSP specifies `start` and `deleteCount` which are relative to the array
17061706
// encoding of the previous tokens.

clang-tools-extra/clangd/Selection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ class SelectionTester {
395395
// Implausible if upperbound(Tok) < First.
396396
if (auto Offset = LastAffectedToken(Tok.location()))
397397
return *Offset < First;
398-
// A prefix of the expanded tokens may be from an an implicit
398+
// A prefix of the expanded tokens may be from an implicit
399399
// inclusion (e.g. preamble patch, or command-line -include).
400400
return true;
401401
});

clang-tools-extra/clangd/TUScheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class TUScheduler::ASTCache {
245245
/// threads, remove()s mostly from the main thread, and get() from ASTWorker.
246246
/// Writes are rare and reads are cheap, so we don't expect much contention.
247247
class TUScheduler::HeaderIncluderCache {
248-
// We should be be a little careful how we store the include graph of open
248+
// We should be a little careful how we store the include graph of open
249249
// files, as each can have a large number of transitive headers.
250250
// This representation is O(unique transitive source files).
251251
llvm::BumpPtrAllocator Arena;

clang-tools-extra/clangd/index/CanonicalIncludes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class CanonicalIncludes {
4242
/// Returns the overridden include for symbol with \p QualifiedName, or "".
4343
llvm::StringRef mapSymbol(llvm::StringRef QualifiedName) const;
4444

45-
/// Returns the overridden include for for files in \p Header, or "".
45+
/// Returns the overridden include for files in \p Header, or "".
4646
llvm::StringRef mapHeader(FileEntryRef Header) const;
4747

4848
/// Adds mapping for system headers and some special symbols (e.g. STL symbols

clang-tools-extra/clangd/index/dex/Iterator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class AndIterator : public Iterator {
3434
// When children are sorted by the estimateSize(), sync() calls are more
3535
// effective. Each sync() starts with the first child and makes sure all
3636
// children point to the same element. If any child is "above" the previous
37-
// ones, the algorithm resets and and advances the children to the next
37+
// ones, the algorithm resets and advances the children to the next
3838
// highest element starting from the front. When child iterators in the
3939
// beginning have smaller estimated size, the sync() will have less restarts
4040
// and become more effective.

clang-tools-extra/clangd/support/ThreadCrashReporter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ ThreadCrashReporter::ThreadCrashReporter(SignalCallback ThreadLocalCallback)
3838
this->Next = CurrentReporter;
3939
CurrentReporter = this;
4040
// Don't reorder subsequent operations: whatever comes after might crash and
41-
// we want the the crash handler to see the reporter values we just set.
41+
// we want the crash handler to see the reporter values we just set.
4242
std::atomic_signal_fence(std::memory_order_seq_cst);
4343
}
4444

4545
ThreadCrashReporter::~ThreadCrashReporter() {
4646
assert(CurrentReporter == this);
4747
CurrentReporter = this->Next;
4848
// Don't reorder subsequent operations: whatever comes after might crash and
49-
// we want the the crash handler to see the reporter values we just set.
49+
// we want the crash handler to see the reporter values we just set.
5050
std::atomic_signal_fence(std::memory_order_seq_cst);
5151
}
5252

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ TEST_F(TUSchedulerTests, MissingHeader) {
891891
<< "Didn't expect new diagnostics when adding a/foo.h";
892892
});
893893

894-
// Forcing the reload should should cause a rebuild.
894+
// Forcing the reload should cause a rebuild.
895895
Inputs.ForceRebuild = true;
896896
updateWithDiags(
897897
S, Source, Inputs, WantDiagnostics::Yes,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ParseInputs TestTU::inputs(MockFS &FS) const {
5454
Argv.push_back("-include");
5555
Argv.push_back(ImplicitHeaderGuard ? ImportThunk : FullHeaderName);
5656
// ms-compatibility changes the meaning of #import.
57-
// The default is OS-dependent (on on windows), ensure it's off.
57+
// The default is OS-dependent (on windows), ensure it's off.
5858
if (ImplicitHeaderGuard)
5959
Inputs.CompileCommand.CommandLine.push_back("-fno-ms-compatibility");
6060
}

clang-tools-extra/clangd/unittests/remote/MarshallingTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ TEST(RemoteMarshallingTest, URIToRelativePathTranslation) {
438438
auto RelativePath = ProtobufMarshaller.uriToRelativePath(
439439
testPathURI("remote/project/lib/File.cpp", Strings));
440440
ASSERT_TRUE(bool(RelativePath));
441-
// RemoteIndexRoot has to be be a prefix of the file path.
441+
// RemoteIndexRoot has to be a prefix of the file path.
442442
Marshaller WrongMarshaller(
443443
/*RemoteIndexRoot=*/testPath("remote/other/project/"),
444444
/*LocalIndexRoot=*/"");

0 commit comments

Comments
 (0)