clang-tools 20.0.0git
Namespaces | Functions | Variables
OperatorsRepresentationCheck.cpp File Reference
#include "OperatorsRepresentationCheck.h"
#include "../utils/OptionsUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
#include "llvm/ADT/STLExtras.h"
#include <array>
#include <utility>

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 StringRef clang::tidy::readability::getOperatorSpelling (SourceLocation Loc, ASTContext &Context)
 
static llvm::StringRef clang::tidy::readability::translate (llvm::StringRef Value)
 
static bool clang::tidy::readability::isNotOperatorStr (llvm::StringRef Value)
 
static bool clang::tidy::readability::isSeparator (char C) noexcept
 
static bool clang::tidy::readability::needEscaping (llvm::StringRef Operator)
 
static llvm::StringRef clang::tidy::readability::getRepresentation (const std::vector< llvm::StringRef > &Config, llvm::StringRef Traditional, llvm::StringRef Alternative)
 
template<typename T >
static bool clang::tidy::readability::isAnyOperatorEnabled (const std::vector< llvm::StringRef > &Config, const T &Operators)
 

Variables

constexpr std::array< std::pair< llvm::StringRef, llvm::StringRef >, 2U > clang::tidy::readability::UnaryRepresentation {{{"!", "not"}, {"~", "compl"}}}
 
constexpr std::array< std::pair< llvm::StringRef, llvm::StringRef >, 9U > clang::tidy::readability::OperatorsRepresentation