clang-tools 20.0.0git
|
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/Type.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::utils |
namespace | clang::tidy::utils::fixit |
Enumerations | |
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... | |
Functions | |
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, Qualifiers::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) |