aboutsummaryrefslogtreecommitdiffstats
path: root/ApiExtractor/parser/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ApiExtractor/parser/parser.cpp')
-rw-r--r--ApiExtractor/parser/parser.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/ApiExtractor/parser/parser.cpp b/ApiExtractor/parser/parser.cpp
index c56369c..c49785f 100644
--- a/ApiExtractor/parser/parser.cpp
+++ b/ApiExtractor/parser/parser.cpp
@@ -1124,6 +1124,7 @@ bool Parser::parseDeclarator(DeclaratorAST *&node)
token_stream.nextToken(); // skip ')'
parseCvQualify(ast->fun_cv);
+ parseNoExcept();
parseExceptionSpecification(ast->exception_spec);
if (token_stream.lookAhead() == Token___attribute__)
@@ -1863,6 +1864,14 @@ bool Parser::parseElaboratedTypeSpecifier(TypeSpecifierAST *&node)
return false;
}
+bool Parser::parseNoExcept()
+{
+ // right now we only accept 'noexcept' with no conditional
+ CHECK(Token_noexcept);
+
+ return true;
+}
+
bool Parser::parseExceptionSpecification(ExceptionSpecificationAST *&node)
{
std::size_t start = token_stream.cursor();