@@ -191,10 +191,12 @@ std::string gdb_apit::extract_memory(const std::string &line)
191
191
const std::regex pointer_pattern (
192
192
std::string (shared_prefix) + pointer_type_info + R"( \s()" + memory_address +
193
193
R"( )(\s\S+)?)" );
194
- const std::regex null_pointer_pattern (std::string (shared_prefix) + R"( (0x0))" );
194
+ const std::regex null_pointer_pattern (
195
+ std::string (shared_prefix) + R"( (0x0))" );
195
196
// Char pointer output the memory adress followed by the string in there.
196
197
const std::regex char_pointer_pattern (
197
- std::string (shared_prefix) + R"( ()" + memory_address + R"( )\s"[\S[:s:]]*")" );
198
+ std::string (shared_prefix) + R"( ()" + memory_address +
199
+ R"( )\s"[\S[:s:]]*")" );
198
200
199
201
std::smatch result;
200
202
if (regex_search (line, result, char_pointer_pattern))
@@ -222,13 +224,15 @@ std::string gdb_apit::get_value(const std::string &variable)
222
224
std::string gdb_apit::extract_value (const std::string &line)
223
225
{
224
226
// This pattern matches primitive int values and bools.
225
- const std::regex value_pattern (std::string (shared_prefix) + R"( ((?:-)?\d+|true|false))" );
227
+ const std::regex value_pattern (
228
+ std::string (shared_prefix) + R"( ((?:-)?\d+|true|false))" );
226
229
// This pattern matches the char pointer content.
227
230
// It is printed behind the address.
228
231
const std::regex char_value_pattern (
229
232
std::string (shared_prefix) + memory_address + " \\ s\" ([\\ S ]*)\" " );
230
233
// An enum entry just prints the name of the value on the commandline.
231
- const std::regex enum_value_pattern (std::string (shared_prefix) + R"( ([\S]+)(?:\n|$))" );
234
+ const std::regex enum_value_pattern (
235
+ std::string (shared_prefix) + R"( ([\S]+)(?:\n|$))" );
232
236
// A void pointer outputs it type first, followed by the memory address it
233
237
// is pointing to. This pattern should extract the address.
234
238
const std::regex void_pointer_pattern (
0 commit comments