Skip to content

Commit a4c5443

Browse files
AlexeySachkovmaksimsab
authored andcommitted
Apply comments
1 parent 8ed6c15 commit a4c5443

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

clang/include/clang/Basic/DiagnosticFrontendKinds.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ def warn_profile_data_unprofiled : Warning<
314314
} // end of instrumentation issue category
315315

316316
def warn_sycl_wrong_aspect_usage : Warning<
317-
"function '%0' uses aspect '%1' not listed in `sycl::device_has()`">,
318-
InGroup<SyclAspectUsage>;
317+
"function '%0' uses aspect '%1' not listed in 'sycl::device_has()'">,
318+
InGroup<DiagGroup<"sycl-aspect-usage">>;
319319
def note_sycl_wrong_aspect_usage : Note<
320320
"%select{the actual use is in|which is called by}0 "
321321
"%1%select{|, compile with '-g' to get source location}2">;

clang/include/clang/Basic/DiagnosticGroups.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,6 @@ def Sycl2020Compat : DiagGroup<"sycl-2020-compat">;
12391239
def SyclStrict : DiagGroup<"sycl-strict", [ Sycl2017Compat, Sycl2020Compat]>;
12401240
def SyclTarget : DiagGroup<"sycl-target">;
12411241
def SyclFPGAMismatch : DiagGroup<"sycl-fpga-mismatch">;
1242-
def SyclAspectUsage : DiagGroup<"sycl-aspect-usage">;
12431242

12441243
// Backend warnings.
12451244
def BackendInlineAsm : DiagGroup<"inline-asm">;

sycl/test/basic_tests/aspect_usage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
// RUN: %clangxx -fsycl %s -g -emit-llvm -S -o /dev/null 2>&1 | FileCheck %s --check-prefix CHECK-WARNINGS-DBG -DPATH=%s
1515

16-
// CHECK-WARNINGS: warning: function 'func1(int)' uses aspect 'fp16' not listed in `sycl::device_has()`
16+
// CHECK-WARNINGS: warning: function 'func1(int)' uses aspect 'fp16' not listed in 'sycl::device_has()'
1717
// CHECK-WARNINGS-NEXT: note: the actual use is in func3(int, int, int), compile with '-g' to get source location
1818
// CHECK-WARNINGS-NEXT: note: which is called by func2(int, int), compile with '-g' to get source location
1919
// CHECK-WARNINGS-NEXT: note: which is called by func1(int), compile with '-g' to get source location
2020
//
21-
// CHECK-WARNINGS-DBG: warning: function 'func1(int)' uses aspect 'fp16' not listed in `sycl::device_has()`
21+
// CHECK-WARNINGS-DBG: warning: function 'func1(int)' uses aspect 'fp16' not listed in 'sycl::device_has()'
2222
// CHECK-WARNINGS-DBG-NEXT: note: the actual use is in func3(int, int, int) at [[PATH]]:36:5
2323
// CHECK-WARNINGS-DBG-NEXT: note: which is called by func2(int, int) at [[PATH]]:40:34
2424
// CHECK-WARNINGS-DBG-NEXT: note: which is called by func1(int) at [[PATH]]:42:62

0 commit comments

Comments
 (0)