diff options
Diffstat (limited to 'source/Plugins/Process/Linux/ProcFileReader.h')
-rw-r--r-- | source/Plugins/Process/Linux/ProcFileReader.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/source/Plugins/Process/Linux/ProcFileReader.h b/source/Plugins/Process/Linux/ProcFileReader.h index 7b3812433068..dcdb3553d8c3 100644 --- a/source/Plugins/Process/Linux/ProcFileReader.h +++ b/source/Plugins/Process/Linux/ProcFileReader.h @@ -18,18 +18,18 @@ namespace lldb_private { namespace process_linux { - class ProcFileReader - { - public: - - static lldb::DataBufferSP - ReadIntoDataBuffer (lldb::pid_t pid, const char *name); - - /// Parse the /proc/{@a pid}/{@a name} file line by line, passing each line to line_parser, until - /// either end of file or until line_parser returns false. - static Error - ProcessLineByLine (lldb::pid_t pid, const char *name, std::function<bool (const std::string &line)> line_parser); - }; +class ProcFileReader { +public: + static lldb::DataBufferSP ReadIntoDataBuffer(lldb::pid_t pid, + const char *name); + + /// Parse the /proc/{@a pid}/{@a name} file line by line, passing each line to + /// line_parser, until + /// either end of file or until line_parser returns false. + static Error + ProcessLineByLine(lldb::pid_t pid, const char *name, + std::function<bool(const std::string &line)> line_parser); +}; } // namespace process_linux } // namespace lldb_private |