llvm-project/clang/test/CXX/dcl.decl/dcl.init
Richard Trieu 406e65c8d1 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.

llvm-svn: 191068
2013-09-20 03:03:06 +00:00
..
dcl.init.aggr Modify the uninitialized field visitor to detect uninitialized use across the 2013-09-20 03:03:06 +00:00
dcl.init.list PR12086, PR15117 2013-06-12 22:31:48 +00:00
dcl.init.ref Grab-bag of bit-field fixes: 2013-05-06 21:39:12 +00:00
dcl.init.string Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
p5.cpp Implement C++03 [dcl.init]p5's checking for value-initialization of references 2012-12-08 02:01:17 +00:00
p6.cpp Teach Sema::ActOnUninitializedDecl() not to try to interpret when one 2011-05-21 17:52:48 +00:00
p7.cpp Tests for DR1507. 2012-10-18 00:44:17 +00:00
p14-0x.cpp Update all tests other than Driver/std.cpp to use -std=c++11 rather than 2011-10-13 22:29:44 +00:00