diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-12-03 21:11:49 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-12-03 21:11:49 +0000 |
commit | b66d3cf5cf8400d9c99d5dd237ab6908377bbbfa (patch) | |
tree | a2e2d2704c1f2524f651bbd68641b1bf61ec4382 /clang/lib/Sema/ScopeInfo.cpp | |
parent | fcded9b93a96e9a88405325b30caa4cd11120aee (diff) | |
download | bcm5719-llvm-b66d3cf5cf8400d9c99d5dd237ab6908377bbbfa.tar.gz bcm5719-llvm-b66d3cf5cf8400d9c99d5dd237ab6908377bbbfa.zip |
[objc] Emit warning when the implementation of a secondary initializer calls on
super another initializer and when the implementation does not delegate to
another initializer via a call on 'self'.
A secondary initializer is an initializer method not marked as a designated
initializer within a class that has at least one initializer marked as a
designated initializer.
llvm-svn: 196318
Diffstat (limited to 'clang/lib/Sema/ScopeInfo.cpp')
-rw-r--r-- | clang/lib/Sema/ScopeInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/ScopeInfo.cpp b/clang/lib/Sema/ScopeInfo.cpp index cf2b5ebe0e5..6d5088504c4 100644 --- a/clang/lib/Sema/ScopeInfo.cpp +++ b/clang/lib/Sema/ScopeInfo.cpp @@ -30,6 +30,8 @@ void FunctionScopeInfo::Clear() { ObjCShouldCallSuper = false; ObjCIsDesignatedInit = false; ObjCWarnForNoDesignatedInitChain = false; + ObjCIsSecondaryInit = false; + ObjCWarnForNoInitDelegation = false; SwitchStack.clear(); Returns.clear(); |