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

Declarations

include/llvm/Support/GlobPattern.h
   32   bool match(StringRef S) const;

References

tools/clang/tools/extra/pp-trace/PPCallbacksTracker.cpp
  423       if (Filter.first.match(N))
tools/lld/Common/Strings.cpp
   46     if (pat.match(s))
tools/lld/ELF/Driver.cpp
 1388     if (pat->match(sym->getName()))
tools/llvm-objcopy/CopyConfig.h
  119     return R ? R->match(S) : G ? G->match(S) : Name == S;
unittests/Support/GlobPatternTest.cpp
   20   EXPECT_TRUE(Pat1->match(""));
   21   EXPECT_FALSE(Pat1->match("a"));
   27   EXPECT_TRUE(Pat1->match("abcdef"));
   28   EXPECT_TRUE(Pat1->match("abxcxdef"));
   29   EXPECT_FALSE(Pat1->match(""));
   30   EXPECT_FALSE(Pat1->match("xabcdef"));
   31   EXPECT_FALSE(Pat1->match("abcdefx"));
   37   EXPECT_TRUE(Pat1->match("axxc"));
   38   EXPECT_FALSE(Pat1->match("axxx"));
   39   EXPECT_FALSE(Pat1->match(""));
   45   EXPECT_TRUE(Pat1->match("*"));
   46   EXPECT_FALSE(Pat1->match("\\*"));
   47   EXPECT_FALSE(Pat1->match("a"));
   51   EXPECT_TRUE(Pat2->match("ax?c"));
   52   EXPECT_FALSE(Pat2->match("axxc"));
   53   EXPECT_FALSE(Pat2->match(""));
   59   EXPECT_TRUE(Pat1->match("a"));
   60   EXPECT_TRUE(Pat1->match("b"));
   61   EXPECT_TRUE(Pat1->match("c"));
   62   EXPECT_TRUE(Pat1->match("d"));
   63   EXPECT_TRUE(Pat1->match("e"));
   64   EXPECT_TRUE(Pat1->match("f"));
   65   EXPECT_TRUE(Pat1->match("y"));
   66   EXPECT_TRUE(Pat1->match("z"));
   67   EXPECT_FALSE(Pat1->match("g"));
   68   EXPECT_FALSE(Pat1->match(""));
   74   EXPECT_TRUE(Pat1->match("g"));
   75   EXPECT_FALSE(Pat1->match("a"));
   76   EXPECT_FALSE(Pat1->match("b"));
   77   EXPECT_FALSE(Pat1->match("c"));
   78   EXPECT_FALSE(Pat1->match("d"));
   79   EXPECT_FALSE(Pat1->match("e"));
   80   EXPECT_FALSE(Pat1->match("f"));
   81   EXPECT_FALSE(Pat1->match("y"));
   82   EXPECT_FALSE(Pat1->match("z"));
   83   EXPECT_FALSE(Pat1->match(""));
   87   EXPECT_TRUE(Pat2->match("g"));
   88   EXPECT_FALSE(Pat2->match("a"));
   89   EXPECT_FALSE(Pat2->match("b"));
   90   EXPECT_FALSE(Pat2->match("c"));
   91   EXPECT_FALSE(Pat2->match("d"));
   92   EXPECT_FALSE(Pat2->match("e"));
   93   EXPECT_FALSE(Pat2->match("f"));
   94   EXPECT_FALSE(Pat2->match("y"));
   95   EXPECT_FALSE(Pat2->match("z"));
   96   EXPECT_FALSE(Pat2->match(""));
  102   EXPECT_TRUE(Pat1->match("]x"));
  103   EXPECT_TRUE(Pat1->match("ax"));
  104   EXPECT_FALSE(Pat1->match("a]x"));
  105   EXPECT_FALSE(Pat1->match(""));
  111   EXPECT_TRUE(Pat1->match("*"));
  112   EXPECT_TRUE(Pat1->match("?"));
  113   EXPECT_TRUE(Pat1->match("^"));
  114   EXPECT_FALSE(Pat1->match("*?^"));
  115   EXPECT_FALSE(Pat1->match(""));
  131   EXPECT_TRUE(Pat1->match("axxx\xFF"));
  134   EXPECT_TRUE(Pat2->match("\xFF"));