diff --git a/cxxheaderparser/lexer.py b/cxxheaderparser/lexer.py index ab3899d..17caf92 100644 --- a/cxxheaderparser/lexer.py +++ b/cxxheaderparser/lexer.py @@ -104,9 +104,11 @@ class PlyLexer: "final", "float", "for", + "__forceinline", "friend", "goto", "if", + "__inline", "inline", "int", "long", diff --git a/cxxheaderparser/parser.py b/cxxheaderparser/parser.py index 90a7d75..41b7a54 100644 --- a/cxxheaderparser/parser.py +++ b/cxxheaderparser/parser.py @@ -2371,6 +2371,8 @@ def _parse_type( volatile = True elif tok_type in _attribute_start: self._consume_attribute(tok) + elif tok_type in ("__inline", "__forceinline"): + both["inline"] = tok else: break diff --git a/cxxheaderparser/version.py b/cxxheaderparser/version.py index 41dd57c..7993773 100644 --- a/cxxheaderparser/version.py +++ b/cxxheaderparser/version.py @@ -1 +1 @@ -__version__ = '1.3.1-3-g914838c' +__version__ = '1.3.2-2-g544c253'