Skip to content

Commit bf4d6d9

Browse files
committed
Fix diagnostic message formats for 21.x
1 parent 5cf8006 commit bf4d6d9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

clang/include/clang/Basic/DiagnosticCommonKinds.td

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,12 +410,12 @@ def err_module_format_unhandled : Error<
410410
def err_clangrules_message : Error<"%0">;
411411
def warn_clangrules_message : Warning<"%0">, InGroup<DiagGroup<"clangrules">>;
412412
def note_clangrules_message : Note<"%0">;
413-
def err_clangrules_rule_name_is_prefixed : Error<"Rule name '%0' must be unprefixed and not contain a '/' character.">;
414-
def err_clangrules_ruleset_name_is_prefixed : Error<"Ruleset name '%0' must be unprefixed and not contain a '/' character.">;
415-
def err_clangrules_ruleset_severity_is_notset : Error<"Ruleset '%0' severity must be a value other than 'NotSet'.">;
416-
def err_clangrules_rule_name_conflict : Error<"Namespaced rule name '%0' is already declared in another .clang-rules file. Try using a different namespace to avoid conflicts.">;
417-
def err_clangrules_rule_missing : Error<"Namespaced ruleset '%0' requested namespaced rule '%1' but it wasn't known at runtime. Make sure it is declared in either the same .clang-rules file, or in a .clang-rules file in a parent directory.">;
418-
def err_clangrules_rule_matcher_parse_failure : Error<"Namespaced rule '%0' matcher failed to parse: %1">;
413+
def err_clangrules_rule_name_is_prefixed : Error<"rule name '%0' must be unprefixed and not contain a '/' character">;
414+
def err_clangrules_ruleset_name_is_prefixed : Error<"ruleset name '%0' must be unprefixed and not contain a '/' character">;
415+
def err_clangrules_ruleset_severity_is_notset : Error<"ruleset '%0' severity must be a value other than 'NotSet'">;
416+
def err_clangrules_rule_name_conflict : Error<"namespaced rule name '%0' is already declared in another .clang-rules file; try using a different namespace to avoid conflicts">;
417+
def err_clangrules_rule_missing : Error<"namespaced ruleset '%0' requested namespaced rule '%1' but it wasn't known at runtime; make sure it is declared in either the same .clang-rules file, or in a .clang-rules file in a parent directory">;
418+
def err_clangrules_rule_matcher_parse_failure : Error<"namespaced rule '%0' matcher failed to parse: %1">;
419419

420420
// API notes
421421
def err_apinotes_message : Error<"%0">;

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3668,12 +3668,12 @@ def err_attribute_patchable_function_entry_invalid_section
36683668

36693669
// @unreal: BEGIN
36703670
def warn_unreal_data_discarded_on_new_specifier : Warning<
3671-
"previous Unreal Engine data discarded on new specifier">,
3671+
"previous unreal engine data discarded on new specifier">,
36723672
InGroup<UnrealEngine>;
36733673
def note_unreal_data_previous_location : Note<
36743674
"previously discarded metadata was located here">;
36753675
def err_unreal_annotation_found_in_unexpected_place : Error<
3676-
"Unreal Engine macro used in unexpected place">;
3676+
"unreal engine macro used in unexpected place">;
36773677
def warn_iwyu_remove_unused_header : Warning<
36783678
"#include header is completely unused and can be removed">,
36793679
InGroup<IncludeWhatYouUse>;

0 commit comments

Comments
 (0)