summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevin Coughlin <dcoughlin@apple.com>2016-03-02 21:22:48 +0000
committerDevin Coughlin <dcoughlin@apple.com>2016-03-02 21:22:48 +0000
commitdce8d8b3f1f0e53322c25b1dcf117f850992b894 (patch)
treeb5a6f6a836dd410012265a9b26abfefa7f02b996
parent6412002d2462ed6ac04b4e1730f3e7b9c309519d (diff)
downloadbcm5719-llvm-dce8d8b3f1f0e53322c25b1dcf117f850992b894.tar.gz
bcm5719-llvm-dce8d8b3f1f0e53322c25b1dcf117f850992b894.zip
[analyzer] Fix capitalization in ObjCSuperDeallocChecker diagnostic.
llvm-svn: 262520
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp2
-rw-r--r--clang/test/Analysis/DeallocUseAfterFreeErrors.m20
2 files changed, 11 insertions, 11 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp
index 8618eeb0dfe..eb31321895f 100644
--- a/clang/lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp
@@ -165,7 +165,7 @@ void ObjCSuperDeallocChecker::checkLocation(SVal L, bool IsLoad, const Stmt *S,
std::string Buf;
llvm::raw_string_ostream OS(Buf);
if (IvarRegion) {
- OS << "use of instance variable '" << *IvarRegion->getDecl() <<
+ OS << "Use of instance variable '" << *IvarRegion->getDecl() <<
"' after 'self' has been deallocated";
Desc = OS.str();
}
diff --git a/clang/test/Analysis/DeallocUseAfterFreeErrors.m b/clang/test/Analysis/DeallocUseAfterFreeErrors.m
index cfb202b6507..2902be694bb 100644
--- a/clang/test/Analysis/DeallocUseAfterFreeErrors.m
+++ b/clang/test/Analysis/DeallocUseAfterFreeErrors.m
@@ -36,8 +36,8 @@ typedef struct objc_selector *SEL;
}
- (void)dealloc {
[super dealloc]; // expected-note {{[super dealloc] called here}}
- [_ivar release]; // expected-warning {{use of instance variable '_ivar' after 'self' has been deallocated}}
- // expected-note@-1 {{use of instance variable '_ivar' after 'self' has been deallocated}}
+ [_ivar release]; // expected-warning {{Use of instance variable '_ivar' after 'self' has been deallocated}}
+ // expected-note@-1 {{Use of instance variable '_ivar' after 'self' has been deallocated}}
}
@end
@@ -56,8 +56,8 @@ typedef struct objc_selector *SEL;
}
- (void)dealloc {
[super dealloc]; // expected-note {{[super dealloc] called here}}
- _delegate = nil; // expected-warning {{use of instance variable '_delegate' after 'self' has been deallocated}}
- // expected-note@-1 {{use of instance variable '_delegate' after 'self' has been deallocated}}
+ _delegate = nil; // expected-warning {{Use of instance variable '_delegate' after 'self' has been deallocated}}
+ // expected-note@-1 {{Use of instance variable '_delegate' after 'self' has been deallocated}}
}
@end
@@ -74,8 +74,8 @@ struct SomeStruct {
@implementation SuperDeallocThenAssignIvarField
- (void)dealloc {
[super dealloc]; // expected-note {{[super dealloc] called here}}
- _s.f = 7; // expected-warning {{use of instance variable '_s' after 'self' has been deallocated}}
- // expected-note@-1 {{use of instance variable '_s' after 'self' has been deallocated}}
+ _s.f = 7; // expected-warning {{Use of instance variable '_s' after 'self' has been deallocated}}
+ // expected-note@-1 {{Use of instance variable '_s' after 'self' has been deallocated}}
}
@end
@@ -93,8 +93,8 @@ struct SomeStruct {
@implementation SuperDeallocThenAssignIvarIvar
- (void)dealloc {
[super dealloc]; // expected-note {{[super dealloc] called here}}
- _ivar->_otherIvar = 7; // expected-warning {{use of instance variable '_ivar' after 'self' has been deallocated}}
- // expected-note@-1 {{use of instance variable '_ivar' after 'self' has been deallocated}}
+ _ivar->_otherIvar = 7; // expected-warning {{Use of instance variable '_ivar' after 'self' has been deallocated}}
+ // expected-note@-1 {{Use of instance variable '_ivar' after 'self' has been deallocated}}
}
@end
@@ -106,8 +106,8 @@ struct SomeStruct {
@implementation SuperDeallocThenAssignSelfIvar
- (void)dealloc {
[super dealloc]; // expected-note {{[super dealloc] called here}}
- self->_ivar = nil; // expected-warning {{use of instance variable '_ivar' after 'self' has been deallocated}}
- // expected-note@-1 {{use of instance variable '_ivar' after 'self' has been deallocated}}
+ self->_ivar = nil; // expected-warning {{Use of instance variable '_ivar' after 'self' has been deallocated}}
+ // expected-note@-1 {{Use of instance variable '_ivar' after 'self' has been deallocated}}
}
@end
OpenPOWER on IntegriCloud