#include "StringConstructorCheck.h"
#include "../utils/OptionsUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Tooling/FixIt.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::bugprone {
namespace {
AST_MATCHER_P(IntegerLiteral, isBiggerThan, unsigned, N) { … }
const char DefaultStringNames[] = …;
static std::vector<StringRef>
removeNamespaces(const std::vector<StringRef> &Names) { … }
}
StringConstructorCheck::StringConstructorCheck(StringRef Name,
ClangTidyContext *Context)
: … { … }
void StringConstructorCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) { … }
void StringConstructorCheck::registerMatchers(MatchFinder *Finder) { … }
void StringConstructorCheck::check(const MatchFinder::MatchResult &Result) { … }
}