]> granicus.if.org Git - clang/commitdiff
Fix typos in analyzer diagnostics pointed out by Matt Beaumont-Gay and Robert Purves.
authorTed Kremenek <kremenek@apple.com>
Thu, 22 Dec 2011 06:35:52 +0000 (06:35 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 22 Dec 2011 06:35:52 +0000 (06:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147139 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
test/Analysis/retain-release-path-notes.m

index 2206fbef61cd3aed2dc62c6afb65f18af8121b7d..9e5a65697747a7626c6036880da27c292505cc3e 100644 (file)
@@ -2201,10 +2201,10 @@ CFRefLeakReportVisitor::getEndPath(BugReporterContext &BRC,
     }
     else {
       const FunctionDecl *FD = cast<FunctionDecl>(D);
-      os << " is return from a function whose name ('"
+      os << " is returned from a function whose name ('"
          << FD->getNameAsString()
          << "') does not contain 'Copy' or 'Create'.  This violates the naming"
-            " convention rules given the Memory Management Guide for Core"
+            " convention rules given in the Memory Management Guide for Core"
             " Foundation";
     }    
   }
index 84ddcae90d2c803f864e6a9b280caf8e662b17dc..adf40ec7881a7516d0b2894d03ac86ea8805eea5 100644 (file)
@@ -110,7 +110,7 @@ CFTypeRef CFCopyRuleViolation () {
 
 CFTypeRef CFGetRuleViolation () {
   CFTypeRef object = CFCreateSomething(); // expected-warning{{leak}} expected-note{{Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count}}
-  return object; // expected-note{{Object returned to caller as an owning reference (single retain count transferred to caller)}} expected-note{{Object leaked: object allocated and stored into 'object' is return from a function whose name ('CFGetRuleViolation') does not contain 'Copy' or 'Create'.  This violates the naming convention rules given the Memory Management Guide for Core Foundation}}
+  return object; // expected-note{{Object returned to caller as an owning reference (single retain count transferred to caller)}} expected-note{{Object leaked: object allocated and stored into 'object' is returned from a function whose name ('CFGetRuleViolation') does not contain 'Copy' or 'Create'.  This violates the naming convention rules given in the Memory Management Guide for Core Foundation}}
 }
 
 @implementation Foo (FundamentalMemoryManagementRules)