#include "GlobalVariableDeclarationCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include <string>
usingnamespaceclang::ast_matchers;
namespace clang::tidy::google::objc {
namespace {
AST_MATCHER(VarDecl, isLocalVariable) { … }
FixItHint generateFixItHint(const VarDecl *Decl, bool IsConst) { … }
}
void GlobalVariableDeclarationCheck::registerMatchers(MatchFinder *Finder) { … }
void GlobalVariableDeclarationCheck::check(
const MatchFinder::MatchResult &Result) { … }
}