clang-tools 22.0.0git
|
Checks the string pattern used as a date format specifier and reports warnings if it contains any incorrect sub-pattern. More...
#include <NSDateFormatterCheck.h>
Public Member Functions | |
NSDateFormatterCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Checks the string pattern used as a date format specifier and reports warnings if it contains any incorrect sub-pattern.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/objc/nsdate-formatter.html
Definition at line 21 of file NSDateFormatterCheck.h.
|
inline |
Definition at line 23 of file NSDateFormatterCheck.h.
|
override |
Definition at line 48 of file NSDateFormatterCheck.cpp.
References clang::tidy::objc::isValidDatePattern().
|
inlineoverride |
Definition at line 25 of file NSDateFormatterCheck.h.
|
override |
Definition at line 17 of file NSDateFormatterCheck.cpp.