[llvm] 1b2a956 - [NFC][SpecialCaseList] Re-order methods (#163278)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 13 15:45:57 PDT 2025
Author: Vitaly Buka
Date: 2025-10-13T22:45:53Z
New Revision: 1b2a956d13ee1df96d5ca9bc32e9b6d1237a129a
URL: https://github.com/llvm/llvm-project/commit/1b2a956d13ee1df96d5ca9bc32e9b6d1237a129a
DIFF: https://github.com/llvm/llvm-project/commit/1b2a956d13ee1df96d5ca9bc32e9b6d1237a129a.diff
LOG: [NFC][SpecialCaseList] Re-order methods (#163278)
To match lifetime usage order.
Co-authored-by: Tarun Prabhu <tarun at lanl.gov>
Added:
Modified:
llvm/include/llvm/Support/SpecialCaseList.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/SpecialCaseList.h b/llvm/include/llvm/Support/SpecialCaseList.h
index 466e2a40c9093..477987c576965 100644
--- a/llvm/include/llvm/Support/SpecialCaseList.h
+++ b/llvm/include/llvm/Support/SpecialCaseList.h
@@ -164,6 +164,8 @@ class SpecialCaseList {
public:
LLVM_ABI Matcher(bool UseGlobs, bool RemoveDotSlash);
+ LLVM_ABI Error insert(StringRef Pattern, unsigned LineNumber);
+
LLVM_ABI void
match(StringRef Query,
llvm::function_ref<void(StringRef Rule, unsigned LineNo)> Cb) const;
@@ -174,8 +176,6 @@ class SpecialCaseList {
return R;
}
- LLVM_ABI Error insert(StringRef Pattern, unsigned LineNumber);
-
std::variant<RegexMatcher, GlobMatcher> M;
bool RemoveDotSlash;
};
More information about the llvm-commits
mailing list