diff options
| author | Richard Trieu <rtrieu@google.com> | 2013-09-20 03:03:06 +0000 |
|---|---|---|
| committer | Richard Trieu <rtrieu@google.com> | 2013-09-20 03:03:06 +0000 |
| commit | ef8f90caa14d85cffba2fea4b6bd425c3b22eea7 (patch) | |
| tree | 26bf7577be884afd0f0f2ef46588c6d5752286ad /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 75bd9ed70cec21b4395d701d371356cfe3ec9aae (diff) | |
| download | clang-ef8f90caa14d85cffba2fea4b6bd425c3b22eea7.tar.gz clang-ef8f90caa14d85cffba2fea4b6bd425c3b22eea7.tar.bz2 clang-ef8f90caa14d85cffba2fea4b6bd425c3b22eea7.tar.xz | |
Modify the uninitialized field visitor to detect uninitialized use across the
fields in the class. This allows a better checking of member intiailizers and
in class initializers in regards to initialization ordering.
For instance, this code will now produce warnings:
class A {
int x;
int y;
A() : x(y) {} // y is initialized after x, warn here
A(int): y(x) {} // default initialization of leaves x uninitialized, warn here
};
Several test cases were updated with -Wno-uninitialized to silence this warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
