diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-04-05 20:43:28 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-04-05 20:43:28 +0000 |
commit | b45d198b6f01fa06f1b12eee083603352ef5d604 (patch) | |
tree | 64685796b13933ecd14fce2f964f2da98d77e0b5 /clang/lib/StaticAnalyzer/Checkers/ObjCContainersChecker.cpp | |
parent | aec8a82694b0a3d2650044474fb061c1696dc718 (diff) | |
download | bcm5719-llvm-b45d198b6f01fa06f1b12eee083603352ef5d604.tar.gz bcm5719-llvm-b45d198b6f01fa06f1b12eee083603352ef5d604.zip |
Require that all static analyzer issues have a category. As part of this change,
consolidate some commonly used category strings into global references (more of this can be done, I just did a few).
Fixes <rdar://problem/11191537>.
llvm-svn: 154121
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/ObjCContainersChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/ObjCContainersChecker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/ObjCContainersChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/ObjCContainersChecker.cpp index 207d65ad8fb..f4655b6793d 100644 --- a/clang/lib/StaticAnalyzer/Checkers/ObjCContainersChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/ObjCContainersChecker.cpp @@ -34,7 +34,8 @@ class ObjCContainersChecker : public Checker< check::PreStmt<CallExpr>, mutable OwningPtr<BugType> BT; inline void initBugType() const { if (!BT) - BT.reset(new BugType("CFArray API", "Core Foundation/Objective-C")); + BT.reset(new BugType("CFArray API", + categories::CoreFoundationObjectiveC)); } inline SymbolRef getArraySym(const Expr *E, CheckerContext &C) const { |