clang-tools 20.0.0git
Classes | Namespaces | Functions
UseConstraintsCheck.cpp File Reference
#include "UseConstraintsCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
#include "../utils/LexerUtils.h"
#include <optional>
#include <utility>

Go to the source code of this file.

Classes

struct  clang::tidy::modernize::EnableIfData
 

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::tidy
 
namespace  clang::tidy::modernize
 

Functions

static std::optional< TemplateSpecializationTypeLoc > clang::tidy::modernize::matchEnableIfSpecializationImplTypename (TypeLoc TheType)
 
static std::optional< TemplateSpecializationTypeLoc > clang::tidy::modernize::matchEnableIfSpecializationImplTrait (TypeLoc TheType)
 
static std::optional< TemplateSpecializationTypeLoc > clang::tidy::modernize::matchEnableIfSpecializationImpl (TypeLoc TheType)
 
static std::optional< EnableIfData > clang::tidy::modernize::matchEnableIfSpecialization (TypeLoc TheType)
 
static std::pair< std::optional< EnableIfData >, const Decl * > clang::tidy::modernize::matchTrailingTemplateParam (const FunctionTemplateDecl *FunctionTemplate)
 
template<typename T >
static SourceLocation clang::tidy::modernize::getRAngleFileLoc (const SourceManager &SM, const T &Element)
 
static SourceRange clang::tidy::modernize::getConditionRange (ASTContext &Context, const TemplateSpecializationTypeLoc &EnableIf)
 
static SourceRange clang::tidy::modernize::getTypeRange (ASTContext &Context, const TemplateSpecializationTypeLoc &EnableIf)
 
static std::optional< StringRef > clang::tidy::modernize::getTypeText (ASTContext &Context, const TemplateSpecializationTypeLoc &EnableIf)
 
static std::optional< SourceLocation > clang::tidy::modernize::findInsertionForConstraint (const FunctionDecl *Function, ASTContext &Context)
 
bool clang::tidy::modernize::isPrimaryExpression (const Expr *Expression)
 
static std::optional< std::string > clang::tidy::modernize::getConditionText (const Expr *ConditionExpr, SourceRange ConditionRange, ASTContext &Context)
 
static std::vector< FixItHint > clang::tidy::modernize::handleReturnType (const FunctionDecl *Function, const TypeLoc &ReturnType, const EnableIfData &EnableIf, ASTContext &Context)
 
static std::vector< FixItHint > clang::tidy::modernize::handleTrailingTemplateType (const FunctionTemplateDecl *FunctionTemplate, const FunctionDecl *Function, const Decl *LastTemplateParam, const EnableIfData &EnableIf, ASTContext &Context)