Skip to content

Commit 237c4c4

Browse files
author
v01dxyz
committed
Fix typos for diagnosis
1 parent 4c34086 commit 237c4c4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2337,11 +2337,11 @@ def note_in_reference_temporary_list_initializer : Note<
23372337
def note_var_fixit_add_initialization : Note<
23382338
"initialize the variable %0 to silence this warning">;
23392339
def warn_cheri_compartment_void_return_type : Warning <
2340-
"void return on a cross-compartment call make it impossible for callers to detect failure">,
2340+
"void return on a cross-compartment call makes it impossible for callers to detect failure">,
23412341
InGroup<CHERICompartmentReturnVoid>;
23422342
def note_cheri_compartment_void_return_type : Note<"replace void return type with int">;
23432343
def warn_cheri_compartment_return_void_or_falloff : Warning <
2344-
"Cross-compartement calls that always succeed should return 0 instead">,
2344+
"cross-compartement calls that always succeed should return 0 instead">,
23452345
InGroup<CHERICompartmentReturnVoid>;
23462346
def note_uninit_fixit_remove_cond : Note<
23472347
"remove the %select{'%1' if its condition|condition if it}0 "

clang/test/Sema/cheri/cheri-compartment-warn-if-return-void-or-unused.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
//
66

77
// -fdiagnostics-fixit-info
8-
__attribute__((cheri_compartment("example"))) void void_return_type_f(int a) // expected-warning{{void return on a cross-compartment call make it impossible for callers to detect failure}} expected-note{{replace void return type with int}}
8+
__attribute__((cheri_compartment("example"))) void void_return_type_f(int a) // expected-warning{{void return on a cross-compartment call makes it impossible for callers to detect failure}} expected-note{{replace void return type with int}}
99
{
1010
if (a) {
1111
/// CHECK: fix-it:"{{.*}}":{[[@LINE+1]]:[[COL:[0-9]+]]-[[@LINE+1]]:[[COL]]}:" 0"
12-
return; // expected-warning{{Cross-compartement calls that always succeed should return 0 instead}}
12+
return; // expected-warning{{cross-compartement calls that always succeed should return 0 instead}}
1313
}
14-
} // expected-warning{{Cross-compartement calls that always succeed should return 0 instead}}
14+
} // expected-warning{{cross-compartement calls that always succeed should return 0 instead}}
1515

1616
__attribute__((cheri_compartment("example"))) int int_return_type_f() {
1717
return 0;

0 commit comments

Comments
 (0)