@@ -1271,15 +1271,18 @@ ERROR(missing_init_on_metatype_initialization,none,
1271
1271
" initializing from a metatype value must reference 'init' explicitly" ,
1272
1272
())
1273
1273
ERROR(extra_argument_labels,none,
1274
- " extraneous argument label%select{|s}0 '%1' in %select{call|subscript}2" ,
1275
- (bool , StringRef, bool ))
1274
+ " extraneous argument label%select{|s}0 '%1' in "
1275
+ " %select{call|subscript|macro expansion}2" ,
1276
+ (bool , StringRef, unsigned ))
1276
1277
ERROR(missing_argument_labels,none,
1277
- " missing argument label%select{|s}0 '%1' in %select{call|subscript}2" ,
1278
- (bool , StringRef, bool ))
1278
+ " missing argument label%select{|s}0 '%1' in "
1279
+ " %select{call|subscript|macro expansion}2" ,
1280
+ (bool , StringRef, unsigned ))
1279
1281
ERROR(wrong_argument_labels,none,
1280
- " incorrect argument label%select{|s}0 in %select{call|subscript}3 "
1282
+ " incorrect argument label%select{|s}0 in "
1283
+ " %select{call|subscript|macro expansion}3 "
1281
1284
" (have '%1', expected '%2')" ,
1282
- (bool , StringRef, StringRef, bool ))
1285
+ (bool , StringRef, StringRef, unsigned ))
1283
1286
ERROR(argument_out_of_order_named_named,none,
1284
1287
" argument %0 must precede argument %1" , (Identifier, Identifier))
1285
1288
ERROR(argument_out_of_order_named_unnamed,none,
@@ -1313,22 +1316,29 @@ ERROR(instance_member_in_default_parameter,none,
1313
1316
" cannot use instance member %0 as a default parameter" , (DeclNameRef))
1314
1317
1315
1318
ERROR(missing_argument_named,none,
1316
- " missing argument for parameter %0 in call" , (Identifier))
1319
+ " missing argument for parameter %0 in "
1320
+ " %select{call|subscript|macro expansion}1" , (Identifier, unsigned ))
1317
1321
ERROR(missing_argument_positional,none,
1318
- " missing argument for parameter #%0 in call" , (unsigned ))
1322
+ " missing argument for parameter #%0 in "
1323
+ " %select{call|subscript|macro expansion}1" , (unsigned , unsigned ))
1319
1324
ERROR(missing_arguments_in_call,none,
1320
- " missing arguments for parameters %0 in call" , (StringRef))
1325
+ " missing arguments for parameters %0 in "
1326
+ " %select{call|subscript|macro expansion}1" , (StringRef, unsigned ))
1321
1327
ERROR(extra_argument_named,none,
1322
- " extra argument %0 in call" , (Identifier))
1328
+ " extra argument %0 in %select{call|subscript|macro expansion}1" ,
1329
+ (Identifier, unsigned ))
1323
1330
ERROR(extra_argument_positional,none,
1324
- " extra argument in call" , ())
1331
+ " extra argument in %select{call|subscript|macro expansion}0" ,
1332
+ (unsigned ))
1325
1333
ERROR(extra_arguments_in_call,none,
1326
1334
" extra %select{arguments|trailing closures}0 at positions %1 in call" ,
1327
1335
(bool , StringRef))
1328
1336
ERROR(extra_argument_to_nullary_call,none,
1329
- " argument passed to call that takes no arguments" , ())
1337
+ " argument passed to %select{call|subscript|macro expansion}0 "
1338
+ " that takes no arguments" , (unsigned ))
1330
1339
ERROR(extra_trailing_closure_in_call,none,
1331
- " extra trailing closure passed in call" , ())
1340
+ " extra trailing closure passed in "
1341
+ " %select{call|subscript|macro expansion}0" , (unsigned ))
1332
1342
ERROR(trailing_closure_bad_param,none,
1333
1343
" trailing closure passed to parameter of type %0 that does not "
1334
1344
" accept a closure" , (Type))
@@ -6758,8 +6768,7 @@ ERROR(experimental_no_metadata_feature_can_only_be_used_when_enabled,
6758
6768
ERROR(expected_macro_expansion_expr,PointsToFirstBadToken,
6759
6769
" expected macro expansion to produce an expression" , ())
6760
6770
ERROR(macro_undefined,PointsToFirstBadToken,
6761
- " macro %0 is undefined; use `-load-plugin-library` to specify dynamic "
6762
- " libraries that contain this macro" , (Identifier))
6771
+ " no macro named %0" , (Identifier))
6763
6772
ERROR(external_macro_not_found,none,
6764
6773
" external macro implementation type '%0.%1' could not be found for "
6765
6774
" macro %2; the type must be public and provided via "
@@ -6790,6 +6799,26 @@ ERROR(macro_in_nested,none,
6790
6799
ERROR(macro_without_context,none,
6791
6800
" macro %0 must declare its applicable contexts (e.g., '@expression')" ,
6792
6801
(DeclName))
6802
+ ERROR(macro_expansion_missing_pound,none,
6803
+ " expansion of macro %0 requires leading '#'" , (DeclName))
6804
+ ERROR(macro_expansion_missing_arguments,none,
6805
+ " expansion of macro %0 requires arguments" , (DeclName))
6806
+ ERROR(macro_unsupported,none,
6807
+ " macros are not supported in this compiler" , ())
6808
+ ERROR(macro_recursive,none,
6809
+ " recursive expansion of macro %0" , (DeclName))
6810
+ WARNING(macro_definition_old_style,none,
6811
+ " external macro definitions are now written using #externalMacro" , ())
6812
+ WARNING(macro_definition_unknown_builtin,none,
6813
+ " ignoring definition of unknown builtin macro %0" , (Identifier))
6814
+ ERROR(macro_definition_not_expansion,none,
6815
+ " macro must itself be defined by a macro expansion such as "
6816
+ " '#externalMacro(...)'" , ())
6817
+ ERROR(macro_definition_unsupported,none,
6818
+ " macro definitions other than '#externalMacro(...)' are unsupported" , ())
6819
+ ERROR(external_macro_arg_not_type_name,none,
6820
+ " argument to `#externalMacro` must be a string literal naming "
6821
+ " the external macro's %select{module|type}" , (unsigned ))
6793
6822
6794
6823
// ------------------------------------------------------------------------------
6795
6824
// MARK: Move Only Errors
0 commit comments