Make warnings about uninitialized fields include the field name.
authorHans Wennborg <hans@hanshq.net>
Fri, 21 Sep 2012 08:58:33 +0000 (08:58 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 21 Sep 2012 08:58:33 +0000 (08:58 +0000)
commit61b2ffa60f6e75a5ce057ebcc88647d1574e42b0
tree43a423cb95b9a354b5e55366f09c0a7283283cc9
parentad1191fbb68faa69b43c2b6b5aa7d6cefc6f7c6b
Make warnings about uninitialized fields include the field name.

This makes the wording more informative, and consistent with the other
warnings about uninitialized variables.

Also, me and David who reviewed this couldn't figure out why we would
need to do a lookup to get the name of the variable; so just print the
name directly.

llvm-svn: 164366
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/SemaCXX/constructor-initializer.cpp
clang/test/SemaCXX/defaulted-ctor-loop.cpp
clang/test/SemaCXX/uninitialized.cpp