This revision was automatically updated to reflect the committed changes.
Closed by commit rLLDB343825: Fix typos. (authored by brucem, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D52884?vs=168279&id=168398#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D52884

Files:
  include/lldb/Utility/ConstString.h
  packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py
  source/Host/common/MainLoop.cpp
  source/Host/posix/ProcessLauncherPosixFork.cpp
  source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
  
source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp
  source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
  source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp
  tools/lldb-mi/MICmnResources.cpp
  tools/lldb-vscode/JSONUtils.h
  tools/lldb-vscode/LLDBUtils.h
  tools/lldb-vscode/README.md
  tools/lldb-vscode/lldb-vscode.cpp
  unittests/Core/BroadcasterTest.cpp
  unittests/Core/ListenerTest.cpp
  utils/sync-source/README.txt
  www/python_reference/epydoc.css

Index: unittests/Core/BroadcasterTest.cpp
===================================================================
--- unittests/Core/BroadcasterTest.cpp
+++ unittests/Core/BroadcasterTest.cpp
@@ -24,7 +24,7 @@
   Broadcaster broadcaster(nullptr, "test-broadcaster");
   std::chrono::seconds timeout(0);
 
-  // Create a listener, sign it up, make sure it recieves an event.
+  // Create a listener, sign it up, make sure it receives an event.
   ListenerSP listener1_sp = Listener::MakeListener("test-listener1");
   const uint32_t event_mask1 = 1;
   EXPECT_EQ(event_mask1,
Index: unittests/Core/ListenerTest.cpp
===================================================================
--- unittests/Core/ListenerTest.cpp
+++ unittests/Core/ListenerTest.cpp
@@ -21,7 +21,7 @@
   EventSP event_sp;
   Broadcaster broadcaster(nullptr, "test-broadcaster");
 
-  // Create a listener, sign it up, make sure it recieves an event.
+  // Create a listener, sign it up, make sure it receives an event.
   ListenerSP listener_sp = Listener::MakeListener("test-listener");
   const uint32_t event_mask = 1;
   ASSERT_EQ(event_mask,
@@ -58,7 +58,7 @@
   EventSP event_sp;
   Broadcaster broadcaster(nullptr, "test-broadcaster");
 
-  // Create a listener, sign it up, make sure it recieves an event.
+  // Create a listener, sign it up, make sure it receives an event.
   ListenerSP listener_sp = Listener::MakeListener("test-listener");
   const uint32_t event_mask = 1;
   ASSERT_EQ(event_mask,
Index: utils/sync-source/README.txt
===================================================================
--- utils/sync-source/README.txt
+++ utils/sync-source/README.txt
@@ -97,7 +97,7 @@
         # option.
         #
         # Below, I have transfer of the lldb dir skip everything
-        # rooted at "/llvm" below the the lldb dir.  This is
+        # rooted at "/llvm" below the lldb dir.  This is
         # because we want the source OS X lldb to move to
         # a destination of {some-dest-root}/llvm/tools/lldb, and
         # not have the OS-X-inverted llvm copy over with the lldb
Index: tools/lldb-mi/MICmnResources.cpp
===================================================================
--- tools/lldb-mi/MICmnResources.cpp
+++ tools/lldb-mi/MICmnResources.cpp
@@ -78,7 +78,7 @@
          "and a custom plugin.\nThe custom plugin is not necessary to operate "
          "the MI Driver."},
         {IDE_MI_APP_ARG_USAGE, "\nMI driver usage:\n\n\tlldb-mi [--longOption] "
-                               "[-s hortOption] [executeable]\n\n[] = optional "
+                               "[-s hortOption] [executable]\n\n[] = optional "
                                "argument."},
         {IDE_MI_APP_ARG_HELP, "-h\n--help\n\tPrints out usage information for "
                               "the MI debugger. Exit the MI\n\tDriver "
Index: tools/lldb-vscode/LLDBUtils.h
===================================================================
--- tools/lldb-vscode/LLDBUtils.h
+++ tools/lldb-vscode/LLDBUtils.h
@@ -27,7 +27,7 @@
 ///
 /// @param[in] prefix
 ///     A string that will be printed into \a strm prior to emitting
-///     the prmopt + command and command output. Can be NULL.
+///     the prompt + command and command output. Can be NULL.
 ///
 /// @param[in] commands
 ///     An array of LLDB commands to execute.
@@ -48,7 +48,7 @@
 ///
 /// @param[in] prefix
 ///     A string that will be printed into \a strm prior to emitting
-///     the prmopt + command and command output. Can be NULL.
+///     the prompt + command and command output. Can be NULL.
 ///
 /// @param[in] commands
 ///     An array of LLDB commands to execute.
Index: tools/lldb-vscode/JSONUtils.h
===================================================================
--- tools/lldb-vscode/JSONUtils.h
+++ tools/lldb-vscode/JSONUtils.h
@@ -379,7 +379,7 @@
 /// object:
 ///   "name" - the name of the variable
 ///   "value" - the value of the variable as a string
-///   "type" - the typename of the varaible as a string
+///   "type" - the typename of the variable as a string
 ///   "id" - a unique identifier for a value in case there are multiple
 ///          variables with the same name. Other parts of the VSCode
 ///          protocol refer to values by name so this can help
@@ -401,7 +401,7 @@
 ///     might be asked to expand itself.
 ///
 /// @param[in] varID
-///     A unique variable indentifier to help in properly identifying
+///     A unique variable identifier to help in properly identifying
 ///     variables with the same name. This is an extension to the
 ///     VS protocol.
 ///
Index: tools/lldb-vscode/lldb-vscode.cpp
===================================================================
--- tools/lldb-vscode/lldb-vscode.cpp
+++ tools/lldb-vscode/lldb-vscode.cpp
@@ -152,7 +152,7 @@
 }
 
 //----------------------------------------------------------------------
-// Send a thread stopped event for all threads as lons as the process
+// Send a thread stopped event for all threads as long as the process
 // is stopped.
 //----------------------------------------------------------------------
 void SendThreadStoppedEvent() {
@@ -191,7 +191,7 @@
       if (g_vsc.focus_tid == LLDB_INVALID_THREAD_ID)
         g_vsc.focus_tid = first_tid_with_reason;
 
-      // If no threads stopped with a reaspon, then report the first one so
+      // If no threads stopped with a reason, then report the first one so
       // we at least let the UI know we stopped.
       if (num_threads_with_reason == 0) {
         lldb::SBThread thread = process.GetThreadAtIndex(0);
@@ -324,7 +324,7 @@
 }
 
 //----------------------------------------------------------------------
-// All events from a the debugger, target, process, thread and frames are
+// All events from the debugger, target, process, thread and frames are
 // received in this function that runs in its own thread. We are using a
 // "FILE *" to output packets back to VS Code and they have mutexes in them
 // them prevent multiple threads from writing simultaneously so no locking
@@ -1623,7 +1623,7 @@
         remove_lines.push_back(pair.first);
       } else {
         pair.second.UpdateBreakpoint(request_pos->second);
-        // Remove this breakpopint from the request breakpoints since we have
+        // Remove this breakpoint from the request breakpoints since we have
         // handled it here and we don't need to set a new breakpoint below.
         request_bps.erase(request_pos);
         // Add this breakpoint info to the response
@@ -1849,7 +1849,7 @@
       // Update the existing breakpoint as any setting withing the function
       // breakpoint might have changed.
       pair.second.UpdateBreakpoint(request_pos->second);
-      // Remove this breakpopint from the request breakpoints since we have
+      // Remove this breakpoint from the request breakpoints since we have
       // handled it here and we don't need to set a new breakpoint below.
       request_bps.erase(request_pos);
       // Add this breakpoint info to the response
@@ -2334,13 +2334,13 @@
   // only specifies the variable reference of the enclosing scope/variable, and
   // the name of the variable. We could have two shadowed variables with the
   // same name in "Locals" or "Globals". In our case the "id" absolute index
-  // of the variable within the the g_vsc.variables list.
+  // of the variable within the g_vsc.variables list.
   const auto id_value = GetUnsigned(arguments, "id", UINT64_MAX);
   if (id_value != UINT64_MAX) {
     variable = g_vsc.variables.GetValueAtIndex(id_value);
   } else if (VARREF_IS_SCOPE(variablesReference)) {
     // variablesReference is one of our scopes, not an actual variable it is
-    // asking for a variable inlocals or globals or registers
+    // asking for a variable in locals or globals or registers
     int64_t start_idx = 0;
     int64_t end_idx = 0;
     switch (variablesReference) {
Index: tools/lldb-vscode/README.md
===================================================================
--- tools/lldb-vscode/README.md
+++ tools/lldb-vscode/README.md
@@ -82,7 +82,7 @@
 |**cwd**            |string| | The program working directory.
 |**env**            |dictionary| | Environment variables to set when launching the program. The format of each environment variable string is "VAR=VALUE" for environment variables with values or just "VAR" for environment variables with no values.
 |**stopOnEntry**    |boolean| | Whether to stop program immediately after launching.
-|**initCommands**   |[string]| | LLDB commands executed upon debugger startup prior to creating a the LLDB target. Commands and command output will be sent to the debugger console when they are executed.
+|**initCommands**   |[string]| | LLDB commands executed upon debugger startup prior to creating the LLDB target. Commands and command output will be sent to the debugger console when they are executed.
 |**preRunCommands** |[string]| | LLDB commands executed just before launching after the LLDB target has been created. Commands and command output will be sent to the debugger console when they are executed.
 |**stopCommands**   |[string]| | LLDB commands executed just after each stop. Commands and command output will be sent to the debugger console when they are executed.
 |**exitCommands**   |[string]| | LLDB commands executed when the program exits. Commands and command output will be sent to the debugger console when they are executed.
@@ -108,7 +108,7 @@
 |**pid**            |number  | | The process id of the process you wish to attach to. If **pid** is omitted, the debugger will attempt to attach to the program by finding a process whose file name matches the file name from **porgram**. Setting this value to `${command:pickMyProcess}` will allow interactive process selection in the IDE.
 |**stopOnEntry**    |boolean| | Whether to stop program immediately after launching.
 |**waitFor**        |boolean | | Wait for the process to launch.
-|**initCommands**   |[string]| | LLDB commands executed upon debugger startup prior to creating a the LLDB target. Commands and command output will be sent to the debugger console when they are executed.
+|**initCommands**   |[string]| | LLDB commands executed upon debugger startup prior to creating the LLDB target. Commands and command output will be sent to the debugger console when they are executed.
 |**preRunCommands** |[string]| | LLDB commands executed just before launching after the LLDB target has been created. Commands and command output will be sent to the debugger console when they are executed.
 |**stopCommands**   |[string]| | LLDB commands executed just after each stop. Commands and command output will be sent to the debugger console when they are executed.
 |**exitCommands**   |[string]| | LLDB commands executed when the program exits. Commands and command output will be sent to the debugger console when they are executed.
Index: source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp
===================================================================
--- source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp
+++ source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp
@@ -606,7 +606,7 @@
         assert(
             (generic_regnum == LLDB_REGNUM_GENERIC_PC ||
              generic_regnum == LLDB_REGNUM_GENERIC_FLAGS) &&
-            "eInfoTypeISA used for poping a register other the the PC/FLAGS");
+            "eInfoTypeISA used for popping a register other the PC/FLAGS");
         if (generic_regnum != LLDB_REGNUM_GENERIC_FLAGS) {
           m_curr_row->SetRegisterLocationToSame(reg_num,
                                                 false /*must_replace*/);
Index: source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
===================================================================
--- source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
+++ source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
@@ -482,11 +482,11 @@
      "message."},
     {LLDB_OPT_SET_ALL, false, "subsystem", 's', OptionParser::eNoArgument,
      nullptr, {}, 0, eArgTypeNone,
-     "Include the subsystem in the the message header when displaying "
+     "Include the subsystem in the message header when displaying "
      "a log message."},
     {LLDB_OPT_SET_ALL, false, "category", 'c', OptionParser::eNoArgument,
      nullptr, {}, 0, eArgTypeNone,
-     "Include the category in the the message header when displaying "
+     "Include the category in the message header when displaying "
      "a log message."},
     {LLDB_OPT_SET_ALL, false, "activity-chain", 'C', OptionParser::eNoArgument,
      nullptr, {}, 0, eArgTypeNone,
Index: source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp
===================================================================
--- source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp
+++ source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp
@@ -80,7 +80,7 @@
         void *super_ptr;                                                     \n\
     };                                                                       \n\
     struct __lldb_objc_super {                                               \n\
-        void *reciever;                                                      \n\
+        void *receiver;                                                      \n\
         struct __lldb_objc_class *class_ptr;                                 \n\
     };                                                                       \n\
     struct __lldb_msg_ref {                                                  \n\
@@ -202,7 +202,7 @@
         void *super_ptr;                                                     \n\
     };                                                                       \n\
     struct __lldb_objc_super {                                               \n\
-        void *reciever;                                                      \n\
+        void *receiver;                                                      \n\
         struct __lldb_objc_class *class_ptr;                                 \n\
     };                                                                       \n\
     struct __lldb_msg_ref {                                                  \n\
Index: source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
===================================================================
--- source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
+++ source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
@@ -2449,7 +2449,7 @@
 
   // If all of the indexed ISA variables are set, then its possible that this
   // ISA is indexed, and we should first try to get its value using the index.
-  // Note, we check these varaibles first as the ObjC runtime will set at least
+  // Note, we check these variables first as the ObjC runtime will set at least
   // one of their values to 0 if they aren't needed.
   if (m_objc_debug_indexed_isa_magic_mask &&
       m_objc_debug_indexed_isa_magic_value &&
@@ -2536,7 +2536,7 @@
     return false;
   }
 
-  // Definately not an indexed ISA, so try to use a mask to extract the pointer
+  // Definitely not an indexed ISA, so try to use a mask to extract the pointer
   // from the ISA.
   if ((isa & m_objc_debug_isa_magic_mask) == m_objc_debug_isa_magic_value) {
     ret_isa = isa & m_objc_debug_isa_class_mask;
Index: source/Host/common/MainLoop.cpp
===================================================================
--- source/Host/common/MainLoop.cpp
+++ source/Host/common/MainLoop.cpp
@@ -309,7 +309,7 @@
   g_signal_flags[signo] = 0;
 
   // Even if using kqueue, the signal handler will still be invoked, so it's
-  // important to replace it with our "bening" handler.
+  // important to replace it with our "benign" handler.
   int ret = sigaction(signo, &new_action, &info.old_action);
   assert(ret == 0 && "sigaction failed");
 
@@ -321,7 +321,7 @@
 #endif
 
   // If we're using kqueue, the signal needs to be unblocked in order to
-  // recieve it. If using pselect/ppoll, we need to block it, and later unblock
+  // receive it. If using pselect/ppoll, we need to block it, and later unblock
   // it as a part of the system call.
   ret = pthread_sigmask(HAVE_SYS_EVENT_H ? SIG_UNBLOCK : SIG_BLOCK,
                         &new_action.sa_mask, &old_set);
Index: source/Host/posix/ProcessLauncherPosixFork.cpp
===================================================================
--- source/Host/posix/ProcessLauncherPosixFork.cpp
+++ source/Host/posix/ProcessLauncherPosixFork.cpp
@@ -157,7 +157,7 @@
 
 #if defined(__linux__)
   if (errno == ETXTBSY) {
-    // On android M and earlier we can get this error because the adb deamon
+    // On android M and earlier we can get this error because the adb daemon
     // can hold a write handle on the executable even after it has finished
     // uploading it. This state lasts only a short time and happens only when
     // there are many concurrent adb commands being issued, such as when
Index: www/python_reference/epydoc.css
===================================================================
--- www/python_reference/epydoc.css
+++ www/python_reference/epydoc.css
@@ -176,7 +176,7 @@
                               font-family: monospace; }
 
 /* Variable values
- *   - In the 'variable details' sections, each varaible's value is
+ *   - In the 'variable details' sections, each variable's value is
  *     listed in a 'pre.variable' box.  The width of this box is
  *     restricted to 80 chars; if the value's repr is longer than
  *     this it will be wrapped, using a backslash marked with
Index: include/lldb/Utility/ConstString.h
===================================================================
--- include/lldb/Utility/ConstString.h
+++ include/lldb/Utility/ConstString.h
@@ -253,7 +253,7 @@
   //------------------------------------------------------------------
   /// Clear this object's state.
   ///
-  /// Clear any contained string and reset the value to the an empty string
+  /// Clear any contained string and reset the value to the empty string
   /// value.
   //------------------------------------------------------------------
   void Clear() { m_string = nullptr; }
Index: packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py
===================================================================
--- packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py
+++ packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py
@@ -907,7 +907,7 @@
         '--vscode',
         type='string',
         dest='vscode_path',
-        help=('The path to the a command line program that implements the '
+        help=('The path to the command line program that implements the '
               'Visual Studio Code Debug Adaptor protocol.'),
         default=None)
 
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to