#include "MultiwayPathsCoveredCheck.h"
#include "clang/AST/ASTContext.h"
#include <limits>
usingnamespaceclang::ast_matchers;
namespace clang::tidy::hicpp {
void MultiwayPathsCoveredCheck::storeOptions(
ClangTidyOptions::OptionMap &Opts) { … }
void MultiwayPathsCoveredCheck::registerMatchers(MatchFinder *Finder) { … }
static std::pair<std::size_t, bool> countCaseLabels(const SwitchStmt *Switch) { … }
static std::size_t twoPow(std::size_t Bits) { … }
static std::size_t getNumberOfPossibleValues(QualType T,
const ASTContext &Context) { … }
void MultiwayPathsCoveredCheck::check(const MatchFinder::MatchResult &Result) { … }
void MultiwayPathsCoveredCheck::handleSwitchWithDefault(
const SwitchStmt *Switch, std::size_t CaseCount) { … }
void MultiwayPathsCoveredCheck::handleSwitchWithoutDefault(
const SwitchStmt *Switch, std::size_t CaseCount,
const MatchFinder::MatchResult &Result) { … }
}