Skip to content

Commit 6df1276

Browse files
authored
[NFC][GlobPattern] Add doc strings to prefix/suffix methods (#164514)
1 parent 5f0f758 commit 6df1276

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/include/llvm/Support/GlobPattern.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ class GlobPattern {
7272
return SubGlobs[0].getPat() == "*";
7373
}
7474

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.
7579
StringRef prefix() const { return Pattern.take_front(PrefixSize); }
80+
// Returns plain suffix of the pattern.
7681
StringRef suffix() const { return Pattern.take_back(SuffixSize); }
7782

7883
private:

0 commit comments

Comments
 (0)