Fix dupe word typos
authorRageking8 <tomleetyt@gmail.com>
Tue, 8 Nov 2022 14:28:25 +0000 (15:28 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Tue, 8 Nov 2022 14:29:12 +0000 (15:29 +0100)
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.

clang-tools-extra/clangd/Headers.cpp
clang-tools-extra/clangd/Protocol.h
clang-tools-extra/clangd/Selection.cpp
clang-tools-extra/clangd/TUScheduler.cpp
clang-tools-extra/clangd/index/CanonicalIncludes.h
clang-tools-extra/clangd/index/dex/Iterator.cpp
clang-tools-extra/clangd/support/ThreadCrashReporter.cpp
clang-tools-extra/clangd/unittests/TUSchedulerTests.cpp
clang-tools-extra/clangd/unittests/TestTU.cpp
clang-tools-extra/clangd/unittests/remote/MarshallingTests.cpp

index 52b954e..cbfeb63 100644 (file)
@@ -164,7 +164,7 @@ public:
       LastPragmaKeepInMainFileLine =
           SM.getLineNumber(SM.getMainFileID(), Offset) - 1;
     } else {
-      // Memorize headers that that have export pragmas in them. Include Cleaner
+      // Memorize headers that have export pragmas in them. Include Cleaner
       // does not support them properly yet, so they will be not marked as
       // unused.
       // FIXME: Once IncludeCleaner supports export pragmas, remove this.
index aa7c753..c4ce97f 100644 (file)
@@ -1700,7 +1700,7 @@ struct SemanticTokensDeltaParams {
 bool fromJSON(const llvm::json::Value &Params, SemanticTokensDeltaParams &R,
               llvm::json::Path);
 
-/// Describes a replacement of a contiguous range of semanticTokens.
+/// Describes a replacement of a contiguous range of semanticTokens.
 struct SemanticTokensEdit {
   // LSP specifies `start` and `deleteCount` which are relative to the array
   // encoding of the previous tokens.
index 32b23fa..fe09f6a 100644 (file)
@@ -395,7 +395,7 @@ private:
           // Implausible if upperbound(Tok) < First.
           if (auto Offset = LastAffectedToken(Tok.location()))
             return *Offset < First;
-          // A prefix of the expanded tokens may be from an an implicit
+          // A prefix of the expanded tokens may be from an implicit
           // inclusion (e.g. preamble patch, or command-line -include).
           return true;
         });
index b85b8e5..b0a83f4 100644 (file)
@@ -245,7 +245,7 @@ private:
 /// threads, remove()s mostly from the main thread, and get() from ASTWorker.
 /// Writes are rare and reads are cheap, so we don't expect much contention.
 class TUScheduler::HeaderIncluderCache {
-  // We should be be a little careful how we store the include graph of open
+  // We should be a little careful how we store the include graph of open
   // files, as each can have a large number of transitive headers.
   // This representation is O(unique transitive source files).
   llvm::BumpPtrAllocator Arena;
index 3e35efa..f6ac4a1 100644 (file)
@@ -42,7 +42,7 @@ public:
   /// Returns the overridden include for symbol with \p QualifiedName, or "".
   llvm::StringRef mapSymbol(llvm::StringRef QualifiedName) const;
 
-  /// Returns the overridden include for for files in \p Header, or "".
+  /// Returns the overridden include for files in \p Header, or "".
   llvm::StringRef mapHeader(FileEntryRef Header) const;
 
   /// Adds mapping for system headers and some special symbols (e.g. STL symbols
index fd60a13..5a65438 100644 (file)
@@ -34,7 +34,7 @@ public:
     // When children are sorted by the estimateSize(), sync() calls are more
     // effective. Each sync() starts with the first child and makes sure all
     // children point to the same element. If any child is "above" the previous
-    // ones, the algorithm resets and and advances the children to the next
+    // ones, the algorithm resets and advances the children to the next
     // highest element starting from the front. When child iterators in the
     // beginning have smaller estimated size, the sync() will have less restarts
     // and become more effective.
index 7e1d644..05afb3b 100644 (file)
@@ -38,7 +38,7 @@ ThreadCrashReporter::ThreadCrashReporter(SignalCallback ThreadLocalCallback)
   this->Next = CurrentReporter;
   CurrentReporter = this;
   // Don't reorder subsequent operations: whatever comes after might crash and
-  // we want the the crash handler to see the reporter values we just set.
+  // we want the crash handler to see the reporter values we just set.
   std::atomic_signal_fence(std::memory_order_seq_cst);
 }
 
@@ -46,7 +46,7 @@ ThreadCrashReporter::~ThreadCrashReporter() {
   assert(CurrentReporter == this);
   CurrentReporter = this->Next;
   // Don't reorder subsequent operations: whatever comes after might crash and
-  // we want the the crash handler to see the reporter values we just set.
+  // we want the crash handler to see the reporter values we just set.
   std::atomic_signal_fence(std::memory_order_seq_cst);
 }
 
index 2719a4f..ef8ef31 100644 (file)
@@ -891,7 +891,7 @@ TEST_F(TUSchedulerTests, MissingHeader) {
                         << "Didn't expect new diagnostics when adding a/foo.h";
                   });
 
-  // Forcing the reload should should cause a rebuild.
+  // Forcing the reload should cause a rebuild.
   Inputs.ForceRebuild = true;
   updateWithDiags(
       S, Source, Inputs, WantDiagnostics::Yes,
index 761d3ca..12fbd96 100644 (file)
@@ -54,7 +54,7 @@ ParseInputs TestTU::inputs(MockFS &FS) const {
     Argv.push_back("-include");
     Argv.push_back(ImplicitHeaderGuard ? ImportThunk : FullHeaderName);
     // ms-compatibility changes the meaning of #import.
-    // The default is OS-dependent (on on windows), ensure it's off.
+    // The default is OS-dependent (on windows), ensure it's off.
     if (ImplicitHeaderGuard)
       Inputs.CompileCommand.CommandLine.push_back("-fno-ms-compatibility");
   }
index 88627df..a2b3169 100644 (file)
@@ -438,7 +438,7 @@ TEST(RemoteMarshallingTest, URIToRelativePathTranslation) {
   auto RelativePath = ProtobufMarshaller.uriToRelativePath(
       testPathURI("remote/project/lib/File.cpp", Strings));
   ASSERT_TRUE(bool(RelativePath));
-  // RemoteIndexRoot has to be be a prefix of the file path.
+  // RemoteIndexRoot has to be a prefix of the file path.
   Marshaller WrongMarshaller(
       /*RemoteIndexRoot=*/testPath("remote/other/project/"),
       /*LocalIndexRoot=*/"");