Change "leaks" to have the category "Performance".

llvm-svn: 56735
This commit is contained in:
Ted Kremenek 2008-09-27 00:45:27 +00:00
parent 00e36f4c5c
commit 16a59fabec
1 changed files with 5 additions and 1 deletions

View File

@ -2022,7 +2022,7 @@ namespace {
virtual bool isLeak() const { return false; } virtual bool isLeak() const { return false; }
const char* getCategory() const { const char* getCategory() const {
return "Memory (Core Foundation/Objective-C)"; return "Correctness";
} }
}; };
@ -2076,6 +2076,10 @@ namespace {
return "Object leaked"; return "Object leaked";
} }
const char* getCategory() const {
return "Performance";
}
virtual void EmitWarnings(BugReporter& BR); virtual void EmitWarnings(BugReporter& BR);
virtual void GetErrorNodes(std::vector<ExplodedNode<GRState>*>& Nodes); virtual void GetErrorNodes(std::vector<ExplodedNode<GRState>*>& Nodes);
virtual bool isLeak() const { return true; } virtual bool isLeak() const { return true; }