clang-tools 20.0.0git
Namespaces | Functions
DurationFactoryScaleCheck.cpp File Reference
#include "DurationFactoryScaleCheck.h"
#include "DurationRewriter.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Tooling/FixIt.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::abseil
 

Functions

static std::optional< DurationScale > clang::tidy::abseil::getScaleForFactory (llvm::StringRef FactoryName)
 
static double clang::tidy::abseil::getValue (const IntegerLiteral *IntLit, const FloatingLiteral *FloatLit)
 
static std::optional< std::tuple< DurationScale, double > > clang::tidy::abseil::getNewScaleSingleStep (DurationScale OldScale, double Multiplier)
 
static std::optional< DurationScale > clang::tidy::abseil::getNewScale (DurationScale OldScale, double Multiplier)