reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
311 static std::string EscapeLLDBCommandArgument(const std::string &arg,
398 Args::EscapeLLDBCommandArgument(common_prefix, quote_char);
tools/lldb/unittests/Utility/ArgsTest.cpp222 EXPECT_EQ("foo\\'", Args::EscapeLLDBCommandArgument(foo, '\0')); 223 EXPECT_EQ("foo'", Args::EscapeLLDBCommandArgument(foo, '\'')); 224 EXPECT_EQ("foo'", Args::EscapeLLDBCommandArgument(foo, '`')); 225 EXPECT_EQ("foo'", Args::EscapeLLDBCommandArgument(foo, '"')); 228 EXPECT_EQ("bar\\\"", Args::EscapeLLDBCommandArgument(bar, '\0')); 229 EXPECT_EQ("bar\"", Args::EscapeLLDBCommandArgument(bar, '\'')); 230 EXPECT_EQ("bar\"", Args::EscapeLLDBCommandArgument(bar, '`')); 231 EXPECT_EQ("bar\\\"", Args::EscapeLLDBCommandArgument(bar, '"')); 234 EXPECT_EQ("baz\\`", Args::EscapeLLDBCommandArgument(baz, '\0')); 235 EXPECT_EQ("baz`", Args::EscapeLLDBCommandArgument(baz, '\'')); 236 EXPECT_EQ("baz`", Args::EscapeLLDBCommandArgument(baz, '`')); 237 EXPECT_EQ("baz\\`", Args::EscapeLLDBCommandArgument(baz, '"')); 240 EXPECT_EQ("quux\\\t", Args::EscapeLLDBCommandArgument(quux, '\0')); 241 EXPECT_EQ("quux\t", Args::EscapeLLDBCommandArgument(quux, '\'')); 242 EXPECT_EQ("quux\t", Args::EscapeLLDBCommandArgument(quux, '`')); 243 EXPECT_EQ("quux\t", Args::EscapeLLDBCommandArgument(quux, '"'));