Avoid parse errors for C++ attributes

Just ignore anything in between [[ and ]] in the scanner, which is better
that failing with a parse error.

Fixes #1158
Fixes #2286
This commit is contained in:
Julien Marrec 2022-07-08 15:23:05 +12:00 • committed by Olly Betts
commit d3759a9b36
6 changed files with 86 additions and 4 deletions

View file

@ -583,6 +583,7 @@ CPP11_TEST_CASES += \
cpp11_alias_nested_template_scoping \
cpp11_alignment \
cpp11_alternate_function_syntax \
cpp11_attribute_specifiers \
cpp11_constexpr \
cpp11_decltype \
cpp11_default_delete \