clang-tools 20.0.0git
|
Implementation of the FormatStringConverter class which is used to convert printf format strings to C++ std::formatter format strings. More...
#include "FormatStringConverter.h"
#include "../utils/FixItHintUtils.h"
#include "clang/AST/Expr.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Lex/Lexer.h"
#include "clang/Tooling/FixIt.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Debug.h"
Go to the source code of this file.
Namespaces | |
namespace | clang |
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===// | |
namespace | clang::tidy |
namespace | clang::tidy::utils |
Functions | |
static bool | clang::tidy::utils::isRealCharType (const clang::QualType &Ty) |
Is the passed type the actual "char" type, whether that be signed or unsigned, rather than explicit signed char or unsigned char types. | |
static std::optional< std::string > | clang::tidy::utils::getCorrespondingSignedTypeName (const clang::QualType &QT) |
If possible, return the text name of the signed type that corresponds to the passed integer type. | |
static std::optional< std::string > | clang::tidy::utils::getCorrespondingUnsignedTypeName (const clang::QualType &QT) |
If possible, return the text name of the unsigned type that corresponds to the passed integer type. | |
static std::optional< std::string > | clang::tidy::utils::castTypeForArgument (ConversionSpecifier::Kind ArgKind, const clang::QualType &QT) |
static bool | clang::tidy::utils::isMatchingSignedness (ConversionSpecifier::Kind ArgKind, const clang::QualType &ArgType) |
static bool | clang::tidy::utils::castMismatchedIntegerTypes (const CallExpr *Call, bool StrictMode) |
static std::string | clang::tidy::utils::withoutCStrReplacement (const BoundNodes &CStrRemovalMatch, ASTContext &Context) |
Implementation of the FormatStringConverter class which is used to convert printf format strings to C++ std::formatter format strings.
Definition in file FormatStringConverter.cpp.