commit | 874d253668f9ed183ca409cdff9d424925ee7800 | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Tue Nov 29 05:27:40 2011 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Tue Nov 29 05:27:40 2011 +0000 |
tree | 637fc2dc1c9b792795c6f63d5cf68061c347caa2 | |
parent | b49e728a4d1a84b72f3aebf60ff494684f9cb004 [diff] |
PR10101: Recover better from a common copy-paste error: if a function declaration at namespace scope is followed by a semicolon and an open-brace (or in C++, a 'try', ':' or '='), then the error is probably a function definition with a spurious ';', rather than a mysterious '{'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145372 91177308-0d34-0410-b5e6-96231b3b80d8