Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
N3rdL0rd committed Jul 2, 2024
2 parents 9c448d8 + c64d3a5 commit c2c9e90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cxxheaderparser/lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ class PlyLexer:
"__inline",
"inline",
"int",
"__int8",
"__int16",
"__int32",
"__int64",
"long",
"mutable",
"namespace",
Expand Down
6 changes: 5 additions & 1 deletion cxxheaderparser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,10 @@ def _parse_pqname_decltype_specifier(self) -> DecltypeSpecifier:
"float",
"double",
"char",
"__int8",
"__int16",
"__int32",
"__int64"
}

_fundamentals = _compound_fundamentals | {
Expand All @@ -1522,7 +1526,7 @@ def _parse_pqname_decltype_specifier(self) -> DecltypeSpecifier:
"char32_t",
"nullptr_t",
"wchar_t",
"void",
"void"
}

def _parse_pqname_fundamental(self, tok_value: str) -> FundamentalSpecifier:
Expand Down

0 comments on commit c2c9e90

Please sign in to comment.