aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-04-02 02:40:45 +0000
committerTed Kremenek <kremenek@apple.com>2009-04-02 02:40:45 +0000
commit4188409d2905931291ee9bd23de0c271d5cb358a (patch)
treed310cbcbe7532d2a2ae114d6feb8495da8b12fbe /lib/Analysis/CFRefCount.cpp
parent5d88ff8bb441a26b033ebb818439ea02e44d9436 (diff)
Title-case the names of bug types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r--lib/Analysis/CFRefCount.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index c9917da82e..0a6b48f99e 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -2499,13 +2499,13 @@ void CFRefCount::RegisterChecks(BugReporter& BR) {
const char* name = 0;
if (isGCEnabled())
- name = "leak of returned object (GC)";
+ name = "Leak of returned object when using garbage collection";
else if (getLangOptions().getGCMode() == LangOptions::HybridGC)
- name = "[naming convention] leak of returned object (hybrid MM, "
- "non-GC)";
+ name = "Leak of returned object when not using garbage collection (GC) in "
+ "dual GC/non-GC code";
else {
assert(getLangOptions().getGCMode() == LangOptions::NonGC);
- name = "leak of returned object";
+ name = "Leak of returned object";
}
leakAtReturn = new LeakAtReturn(this, name);
@@ -2513,12 +2513,13 @@ void CFRefCount::RegisterChecks(BugReporter& BR) {
// Second, register leaks within a function/method.
if (isGCEnabled())
- name = "leak (GC)";
+ name = "Leak of object when using garbage collection";
else if (getLangOptions().getGCMode() == LangOptions::HybridGC)
- name = "leak (hybrid MM, non-GC)";
+ name = "Leak of object when not using garbage collection (GC) in "
+ "dual GC/non-GC code";
else {
assert(getLangOptions().getGCMode() == LangOptions::NonGC);
- name = "leak";
+ name = "Leak";
}
leakWithinFunction = new LeakWithinFunction(this, name);