[Lldb-commits] [lldb] 2db8461 - [lldb][NFC] Fix inversed documentation of Process::GetID/SetID

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 10 07:16:30 PDT 2021


Author: Raphael Isemann
Date: 2021-08-10T16:15:57+02:00
New Revision: 2db8461a9492cb64046a085f35048b9c4e45bfc2

URL: https://github.com/llvm/llvm-project/commit/2db8461a9492cb64046a085f35048b9c4e45bfc2
DIFF: https://github.com/llvm/llvm-project/commit/2db8461a9492cb64046a085f35048b9c4e45bfc2.diff

LOG: [lldb][NFC] Fix inversed documentation of Process::GetID/SetID

Added: 
    

Modified: 
    lldb/include/lldb/Target/Process.h

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Target/Process.h b/lldb/include/lldb/Target/Process.h
index aaa2470d29319..8dcc15b1667b8 100644
--- a/lldb/include/lldb/Target/Process.h
+++ b/lldb/include/lldb/Target/Process.h
@@ -536,13 +536,13 @@ class Process : public std::enable_shared_from_this<Process>,
 
   uint32_t GetAddressByteSize() const;
 
+  /// Returns the pid of the process or LLDB_INVALID_PROCESS_ID if there is
+  /// no known pid.
+  lldb::pid_t GetID() const { return m_pid; }
+
   /// Sets the stored pid.
   ///
   /// This does not change the pid of underlying process.
-  lldb::pid_t GetID() const { return m_pid; }
-
-  /// Returns the pid of the process or LLDB_INVALID_PROCESS_ID if there is
-  /// no known pid.
   void SetID(lldb::pid_t new_pid) { m_pid = new_pid; }
 
   uint32_t GetUniqueID() const { return m_process_unique_id; }


        


More information about the lldb-commits mailing list