aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/objc/ObjCTidyModule.cpp
diff options
context:
space:
mode:
authorRashmi Mudduluru <r_mudduluru@apple.com>2022-08-02 13:53:50 -0700
committerRashmi Mudduluru <r_mudduluru@apple.com>2022-08-02 13:57:44 -0700
commit95a92995d45fc6fada43ecd91eba3e7aea90487a (patch)
treecc390513c46c6641975727a76b6814e105f0045d /clang-tools-extra/clang-tidy/objc/ObjCTidyModule.cpp
parent803386da2ff80f0a5e75d2baee6dfa79d9d8d26f (diff)
downloadllvm-95a92995d45fc6fada43ecd91eba3e7aea90487a.zip
llvm-95a92995d45fc6fada43ecd91eba3e7aea90487a.tar.gz
llvm-95a92995d45fc6fada43ecd91eba3e7aea90487a.tar.bz2
Adds the NSDateFormatter checker to clang-tidy
Differential Revision: https://reviews.llvm.org/D126097
Diffstat (limited to 'clang-tools-extra/clang-tidy/objc/ObjCTidyModule.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/objc/ObjCTidyModule.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/objc/ObjCTidyModule.cpp b/clang-tools-extra/clang-tidy/objc/ObjCTidyModule.cpp
index 3a5bf7d..0cfab1f 100644
--- a/clang-tools-extra/clang-tidy/objc/ObjCTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/objc/ObjCTidyModule.cpp
@@ -14,6 +14,7 @@
#include "DeallocInCategoryCheck.h"
#include "ForbiddenSubclassingCheck.h"
#include "MissingHashCheck.h"
+#include "NSDateFormatterCheck.h"
#include "NSInvocationArgumentLifetimeCheck.h"
#include "PropertyDeclarationCheck.h"
#include "SuperSelfCheck.h"
@@ -37,6 +38,7 @@ public:
"objc-forbidden-subclassing");
CheckFactories.registerCheck<MissingHashCheck>(
"objc-missing-hash");
+ CheckFactories.registerCheck<NSDateFormatterCheck>("objc-nsdate-formatter");
CheckFactories.registerCheck<NSInvocationArgumentLifetimeCheck>(
"objc-nsinvocation-argument-lifetime");
CheckFactories.registerCheck<PropertyDeclarationCheck>(