clang 20.0.0git
Namespaces | Functions
clang::tooling::fixit Namespace Reference

Namespaces

namespace  internal
 

Functions

template<typename T >
StringRef getText (const T &Node, const ASTContext &Context)
 Returns a textual representation of Node.
 
template<typename T >
FixItHint createRemoval (const T &Node)
 
template<typename D , typename S >
FixItHint createReplacement (const D &Destination, const S &Source, const ASTContext &Context)
 
template<typename D >
FixItHint createReplacement (const D &Destination, StringRef Source)
 

Function Documentation

◆ createRemoval()

template<typename T >
FixItHint clang::tooling::fixit::createRemoval ( const T Node)

◆ createReplacement() [1/2]

template<typename D , typename S >
FixItHint clang::tooling::fixit::createReplacement ( const D Destination,
const S &  Source,
const ASTContext Context 
)

◆ createReplacement() [2/2]

template<typename D >
FixItHint clang::tooling::fixit::createReplacement ( const D Destination,
StringRef  Source 
)

◆ getText()

template<typename T >
StringRef clang::tooling::fixit::getText ( const T Node,
const ASTContext Context 
)

Returns a textual representation of Node.

Definition at line 50 of file FixIt.h.

References clang::tooling::fixit::internal::getSourceRange(), clang::tooling::fixit::internal::getText(), and Node.

Referenced by createReplacement().