mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 20:08:15 +00:00
Fix diagnostic style issues (#7982)
Remove trailing `.`s and leading capitalization from diagnostics, and separate clauses with `;` rather than `.`, per https://docs.carbon-lang.dev/toolchain/docs/diagnostics.html#diagnostic-message-style-guide
This commit is contained in:
1 parent
7beb29f8b2
commit
d87891f3a6
11 files changed
+39
-39
No files matched your search
@@ -684,14 +684,14 @@ static auto CheckDefaults(Context& context, SemIR::Function& function)
|
||||
// Finished processing this tuple-pattern, emit diagnostics if any.
|
||||
if (!state->patterns_missing_defaults.empty()) {
|
||||
CARBON_DIAGNOSTIC(RequiredPatternDefaultValueMissing, Error,
|
||||
"this pattern is missing a required default value.");
|
||||
"this pattern is missing a required default value");
|
||||
CARBON_DIAGNOSTIC_LABEL(RequiredPatternDefaultValueFirstDefault, Info,
|
||||
"all patterns to the right of this first pattern "
|
||||
"with a default value must also specify a "
|
||||
"default value.");
|
||||
"default value");
|
||||
CARBON_DIAGNOSTIC_LABEL(
|
||||
RequiredPatternDefaultValueMissingAdditional, Primary,
|
||||
"this pattern is also missing a required default value.");
|
||||
"this pattern is also missing a required default value");
|
||||
auto inst_ref = llvm::ArrayRef(state->patterns_missing_defaults);
|
||||
auto builder = context.emitter().Build(
|
||||
inst_ref.consume_front(), RequiredPatternDefaultValueMissing);
|
||||
|
||||
Reference in new issue
Block a user