[llvm] [SpecialCaseList] Remove ./ from file path (PR #162437)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 8 10:03:11 PDT 2025
================
@@ -164,12 +167,16 @@ bool SpecialCaseList::parse(unsigned FileIdx, const MemoryBuffer *MB,
// https://discourse.llvm.org/t/use-glob-instead-of-regex-for-specialcaselists/71666
bool UseGlobs = Version > 1;
+ bool RemoveDotSlash = Version > 2;
+
Section *CurrentSection;
if (auto Err = addSection("*", FileIdx, 1).moveInto(CurrentSection)) {
Error = toString(std::move(Err));
return false;
}
+ constexpr StringRef PathPrefixes[] = {"src", "!src", "mainfile", "source"};
----------------
fmayer wrote:
can you add a comment why we have this list of prefixes?
https://github.com/llvm/llvm-project/pull/162437
More information about the llvm-commits
mailing list