We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f0f758 commit 6df1276Copy full SHA for 6df1276
llvm/include/llvm/Support/GlobPattern.h
@@ -72,7 +72,12 @@ class GlobPattern {
72
return SubGlobs[0].getPat() == "*";
73
}
74
75
+ // The following functions are just shortcuts for faster matching. They are
76
+ // conservative to simplify implementations.
77
+
78
+ // Returns plain prefix of the pattern.
79
StringRef prefix() const { return Pattern.take_front(PrefixSize); }
80
+ // Returns plain suffix of the pattern.
81
StringRef suffix() const { return Pattern.take_back(SuffixSize); }
82
83
private:
0 commit comments