diff options
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 1b5a0a5e7a3..eaf9f8b0f98 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -1653,7 +1653,10 @@ void Parser::ParseFunctionDeclarator(SourceLocation LParenLoc, Declarator &D, DeclSpec DS; if (getLang().CPlusPlus) { ParseTypeQualifierListOpt(DS); - // FIXME: Parse exception-specification[opt]. + + // Parse exception-specification[opt]. + if (Tok.is(tok::kw_throw)) + ParseExceptionSpecification(); } // Remember that we parsed a function type, and remember the attributes. @@ -1783,11 +1786,14 @@ void Parser::ParseFunctionDeclarator(SourceLocation LParenLoc, Declarator &D, // If we have the closing ')', eat it. MatchRHSPunctuation(tok::r_paren, LParenLoc); - // cv-qualifier-seq[opt]. DeclSpec DS; if (getLang().CPlusPlus) { + // Parse cv-qualifier-seq[opt]. ParseTypeQualifierListOpt(DS); - // FIXME: Parse exception-specification[opt]. + + // Parse exception-specification[opt]. + if (Tok.is(tok::kw_throw)) + ParseExceptionSpecification(); } // Remember that we parsed a function type, and remember the attributes. |

