clang-tools 10.0.0

Namespaces | Functions
FixItHintUtils.cpp File Reference
`#include "FixItHintUtils.h"`
`#include "LexerUtils.h"`
`#include "clang/AST/ASTContext.h"`
`#include "clang/AST/Type.h"`
Include dependency graph for FixItHintUtils.cpp:

Go to the source code of this file.

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

## Functions
FixItHint | clang::tidy::utils::fixit::changeVarDeclToReference (const VarDecl &Var, ASTContext &Context)
| Creates fix to make `VarDecl` a reference by adding `&`. More...
static bool | clang::tidy::utils::fixit::isValueType (const Type *T)
static bool | clang::tidy::utils::fixit::isValueType (QualType QT)
static bool | clang::tidy::utils::fixit::isMemberOrFunctionPointer (QualType QT)
static bool | clang::tidy::utils::fixit::locDangerous (SourceLocation S)
static Optional< SourceLocation > | clang::tidy::utils::fixit::skipLParensBackwards (SourceLocation Start, const ASTContext &Context)
static Optional< FixItHint > | clang::tidy::utils::fixit::fixIfNotDangerous (SourceLocation Loc, StringRef Text)
static std::string | clang::tidy::utils::fixit::buildQualifier (DeclSpec::TQ Qualifier, bool WhitespaceBefore=false)
static Optional< FixItHint > | clang::tidy::utils::fixit::changeValue (const VarDecl &Var, DeclSpec::TQ Qualifier, QualifierTarget QualTarget, QualifierPolicy QualPolicy, const ASTContext &Context)
static Optional< FixItHint > | clang::tidy::utils::fixit::changePointerItself (const VarDecl &Var, DeclSpec::TQ Qualifier, const ASTContext &Context)
static Optional< FixItHint > | clang::tidy::utils::fixit::changePointer (const VarDecl &Var, DeclSpec::TQ Qualifier, const Type *Pointee, QualifierTarget QualTarget, QualifierPolicy QualPolicy, const ASTContext &Context)
static Optional< FixItHint > | clang::tidy::utils::fixit::changeReferencee (const VarDecl &Var, DeclSpec::TQ Qualifier, QualType Pointee, QualifierTarget QualTarget, QualifierPolicy QualPolicy, const ASTContext &Context)
Optional< FixItHint > | clang::tidy::utils::fixit::addQualifierToVarDecl (const VarDecl &Var, const ASTContext &Context, DeclSpec::TQ Qualifier, QualifierTarget CT=QualifierTarget::Pointee, QualifierPolicy CP=QualifierPolicy::Left)
| Creates fix to qualify `VarDecl` with the specified `Qualifier`. More...