diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-04-02 02:40:45 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-04-02 02:40:45 +0000 |
commit | d7c0872653d78c41e95e243c3b72d32b2448e007 (patch) | |
tree | b967824bb2c1fae0febc1bc4683b3368461a7613 /clang | |
parent | b82dd539885a7712a63984b2f168c6d269d0ea5b (diff) | |
download | bcm5719-llvm-d7c0872653d78c41e95e243c3b72d32b2448e007.tar.gz bcm5719-llvm-d7c0872653d78c41e95e243c3b72d32b2448e007.zip |
Title-case the names of bug types.
llvm-svn: 68274
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index c9917da82ee..0a6b48f99e0 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/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); |