]> granicus.if.org Git - clang/commit
Simplify and refactor the uninitialized field warning.
authorRichard Trieu <rtrieu@google.com>
Fri, 25 Oct 2013 00:56:00 +0000 (00:56 +0000)
committerRichard Trieu <rtrieu@google.com>
Fri, 25 Oct 2013 00:56:00 +0000 (00:56 +0000)
commit858d2ba136c8dcdc051fe20b3190c40bc25de189
treebd9f93dd47005e3b0afce3c6f08dcbdcf9b5f433
parent9bd1c1332f7b2a82ed7b328b216a35a299a5945a
Simplify and refactor the uninitialized field warning.

Change the uninitialized field warnings so that field initializers are checked
inside the constructor.  Previously, in class initializers were checked
separately.  Running one set of checks also simplifies the logic for preventing
duplicate warnings.  Added new checks to warn when an uninitialized field is
used in base class initialization.  Also fixed misspelling of uninitialized
and moved all code for this warning together.

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