Skip to content

Commit

Permalink
Add assert to the list of keywords for C++.
Browse files Browse the repository at this point in the history
Closes #12010

PiperOrigin-RevId: 525607232
  • Loading branch information
fowles authored and copybara-github committed Apr 20, 2023
1 parent b302597 commit a75c1a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/google/protobuf/compiler/cpp/helpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,14 @@ std::string DotsToColons(absl::string_view name) {
}

static const char* const kKeywordList[] = {
//
// clang-format off
"NULL",
"alignas",
"alignof",
"and",
"and_eq",
"asm",
"assert",
"auto",
"bitand",
"bitor",
Expand Down Expand Up @@ -181,6 +182,7 @@ static const char* const kKeywordList[] = {
"co_return",
"co_yield",
"requires",
// clang-format on
};

const absl::flat_hash_set<absl::string_view>& Keywords() {
Expand Down

0 comments on commit a75c1a2

Please sign in to comment.