Hi all, The attached patch makes Clang warn about self references in in-class initializers, for example:
struct S {
int a = a + 42;
};
The patch basically just moves UninitializedFieldVisitor up a bit in
the file, and adds a call to it from ActOnCXXInClassMemberInitializer.
Please take a look. Also, these warnings just say "field is
unitialized when used here". Would anyone be opposed to changing it to
"field 'a' is unitiailized when used here"?
- Hans
in_class_self_init.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
