From 16a59fabecfd8a380f96fabab3105c4b9b818ca0 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Sat, 27 Sep 2008 00:45:27 +0000 Subject: [PATCH] Change "leaks" to have the category "Performance". llvm-svn: 56735 --- clang/lib/Analysis/CFRefCount.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index adbeff991586..1a9d6b7c7bad 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -2022,7 +2022,7 @@ namespace { virtual bool isLeak() const { return false; } const char* getCategory() const { - return "Memory (Core Foundation/Objective-C)"; + return "Correctness"; } }; @@ -2076,6 +2076,10 @@ namespace { return "Object leaked"; } + const char* getCategory() const { + return "Performance"; + } + virtual void EmitWarnings(BugReporter& BR); virtual void GetErrorNodes(std::vector*>& Nodes); virtual bool isLeak() const { return true; }