Coverage for hdl_registers/generator/cpp/reserved_keywords.py: 100%
1 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-07 20:51 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-07 20:51 +0000
1# --------------------------------------------------------------------------------------------------
2# Copyright (c) Lukas Vik. All rights reserved.
3#
4# This file is part of the hdl-registers project, an HDL register generator fast enough to run
5# in real time.
6# https://hdl-registers.com
7# https://github.com/hdl-registers/hdl-registers
8# --------------------------------------------------------------------------------------------------
10# Reserved keywords in the C++ programming language.
11# Should include everything up until C++20.
12# From https://en.cppreference.com/w/cpp/keyword
13# Note that they shall all be lowercase here in this set.
14RESERVED_CPP_KEYWORDS = {
15 "alignas",
16 "alignof",
17 "and_eq",
18 "and",
19 "asm",
20 "atomic_cancel",
21 "atomic_commit",
22 "atomic_noexcept",
23 "auto",
24 "bitand",
25 "bitor",
26 "bool",
27 "break",
28 "case",
29 "catch",
30 "char",
31 "char16_t",
32 "char32_t",
33 "char8_t",
34 "class",
35 "co_await",
36 "co_return",
37 "co_yield",
38 "compl",
39 "concept",
40 "const_cast",
41 "const",
42 "consteval",
43 "constexpr",
44 "constinit",
45 "continue",
46 "decltype",
47 "default",
48 "delete",
49 "do",
50 "double",
51 "dynamic_cast",
52 "else",
53 "enum",
54 "explicit",
55 "export",
56 "extern",
57 "false",
58 "float",
59 "for",
60 "friend",
61 "goto",
62 "if",
63 "inline",
64 "int",
65 "long",
66 "mutable",
67 "namespace",
68 "new",
69 "noexcept",
70 "not_eq",
71 "not",
72 "nullptr",
73 "operator",
74 "or_eq",
75 "or",
76 "private",
77 "protected",
78 "public",
79 "reflexpr",
80 "register",
81 "reinterpret_cast",
82 "requires",
83 "return",
84 "short",
85 "signed",
86 "sizeof",
87 "static_assert",
88 "static_cast",
89 "static",
90 "struct",
91 "switch",
92 "synchronized",
93 "template",
94 "this",
95 "thread_local",
96 "throw",
97 "true",
98 "try",
99 "typedef",
100 "typeid",
101 "typename",
102 "union",
103 "unsigned",
104 "using",
105 "virtual",
106 "void",
107 "volatile",
108 "wchar_t",
109 "while",
110 "xor_eq",
111 "xor",
112}