summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-01-03 18:32:18 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-01-03 18:32:18 +0000
commit2080d90f375da9fd56b5545f76a9065c8d2f571c (patch)
tree2aa0d5371934f0b6775bfa22af1684bf54f824bf /clang/lib/Sema/SemaDecl.cpp
parentd41295da72e2f264699672c97aeaff55fff219a2 (diff)
downloadbcm5719-llvm-2080d90f375da9fd56b5545f76a9065c8d2f571c.tar.gz
bcm5719-llvm-2080d90f375da9fd56b5545f76a9065c8d2f571c.zip
[objc] Refactor and improve functionality for the -Wunused-property-ivar warning.
- Remove the additions to ObjCMethodDecl & ObjCIVarDecl that were getting de/serialized and consolidate all functionality for the checking for this warning in Sema::DiagnoseUnusedBackingIvarInAccessor - Don't check immediately after the method body is finished, check when the @implementation is finished. This is so we can see if the ivar was referenced by any other method, even if the method was defined after the accessor. - Don't silence the warning if any method is called from the accessor silence it if the accessor delegates to another method via self. rdar://15727325 llvm-svn: 198432
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index e9fcf835099..607c37ac03f 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -1392,7 +1392,6 @@ void Sema::ActOnPopScope(SourceLocation Loc, Scope *S) {
// Remove this name from our lexical scope.
IdResolver.RemoveDecl(D);
}
- DiagnoseUnusedBackingIvarInAccessor(S);
}
void Sema::ActOnStartFunctionDeclarator() {
OpenPOWER on IntegriCloud