#include "OptionalValueConversionCheck.h"
#include "../utils/LexerUtils.h"
#include "../utils/Matchers.h"
#include "../utils/OptionsUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::bugprone {
namespace {
AST_MATCHER_P(QualType, hasCleanType, ast_matchers::internal::Matcher<QualType>,
InnerMatcher) { … }
}
OptionalValueConversionCheck::OptionalValueConversionCheck(
StringRef Name, ClangTidyContext *Context)
: … { … }
std::optional<TraversalKind>
OptionalValueConversionCheck::getCheckTraversalKind() const { … }
void OptionalValueConversionCheck::registerMatchers(MatchFinder *Finder) { … }
void OptionalValueConversionCheck::storeOptions(
ClangTidyOptions::OptionMap &Opts) { … }
void OptionalValueConversionCheck::check(
const MatchFinder::MatchResult &Result) { … }
}