clang-tools 22.0.0git
NarrowingConversionsCheck.cpp File Reference
#include "NarrowingConversionsCheck.h"
#include "../utils/OptionsUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Expr.h"
#include "clang/AST/Type.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include <cstdint>

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 const BuiltinType * clang::tidy::bugprone::getBuiltinType (const Expr &E)
static QualType clang::tidy::bugprone::getUnqualifiedType (const Expr &E)
static APValue clang::tidy::bugprone::getConstantExprValue (const ASTContext &Ctx, const Expr &E)
static bool clang::tidy::bugprone::getIntegerConstantExprValue (const ASTContext &Context, const Expr &E, llvm::APSInt &Value)
static bool clang::tidy::bugprone::getFloatingConstantExprValue (const ASTContext &Context, const Expr &E, llvm::APFloat &Value)
static IntegerRange clang::tidy::bugprone::createFromType (const ASTContext &Context, const BuiltinType &T)
static bool clang::tidy::bugprone::isWideEnoughToHold (const ASTContext &Context, const BuiltinType &FromType, const BuiltinType &ToType)
static bool clang::tidy::bugprone::isWideEnoughToHold (const ASTContext &Context, const llvm::APSInt &IntegerConstant, const BuiltinType &ToType)
static bool clang::tidy::bugprone::isFloatExactlyRepresentable (const ASTContext &Context, const llvm::APFloat &FloatConstant, const QualType &DestType)
static llvm::SmallString< 64 > clang::tidy::bugprone::getValueAsString (const llvm::APSInt &Value, uint64_t HexBits)