reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/lldb/include/lldb/Utility/NameMatches.h
   24 bool NameMatches(llvm::StringRef name, NameMatch match_type,

References

tools/lldb/source/Utility/ProcessInfo.cpp
  257   return lldb_private::NameMatches(process_name, m_name_match_type, match_name);
tools/lldb/unittests/Utility/NameMatchesTest.cpp
   15   EXPECT_TRUE(NameMatches("foo", NameMatch::Ignore, "bar"));
   19   EXPECT_TRUE(NameMatches("foo", NameMatch::Equals, "foo"));
   20   EXPECT_FALSE(NameMatches("foo", NameMatch::Equals, "bar"));
   24   EXPECT_TRUE(NameMatches("foobar", NameMatch::Contains, "foo"));
   25   EXPECT_TRUE(NameMatches("foobar", NameMatch::Contains, "oob"));
   26   EXPECT_TRUE(NameMatches("foobar", NameMatch::Contains, "bar"));
   27   EXPECT_TRUE(NameMatches("foobar", NameMatch::Contains, "foobar"));
   28   EXPECT_TRUE(NameMatches("", NameMatch::Contains, ""));
   29   EXPECT_FALSE(NameMatches("", NameMatch::Contains, "foo"));
   30   EXPECT_FALSE(NameMatches("foobar", NameMatch::Contains, "baz"));
   34   EXPECT_TRUE(NameMatches("foo", NameMatch::StartsWith, "f"));
   35   EXPECT_TRUE(NameMatches("foo", NameMatch::StartsWith, ""));
   36   EXPECT_TRUE(NameMatches("", NameMatch::StartsWith, ""));
   37   EXPECT_FALSE(NameMatches("foo", NameMatch::StartsWith, "b"));
   38   EXPECT_FALSE(NameMatches("", NameMatch::StartsWith, "b"));
   42   EXPECT_TRUE(NameMatches("foo", NameMatch::EndsWith, "o"));
   43   EXPECT_TRUE(NameMatches("foo", NameMatch::EndsWith, ""));
   44   EXPECT_TRUE(NameMatches("", NameMatch::EndsWith, ""));
   45   EXPECT_FALSE(NameMatches("foo", NameMatch::EndsWith, "b"));
   46   EXPECT_FALSE(NameMatches("", NameMatch::EndsWith, "b"));
   50   EXPECT_TRUE(NameMatches("foobar", NameMatch::RegularExpression, "foo"));
   51   EXPECT_TRUE(NameMatches("foobar", NameMatch::RegularExpression, "f[oa]o"));
   52   EXPECT_FALSE(NameMatches("foo", NameMatch::RegularExpression, ""));
   53   EXPECT_FALSE(NameMatches("", NameMatch::RegularExpression, ""));
   54   EXPECT_FALSE(NameMatches("foo", NameMatch::RegularExpression, "b"));
   55   EXPECT_FALSE(NameMatches("", NameMatch::RegularExpression, "b"));
   56   EXPECT_FALSE(NameMatches("^a", NameMatch::RegularExpression, "^a"));