clang-tools
9.0.0
|
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include <cinttypes>
Go to the source code of this file.
Namespaces | |
clang | |
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===// | |
clang::tidy | |
clang::tidy::abseil | |
Enumerations | |
enum | clang::tidy::abseil::DurationScale : std::uint8_t { clang::tidy::abseil::DurationScale::Hours = 0, clang::tidy::abseil::DurationScale::Minutes, clang::tidy::abseil::DurationScale::Seconds, clang::tidy::abseil::DurationScale::Milliseconds, clang::tidy::abseil::DurationScale::Microseconds, clang::tidy::abseil::DurationScale::Nanoseconds } |
Duration factory and conversion scales. More... | |
Functions | |
llvm::StringRef | clang::tidy::abseil::getDurationFactoryForScale (DurationScale Scale) |
Returns the factory function name for a given Scale . More... | |
llvm::StringRef | clang::tidy::abseil::getTimeFactoryForScale (DurationScale scale) |
Given a 'Scale', return the appropriate factory function call for constructing a Time for that scale. More... | |
bool | clang::tidy::abseil::IsLiteralZero (const ast_matchers::MatchFinder::MatchResult &Result, const Expr &Node) |
llvm::Optional< std::string > | clang::tidy::abseil::stripFloatCast (const ast_matchers::MatchFinder::MatchResult &Result, const Expr &Node) |
Possibly strip a floating point cast expression. More... | |
llvm::Optional< std::string > | clang::tidy::abseil::stripFloatLiteralFraction (const ast_matchers::MatchFinder::MatchResult &Result, const Expr &Node) |
Possibly remove the fractional part of a floating point literal. More... | |
std::string | clang::tidy::abseil::simplifyDurationFactoryArg (const ast_matchers::MatchFinder::MatchResult &Result, const Expr &Node) |
Possibly further simplify a duration factory function's argument, without changing the scale of the factory function. More... | |
llvm::Optional< DurationScale > | clang::tidy::abseil::getScaleForDurationInverse (llvm::StringRef Name) |
Given the name of an inverse Duration function (e.g., ToDoubleSeconds ), return its DurationScale , or None if a match is not found. More... | |
llvm::Optional< DurationScale > | clang::tidy::abseil::getScaleForTimeInverse (llvm::StringRef Name) |
Given the name of an inverse Time function (e.g., ToUnixSeconds ), return its DurationScale , or None if a match is not found. More... | |
const std::pair< llvm::StringRef, llvm::StringRef > & | clang::tidy::abseil::getDurationInverseForScale (DurationScale Scale) |
Given a Scale return the fully qualified inverse functions for it. More... | |
llvm::StringRef | clang::tidy::abseil::getTimeInverseForScale (DurationScale scale) |
Returns the Time factory function name for a given Scale . More... | |
std::string | clang::tidy::abseil::rewriteExprFromNumberToDuration (const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale, const Expr *Node) |
Assuming Node has type double or int representing a time interval of Scale , return the expression to make it a suitable Duration . More... | |
std::string | clang::tidy::abseil::rewriteExprFromNumberToTime (const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale, const Expr *Node) |
Assuming Node has a type int representing a time instant of Scale since The Epoch, return the expression to make it a suitable Time . More... | |
bool | clang::tidy::abseil::isInMacro (const ast_matchers::MatchFinder::MatchResult &Result, const Expr *E) |
Return false if E is a either: not a macro at all; or an argument to one. More... | |
clang::tidy::abseil::AST_MATCHER_FUNCTION (ast_matchers::internal::Matcher< FunctionDecl >, DurationConversionFunction) | |
clang::tidy::abseil::AST_MATCHER_FUNCTION (ast_matchers::internal::Matcher< FunctionDecl >, DurationFactoryFunction) | |
clang::tidy::abseil::AST_MATCHER_FUNCTION (ast_matchers::internal::Matcher< FunctionDecl >, TimeConversionFunction) | |
clang::tidy::abseil::AST_MATCHER_FUNCTION_P (ast_matchers::internal::Matcher< Stmt >, comparisonOperatorWithCallee, ast_matchers::internal::Matcher< Decl >, funcDecl) | |