commit | 471f985ae04817e0e8198a925fc7d74eaacaf962 | [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 | 68b7b32c7c3e63d9ffb745c21492ccafc94d11fa | |
parent | 08f0c53175bba899e7af6c6cc2cab25caf64ef2a [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164131 91177308-0d34-0410-b5e6-96231b3b80d8