Skip to content

Commit 1b2a956

Browse files
[NFC][SpecialCaseList] Re-order methods (#163278)
To match lifetime usage order. Co-authored-by: Tarun Prabhu <[email protected]>
1 parent f9910a2 commit 1b2a956

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/Support/SpecialCaseList.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ class SpecialCaseList {
164164
public:
165165
LLVM_ABI Matcher(bool UseGlobs, bool RemoveDotSlash);
166166

167+
LLVM_ABI Error insert(StringRef Pattern, unsigned LineNumber);
168+
167169
LLVM_ABI void
168170
match(StringRef Query,
169171
llvm::function_ref<void(StringRef Rule, unsigned LineNo)> Cb) const;
@@ -174,8 +176,6 @@ class SpecialCaseList {
174176
return R;
175177
}
176178

177-
LLVM_ABI Error insert(StringRef Pattern, unsigned LineNumber);
178-
179179
std::variant<RegexMatcher, GlobMatcher> M;
180180
bool RemoveDotSlash;
181181
};

0 commit comments

Comments
 (0)