[llvm-branch-commits] [llvm] [NFCI] Change SpecialCaseList::inSectionBlame to return pair<uint, uint> (FileIdx, LineNo). (PR #141540)
Vitaly Buka via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue May 27 19:10:36 PDT 2025
================
@@ -145,12 +146,14 @@ class SpecialCaseList {
Section(std::unique_ptr<Matcher> M) : SectionMatcher(std::move(M)) {};
Section() : Section(std::make_unique<Matcher>()) {};
+ unsigned FileIdx;
std::unique_ptr<Matcher> SectionMatcher;
SectionEntries Entries;
std::string SectionStr;
};
std::vector<Section> Sections;
+ unsigned currFileIdx;
----------------
vitalybuka wrote:
we don't need this as part of the state
please add another argument into `addSection(fileIdx)` and `parse(fileIdx)`
https://github.com/llvm/llvm-project/pull/141540
More information about the llvm-branch-commits
mailing list