From 95a92995d45fc6fada43ecd91eba3e7aea90487a Mon Sep 17 00:00:00 2001 From: Rashmi Mudduluru Date: Tue, 2 Aug 2022 13:53:50 -0700 Subject: Adds the NSDateFormatter checker to clang-tidy Differential Revision: https://reviews.llvm.org/D126097 --- clang-tools-extra/clang-tidy/objc/ObjCTidyModule.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang-tools-extra/clang-tidy/objc/ObjCTidyModule.cpp') 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( "objc-missing-hash"); + CheckFactories.registerCheck("objc-nsdate-formatter"); CheckFactories.registerCheck( "objc-nsinvocation-argument-lifetime"); CheckFactories.registerCheck( -- cgit v1.1