clang-tools 23.0.0git
UnhandledCodePathsCheck.cpp File Reference
#include "UnhandledCodePathsCheck.h"
#include "clang/AST/ASTContext.h"
#include <limits>

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
namespace  clang::tidy
namespace  clang::tidy::bugprone

Functions

static std::pair< std::size_t, bool > clang::tidy::bugprone::countCaseLabels (const SwitchStmt *Switch)
static std::size_t clang::tidy::bugprone::twoPow (std::size_t Bits)
 This function calculate 2 ** Bits and returns numeric_limits<std::size_t>::max() if an overflow occurred.
static std::size_t clang::tidy::bugprone::getNumberOfPossibleValues (QualType T, const ASTContext &Context)
 Get the number of possible values that can be switched on for the type T.