]> granicus.if.org Git - clang/commit
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)
commit7821e0756744018a34c533f30cdabe62a72d4e4a
tree34d6731565b0a60e940358f1b5c4cc61520167aa
parent85cb7a5696f93f8b98604d3e72525921a32537f0
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164366 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
test/SemaCXX/constructor-initializer.cpp
test/SemaCXX/defaulted-ctor-loop.cpp
test/SemaCXX/uninitialized.cpp