mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:30:12 +01:00
Use a filename without a line number as a cue for autoupdate. (#4677)
This is so that diagnostics which lack a location get split file clustering.
This commit is contained in:
@@ -277,7 +277,7 @@ auto FileTestBase::GetLineNumberReplacements(
|
||||
-> llvm::SmallVector<LineNumberReplacement> {
|
||||
return {{.has_file = true,
|
||||
.re = std::make_shared<RE2>(
|
||||
llvm::formatv(R"(({0}):(\d+))", llvm::join(filenames, "|"))),
|
||||
llvm::formatv(R"(({0}):(\d+)?)", llvm::join(filenames, "|"))),
|
||||
.line_formatv = R"({0})"}};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user