Skip to content

Commit

Permalink
Fix examples after C2x renaming
Browse files Browse the repository at this point in the history
This amends 0ce056a and fixes an
example that was not built locally for me.
  • Loading branch information
AaronBallman committed Aug 11, 2023
1 parent 29fff3e commit 6e0fc88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/examples/Attribute/Attribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6e0fc88

Please sign in to comment.