]> granicus.if.org Git - clang/commit
Diagnose misordered initializers in constructor templates immediately instead of
authorJohn McCall <rjmccall@apple.com>
Sat, 10 Apr 2010 07:37:23 +0000 (07:37 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 10 Apr 2010 07:37:23 +0000 (07:37 +0000)
commitd6ca8da0f5a4115813055729faaa5128e994806d
treeedc23474fd7238542c93590fea64b84c33d101c9
parent35db3b9aad1829a1279b9e213ddee36395314a0b
Diagnose misordered initializers in constructor templates immediately instead of
when they're instantiated.  Merge the note into the -Wreorder warning;  it
doesn't really contribute much, and it was splitting a thought across diagnostics
anyway.  Don't crash in the parser when a constructor's initializers end in a
comma and there's no body;  the recovery here is still terrible, but anything's
better than a crash.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100922 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Parse/ParseCXXInlineMethods.cpp
lib/Parse/Parser.cpp
lib/Sema/SemaDeclCXX.cpp
test/SemaCXX/constructor-initializer.cpp
test/SemaCXX/warn-reorder-ctor-initialization.cpp
test/SemaTemplate/instantiate-member-initializers.cpp