mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
location -> loc abbreviation (#3826)
This commit is contained in:
@@ -19,9 +19,9 @@ using ::testing::InSequence;
|
||||
|
||||
CARBON_DIAGNOSTIC(TestDiagnostic, Error, "{0}", llvm::StringLiteral);
|
||||
|
||||
struct FakeDiagnosticConverter : DiagnosticConverter<DiagnosticLocation> {
|
||||
auto ConvertLocation(DiagnosticLocation loc, ContextFnT /*context_fn*/) const
|
||||
-> DiagnosticLocation override {
|
||||
struct FakeDiagnosticConverter : DiagnosticConverter<DiagnosticLoc> {
|
||||
auto ConvertLoc(DiagnosticLoc loc, ContextFnT /*context_fn*/) const
|
||||
-> DiagnosticLoc override {
|
||||
return loc;
|
||||
}
|
||||
};
|
||||
@@ -30,7 +30,7 @@ TEST(SortedDiagnosticEmitterTest, SortErrors) {
|
||||
FakeDiagnosticConverter converter;
|
||||
Testing::MockDiagnosticConsumer consumer;
|
||||
SortingDiagnosticConsumer sorting_consumer(consumer);
|
||||
DiagnosticEmitter<DiagnosticLocation> emitter(converter, sorting_consumer);
|
||||
DiagnosticEmitter<DiagnosticLoc> emitter(converter, sorting_consumer);
|
||||
|
||||
emitter.Emit({"f", "line", 2, 1}, TestDiagnostic, "M1");
|
||||
emitter.Emit({"f", "line", 1, 1}, TestDiagnostic, "M2");
|
||||
|
||||
Reference in New Issue
Block a user