summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/ScopeInfo.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-12-03 21:11:36 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-12-03 21:11:36 +0000
commit22bfa2c28bdbca09949ba4cf8670c310d3e42c71 (patch)
tree27e9efff069b7c1a7bb8b948c83913b77a67fd76 /clang/lib/Sema/ScopeInfo.cpp
parent9ed9e5f31c1fe946a5c6c1ffb651052925570fd4 (diff)
downloadbcm5719-llvm-22bfa2c28bdbca09949ba4cf8670c310d3e42c71.tar.gz
bcm5719-llvm-22bfa2c28bdbca09949ba4cf8670c310d3e42c71.zip
[objc] Emit a warning when the implementation of a designated initializer does not chain to
an init method that is a designated initializer for the superclass. llvm-svn: 196316
Diffstat (limited to 'clang/lib/Sema/ScopeInfo.cpp')
-rw-r--r--clang/lib/Sema/ScopeInfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Sema/ScopeInfo.cpp b/clang/lib/Sema/ScopeInfo.cpp
index 8b3493ebfef..cf2b5ebe0e5 100644
--- a/clang/lib/Sema/ScopeInfo.cpp
+++ b/clang/lib/Sema/ScopeInfo.cpp
@@ -26,6 +26,10 @@ void FunctionScopeInfo::Clear() {
HasBranchProtectedScope = false;
HasBranchIntoScope = false;
HasIndirectGoto = false;
+ HasDroppedStmt = false;
+ ObjCShouldCallSuper = false;
+ ObjCIsDesignatedInit = false;
+ ObjCWarnForNoDesignatedInitChain = false;
SwitchStack.clear();
Returns.clear();
OpenPOWER on IntegriCloud