diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-07-23 21:41:30 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-07-23 21:41:30 +0000 |
commit | 45fbfc7f114af637a9e818b37cc596a4685cff0d (patch) | |
tree | 7bfffa8b3132ae96a1fc3512be697c0f52c7007b /clang/lib/Parse/ParseTentative.cpp | |
parent | 2ce6541f3bd7144615e931db3680e2a574116255 (diff) | |
download | bcm5719-llvm-45fbfc7f114af637a9e818b37cc596a4685cff0d.tar.gz bcm5719-llvm-45fbfc7f114af637a9e818b37cc596a4685cff0d.zip |
Do not warn about a function decl / direct init ambiguity if the function has a trailing return type.
llvm-svn: 160646
Diffstat (limited to 'clang/lib/Parse/ParseTentative.cpp')
-rw-r--r-- | clang/lib/Parse/ParseTentative.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseTentative.cpp b/clang/lib/Parse/ParseTentative.cpp index 41d793f3f29..8cf1c29078c 100644 --- a/clang/lib/Parse/ParseTentative.cpp +++ b/clang/lib/Parse/ParseTentative.cpp @@ -1293,7 +1293,7 @@ bool Parser::isCXXFunctionDeclarator(bool warnIfAmbiguous) { Next.is(tok::kw_throw) || Next.is(tok::kw_noexcept) || Next.is(tok::l_square) || isCXX0XVirtSpecifier(Next) || Next.is(tok::l_brace) || Next.is(tok::kw_try) || - Next.is(tok::equal)) + Next.is(tok::equal) || Next.is(tok::arrow)) // The next token cannot appear after a constructor-style initializer, // and can appear next in a function definition. This must be a function // declarator. |