clang-tools 19.0.0git
Namespaces | Enumerations | Functions
FixItHintUtils.h File Reference
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/Sema/DeclSpec.h"
#include <optional>

Go to the source code of this file.


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


enum class  clang::tidy::utils::fixit::QualifierPolicy { clang::tidy::utils::fixit::Left , clang::tidy::utils::fixit::Right }
 This enum defines where the qualifier shall be preferably added. More...
enum class  clang::tidy::utils::fixit::QualifierTarget { clang::tidy::utils::fixit::Pointee , clang::tidy::utils::fixit::Value }
 This enum defines which entity is the target for adding the qualifier. More...


FixItHint clang::tidy::utils::fixit::changeVarDeclToReference (const VarDecl &Var, ASTContext &Context)
 Creates fix to make VarDecl a reference by adding &.
std::optional< FixItHint > clang::tidy::utils::fixit::addQualifierToVarDecl (const VarDecl &Var, const ASTContext &Context, DeclSpec::TQ Qualifier, QualifierTarget QualTarget=QualifierTarget::Pointee, QualifierPolicy QualPolicy=QualifierPolicy::Left)
 Creates fix to qualify VarDecl with the specified Qualifier.
std::string clang::tidy::utils::fixit::formatDereference (const Expr &ExprNode, const ASTContext &Context)
bool clang::tidy::utils::fixit::areParensNeededForStatement (const Stmt &Node)