Fix examples after C2x renaming

This amends 0ce056a814f8dbfd8d9b7720ce1df489c6ba5ddb and fixes an
example that was not built locally for me.
This commit is contained in:
Aaron Ballman 2023-08-11 08:00:03 -04:00
parent 29fff3e2ab
commit 6e0fc88836

View File

@ -29,10 +29,10 @@ struct ExampleAttrInfo : public ParsedAttrInfo {
// number of arguments. This just illustrates how many arguments a
// `ParsedAttrInfo` can hold, we will not use that much in this example.
OptArgs = 15;
// GNU-style __attribute__(("example")) and C++/C2x-style [[example]] and
// GNU-style __attribute__(("example")) and C++/C23-style [[example]] and
// [[plugin::example]] supported.
static constexpr Spelling S[] = {{ParsedAttr::AS_GNU, "example"},
{ParsedAttr::AS_C2x, "example"},
{ParsedAttr::AS_C23, "example"},
{ParsedAttr::AS_CXX11, "example"},
{ParsedAttr::AS_CXX11, "plugin::example"}};
Spellings = S;