[clang] 6e0fc88 - Fix examples after C2x renaming
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 11 05:01:29 PDT 2023
Author: Aaron Ballman
Date: 2023-08-11T08:01:17-04:00
New Revision: 6e0fc88836a8ecc4520f6be09d392c03e21d8b40
URL: https://github.com/llvm/llvm-project/commit/6e0fc88836a8ecc4520f6be09d392c03e21d8b40
DIFF: https://github.com/llvm/llvm-project/commit/6e0fc88836a8ecc4520f6be09d392c03e21d8b40.diff
LOG: Fix examples after C2x renaming
This amends 0ce056a814f8dbfd8d9b7720ce1df489c6ba5ddb and fixes an
example that was not built locally for me.
Added:
Modified:
clang/examples/Attribute/Attribute.cpp
Removed:
################################################################################
diff --git a/clang/examples/Attribute/Attribute.cpp b/clang/examples/Attribute/Attribute.cpp
index 008da2e18e44f2..9d6cf9ae36c6a6 100644
--- a/clang/examples/Attribute/Attribute.cpp
+++ b/clang/examples/Attribute/Attribute.cpp
@@ -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;
More information about the cfe-commits
mailing list