#include "AvoidNSObjectNewCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Lex/Lexer.h"
#include "llvm/Support/FormatVariadic.h"
#include <map>
#include <string>
usingnamespaceclang::ast_matchers;
namespace clang::tidy::google::objc {
static bool isMessageExpressionInsideMacro(const ObjCMessageExpr *Expr) { … }
static bool isInitMethodAvailable(const ObjCInterfaceDecl *ClassDecl) { … }
static StringRef getReceiverString(SourceRange ReceiverRange,
const SourceManager &SM,
const LangOptions &LangOpts) { … }
static FixItHint getCallFixItHint(const ObjCMessageExpr *Expr,
const SourceManager &SM,
const LangOptions &LangOpts) { … }
void AvoidNSObjectNewCheck::registerMatchers(MatchFinder *Finder) { … }
void AvoidNSObjectNewCheck::check(const MatchFinder::MatchResult &Result) { … }
}