Skip to content

Commit 5d150af

Browse files
authored
[SYCL] Fix some incorrect diagnostic wording; NFC (#3705)
1 parent 4e26734 commit 5d150af

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11328,7 +11328,7 @@ def warn_sycl_kernel_too_big_args : Warning<
1132811328
"size of kernel arguments (%0 bytes) may exceed the supported maximum "
1132911329
"of %1 bytes on some devices">, InGroup<SyclStrict>, ShowInSystemHeader;
1133011330
def err_sycl_virtual_types : Error<
11331-
"No class with a vtable can be used in a SYCL kernel or any code included in the kernel">;
11331+
"no class with a vtable can be used in a SYCL kernel or any code included in the kernel">;
1133211332
def note_sycl_recursive_function_declared_here: Note<"function implemented using recursion declared here">;
1133311333
def err_sycl_non_trivially_copy_ctor_dtor_type
1133411334
: Error<"kernel parameter has non-trivially %select{copy "
@@ -11349,7 +11349,7 @@ def err_sycl_attribute_internal_function
1134911349
: Error<"%0 attribute cannot be applied to a "
1135011350
"static function or function in an anonymous namespace">;
1135111351
def err_sycl_compiletime_property_duplication : Error<
11352-
"Can't apply %0 property twice to the same accessor">;
11352+
"can't apply %0 property twice to the same accessor">;
1135311353
def err_sycl_invalid_property_list_param_number : Error<
1135411354
"%0 must have exactly one template parameter">;
1135511355
def err_sycl_invalid_accessor_property_template_param : Error<
@@ -11363,10 +11363,10 @@ def err_sycl_num_kernel_wrong_reqd_wg_size : Error<
1136311363
"%0 attribute must evenly divide the work-group size for the %1 attribute">;
1136411364

1136511365
def warn_sycl_pass_by_value_deprecated
11366-
: Warning<"Passing kernel functions by value is deprecated in SYCL 2020">,
11366+
: Warning<"passing kernel functions by value is deprecated in SYCL 2020">,
1136711367
InGroup<Sycl2020Compat>, ShowInSystemHeader;
1136811368
def warn_sycl_pass_by_reference_future
11369-
: Warning<"Passing of kernel functions by reference is a SYCL 2020 extension">,
11369+
: Warning<"passing of kernel functions by reference is a SYCL 2020 extension">,
1137011370
InGroup<Sycl2017Compat>, ShowInSystemHeader;
1137111371
def warn_sycl_implicit_decl
1137211372
: Warning<"SYCL 1.2.1 specification requires an explicit forward "

clang/test/CodeGenSYCL/kernel-by-reference.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ int simple_add(int i) {
1515
int main() {
1616
queue q;
1717
#if defined(SYCL2020)
18-
// expected-warning@#KernelSingleTask2017 {{Passing kernel functions by value is deprecated in SYCL 2020}}
18+
// expected-warning@#KernelSingleTask2017 {{passing kernel functions by value is deprecated in SYCL 2020}}
1919
// expected-note@+3 {{in instantiation of function template specialization}}
2020
#endif
2121
q.submit([&](handler &h) {
2222
h.single_task_2017<class sycl2017>([]() { simple_add(10); });
2323
});
2424

2525
#if defined(SYCL2017)
26-
// expected-warning@#KernelSingleTask {{Passing of kernel functions by reference is a SYCL 2020 extension}}
26+
// expected-warning@#KernelSingleTask {{passing of kernel functions by reference is a SYCL 2020 extension}}
2727
// expected-note@+3 {{in instantiation of function template specialization}}
2828
#endif
2929
q.submit([&](handler &h) {

clang/test/SemaSYCL/buffer_location.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ int main() {
8686
accessorD.use();
8787
//expected-error@+1{{sixth template parameter of the accessor must be of accessor_property_list type}}
8888
accessorE.use();
89-
//expected-error@+1{{Can't apply buffer_location property twice to the same accessor}}
89+
//expected-error@+1{{can't apply buffer_location property twice to the same accessor}}
9090
accessorF.use();
9191
#endif
9292
});

0 commit comments

Comments
 (0)