aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs
diff options
context:
space:
mode:
authoralexiprof <alexiprof@yandex-team.com>2022-09-06 10:39:23 +0300
committeralexiprof <alexiprof@yandex-team.com>2022-09-06 10:39:23 +0300
commit2a7533a248335565c1573eda193110fdf25781b3 (patch)
tree00ac33cd80640a4ecc614eaef8f53625455ab95d /contrib/libs
parentcc716c297d90c8016f1401acd1b71bfc6d511291 (diff)
downloadydb-2a7533a248335565c1573eda193110fdf25781b3.tar.gz
protoc: Backport unaccepted PR #9977 to add keywords introduced by C++20
Diffstat (limited to 'contrib/libs')
-rw-r--r--contrib/libs/protoc/src/google/protobuf/compiler/cpp/cpp_helpers.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/libs/protoc/src/google/protobuf/compiler/cpp/cpp_helpers.cc b/contrib/libs/protoc/src/google/protobuf/compiler/cpp/cpp_helpers.cc
index 736b73a3ea..308b3164a4 100644
--- a/contrib/libs/protoc/src/google/protobuf/compiler/cpp/cpp_helpers.cc
+++ b/contrib/libs/protoc/src/google/protobuf/compiler/cpp/cpp_helpers.cc
@@ -91,9 +91,12 @@ static const char* const kKeywordList[] = { //
"char",
"class",
"compl",
+ "concept",
"const",
- "constexpr",
"const_cast",
+ "consteval",
+ "constexpr",
+ "constinit",
"continue",
"decltype",
"default",
@@ -130,6 +133,7 @@ static const char* const kKeywordList[] = { //
"public",
"register",
"reinterpret_cast",
+ "requires",
"return",
"short",
"signed",