mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
LibCpp: Use StringView for the known keywords array
This commit is contained in:
parent
fc0a040e5d
commit
9cd89f0085
Notes:
sideshowbarker
2024-07-17 23:16:27 +09:00
Author: https://github.com/awesomekling
Commit: 9cd89f0085
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ constexpr bool is_valid_nonfirst_character_of_identifier(char ch)
|
||||||
return is_valid_first_character_of_identifier(ch) || is_ascii_digit(ch);
|
return is_valid_first_character_of_identifier(ch) || is_ascii_digit(ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr char const* s_known_keywords[] = {
|
constexpr StringView s_known_keywords[] = {
|
||||||
"alignas",
|
"alignas",
|
||||||
"alignof",
|
"alignof",
|
||||||
"and",
|
"and",
|
||||||
|
@ -127,7 +127,7 @@ constexpr char const* s_known_keywords[] = {
|
||||||
"xor_eq"
|
"xor_eq"
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr char const* s_known_types[] = {
|
constexpr StringView s_known_types[] = {
|
||||||
"ByteBuffer",
|
"ByteBuffer",
|
||||||
"CircularDeque",
|
"CircularDeque",
|
||||||
"CircularQueue",
|
"CircularQueue",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue