From 22f02db625dd3ffd7d041edb6ef5af371f4fa474 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Wed, 24 Jun 2020 15:29:27 +0100 Subject: [PATCH] [Matrix] Group matrix diagnostics together (NFC). --- clang/include/clang/Basic/DiagnosticSemaKinds.td | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index ec31178..beccdf9 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -10789,35 +10789,28 @@ def err_matrix_separate_incomplete_index: Error< "matrix row and column subscripts cannot be separated by any expression">; def err_matrix_subscript_comma: Error< "comma expressions are not allowed as indices in matrix subscript expressions">; - -def warn_mismatched_import : Warning< - "import %select{module|name}0 (%1) does not match the import %select{module|name}0 (%2) of the " - "previous declaration">, - InGroup; -def warn_import_on_definition : Warning< - "import %select{module|name}0 cannot be applied to a function with a definition">, - InGroup; - def err_builtin_matrix_arg: Error<"first argument must be a matrix">; - def err_builtin_matrix_scalar_unsigned_arg: Error< "%0 argument must be a constant unsigned integer expression">; - def err_builtin_matrix_pointer_arg: Error< "%0 argument must be a pointer to a valid matrix element type">; - def err_builtin_matrix_pointer_arg_mismatch: Error< "the pointee of the second argument must match the element type of the first argument (%0 != %1)">; - def err_builtin_matrix_store_to_const: Error< "cannot store matrix to read-only pointer">; - def err_builtin_matrix_stride_too_small: Error< "stride must be greater or equal to the number of rows">; - def err_builtin_matrix_invalid_dimension: Error< "%0 dimension is outside the allowed range [1, %1]">; +def warn_mismatched_import : Warning< + "import %select{module|name}0 (%1) does not match the import %select{module|name}0 (%2) of the " + "previous declaration">, + InGroup; +def warn_import_on_definition : Warning< + "import %select{module|name}0 cannot be applied to a function with a definition">, + InGroup; + def err_preserve_field_info_not_field : Error< "__builtin_preserve_field_info argument %0 not a field access">; def err_preserve_field_info_not_const: Error< -- 2.7.4