]> granicus.if.org Git - clang/commit
Improve the diagnostic when a comma ends up at the end of a declarator group
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 19 Oct 2011 21:33:05 +0000 (21:33 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 19 Oct 2011 21:33:05 +0000 (21:33 +0000)
commit0706df40064d4d7559b4304af79d519033414b84
treea746b692d4ae341fe5402dfc52efc808dd0c6aea
parente7d7c39be90bf654a8da0f53f6682d965426d081
Improve the diagnostic when a comma ends up at the end of a declarator group
instead of a semicolon (as sometimes happens during refactorings). When such a
comma is seen at the end of a line, and is followed by something which can't
possibly be a declarator (or even something which might be a plausible typo for
a declarator), suggest that a semicolon was intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142544 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseDecl.cpp
test/FixIt/fixit-cxx0x.cpp
test/FixIt/fixit.c
test/FixIt/fixit.cpp
test/Parser/cxx-decl.cpp
test/Parser/cxx0x-decl.cpp [new file with mode: 0644]