Skip to content

Commit

Permalink
Add NULL as reserved keyword cpp (OpenAPITools#17803)
Browse files Browse the repository at this point in the history
* [cpp]Do not lowercase the reserved keywords for C++

(Will be necessary for adding NULL as a reserved keyword)

* [cpp]Add NULL as reserved keyword
  • Loading branch information
martonmiklos authored and kota65535 committed Feb 23, 2024
1 parent 9b0e54d commit 809647f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
Expand All @@ -61,7 +62,7 @@ public AbstractCppCodegen() {
/*
* Reserved words. Override this with reserved words specific to your language
*/
setReservedWordsLowerCase(
reservedWords = new HashSet<>(
Arrays.asList(
"alignas",
"alignof",
Expand Down Expand Up @@ -112,6 +113,7 @@ public AbstractCppCodegen() {
"noexcept",
"not",
"not_eq",
"NULL",
"nullptr",
"operator",
"or",
Expand Down

0 comments on commit 809647f

Please sign in to comment.