]> granicus.if.org Git - clang/commit
PR10101: Recover better from a common copy-paste error: if a function
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 29 Nov 2011 05:27:40 +0000 (05:27 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 29 Nov 2011 05:27:40 +0000 (05:27 +0000)
commit874d253668f9ed183ca409cdff9d424925ee7800
tree637fc2dc1c9b792795c6f63d5cf68061c347caa2
parentb49e728a4d1a84b72f3aebf60ff494684f9cb004
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
include/clang/Basic/DiagnosticParseKinds.td
lib/Parse/ParseDecl.cpp
lib/Parse/ParseTemplate.cpp
test/FixIt/fixit-cxx0x.cpp
test/FixIt/fixit.c
test/FixIt/fixit.cpp
test/SemaCXX/typedef-redecl.cpp