| commit | 44fd70a3ad43b8e7b27af79f8011c7f5b90c841f | [log] [tgz] |
|---|---|---|
| author | Hans Wennborg <hans@hanshq.net> | Tue Sep 18 15:58:06 2012 +0000 |
| committer | Hans Wennborg <hans@hanshq.net> | Tue Sep 18 15:58:06 2012 +0000 |
| tree | 3167e7fabeb747e20a4f5210bb092983d8acfad2 | |
| parent | eb2c8f0fc69d09f0318cdcef7398f867402eaecd [diff] |
Warn about self references in in-class initializers.
This makes Clang warn about self references in in-class initializers,
for example:
struct S {
int a = a + 42;
};
This basically just moves UninitializedFieldVisitor up a bit in
SemaDeclCXX.cpp, and adds a call to it from ActOnCXXInClassMemberInitializer.
llvm-svn: 164131