Merge pull request #65967 from rintaro/macroexpanson-name-sameline

[Parse] Improve freestanding macro expansion parsing
This commit is contained in:
Rintaro Ishizaki
2023-05-19 11:21:50 -07:00
committed by GitHub
9 changed files with 198 additions and 86 deletions

View File

@@ -2057,6 +2057,8 @@ ERROR(macro_expansion_expr_expected_macro_identifier,PointsToFirstBadToken,
"expected a macro identifier for a pound literal expression", ())
ERROR(macro_expansion_decl_expected_macro_identifier,PointsToFirstBadToken,
"expected a macro identifier for a pound literal declaration", ())
ERROR(extra_whitespace_macro_expansion_identifier,PointsToFirstBadToken,
"extraneous whitespace between '#' and macro name is not permitted", ())
ERROR(macro_role_attr_expected_kind,PointsToFirstBadToken,
"expected %select{a freestanding|an attached}0 macro role such as "