clang-tools 23.0.0git
UppercaseLiteralSuffixCheck.cpp File Reference
#include "UppercaseLiteralSuffixCheck.h"
#include "../utils/ASTUtils.h"
#include "../utils/OptionsUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
#include <optional>

Go to the source code of this file.

Namespaces

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

Functions

static std::optional< SourceLocation > clang::tidy::readability::getMacroAwareLocation (SourceLocation Loc, const SourceManager &SM)
static std::optional< SourceRange > clang::tidy::readability::getMacroAwareSourceRange (SourceRange Loc, const SourceManager &SM)
static std::optional< std::string > clang::tidy::readability::getNewSuffix (StringRef OldSuffix, const std::vector< StringRef > &NewSuffixes)
static std::optional< NewSuffix > clang::tidy::readability::shouldReplaceLiteralSuffix (const Expr &Literal, const LiteralParameters &Parameters, const std::vector< StringRef > &NewSuffixes, const SourceManager &SM, const LangOptions &LO)

Variables

static constexpr LiteralParameters clang::tidy::readability::IntegerParameters
static constexpr LiteralParameters clang::tidy::readability::FloatParameters