Skip to content

Commit

Permalink
Support "noexcept"
Browse files Browse the repository at this point in the history
This fixes the error message mentioned in #75.
  • Loading branch information
myint committed Oct 7, 2015
1 parent b8e131c commit 4da3439
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,8 @@ def _get_method(self, return_type_and_name, modifiers, templated_types,
if (
token.name == 'const' or
token.name == 'override' or
token.name == 'final'
token.name == 'final' or
token.name == 'noexcept'
):
modifiers |= FUNCTION_SPECIFIER
token = self._get_next_token()
Expand Down
9 changes: 9 additions & 0 deletions test/noexcept.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef TEST_NOEXCEPT_H
#define TEST_NOEXCEPT_H

inline int no_except_test() noexcept
{
return 0;
};

#endif

0 comments on commit 4da3439

Please sign in to comment.