Skip to content

Commit 22f02db

Browse files
committed
[Matrix] Group matrix diagnostics together (NFC).
1 parent e367c00 commit 22f02db

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10789,35 +10789,28 @@ def err_matrix_separate_incomplete_index: Error<
1078910789
"matrix row and column subscripts cannot be separated by any expression">;
1079010790
def err_matrix_subscript_comma: Error<
1079110791
"comma expressions are not allowed as indices in matrix subscript expressions">;
10792-
10793-
def warn_mismatched_import : Warning<
10794-
"import %select{module|name}0 (%1) does not match the import %select{module|name}0 (%2) of the "
10795-
"previous declaration">,
10796-
InGroup<IgnoredAttributes>;
10797-
def warn_import_on_definition : Warning<
10798-
"import %select{module|name}0 cannot be applied to a function with a definition">,
10799-
InGroup<IgnoredAttributes>;
10800-
1080110792
def err_builtin_matrix_arg: Error<"first argument must be a matrix">;
10802-
1080310793
def err_builtin_matrix_scalar_unsigned_arg: Error<
1080410794
"%0 argument must be a constant unsigned integer expression">;
10805-
1080610795
def err_builtin_matrix_pointer_arg: Error<
1080710796
"%0 argument must be a pointer to a valid matrix element type">;
10808-
1080910797
def err_builtin_matrix_pointer_arg_mismatch: Error<
1081010798
"the pointee of the second argument must match the element type of the first argument (%0 != %1)">;
10811-
1081210799
def err_builtin_matrix_store_to_const: Error<
1081310800
"cannot store matrix to read-only pointer">;
10814-
1081510801
def err_builtin_matrix_stride_too_small: Error<
1081610802
"stride must be greater or equal to the number of rows">;
10817-
1081810803
def err_builtin_matrix_invalid_dimension: Error<
1081910804
"%0 dimension is outside the allowed range [1, %1]">;
1082010805

10806+
def warn_mismatched_import : Warning<
10807+
"import %select{module|name}0 (%1) does not match the import %select{module|name}0 (%2) of the "
10808+
"previous declaration">,
10809+
InGroup<IgnoredAttributes>;
10810+
def warn_import_on_definition : Warning<
10811+
"import %select{module|name}0 cannot be applied to a function with a definition">,
10812+
InGroup<IgnoredAttributes>;
10813+
1082110814
def err_preserve_field_info_not_field : Error<
1082210815
"__builtin_preserve_field_info argument %0 not a field access">;
1082310816
def err_preserve_field_info_not_const: Error<

0 commit comments

Comments
 (0)