clang 22.0.0git
NumericLiteralCaseFixer.cpp File Reference

This file implements NumericLiteralCaseFixer that standardizes character case within numeric literals. More...

#include "NumericLiteralCaseFixer.h"
#include "NumericLiteralInfo.h"
#include "llvm/ADT/StringExtras.h"
#include <algorithm>

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
namespace  clang::format

Functions

static bool clang::format::isNumericLiteralCaseFixerNeeded (const FormatStyle &Style)
static std::string clang::format::transformComponent (StringRef Component, FormatStyle::NumericLiteralComponentStyle ConfigValue)
static bool clang::format::matchesReservedSuffix (StringRef Suffix)
 Test if Suffix matches a C++ literal reserved by the library.
static std::string clang::format::format (StringRef NumericLiteral, const FormatStyle &Style)

Detailed Description

This file implements NumericLiteralCaseFixer that standardizes character case within numeric literals.

Definition in file NumericLiteralCaseFixer.cpp.