clang  6.0.0svn
Functions
clang::tooling::fixit::internal Namespace Reference

Functions

StringRef getText (SourceRange Range, const ASTContext &Context)
 
SourceRange getSourceRange (const SourceRange &Range)
 Returns the SourceRange of a SourceRange. More...
 
SourceRange getSourceRange (const SourceLocation &Loc)
 Returns the SourceRange of the token at Location Loc. More...
 
template<typename T >
SourceRange getSourceRange (const T &Node)
 Returns the SourceRange of an given Node. More...
 

Function Documentation

◆ getSourceRange() [1/3]

SourceRange clang::tooling::fixit::internal::getSourceRange ( const SourceRange Range)
inline

◆ getSourceRange() [2/3]

SourceRange clang::tooling::fixit::internal::getSourceRange ( const SourceLocation Loc)
inline

Returns the SourceRange of the token at Location Loc.

Definition at line 37 of file FixIt.h.

◆ getSourceRange() [3/3]

template<typename T >
SourceRange clang::tooling::fixit::internal::getSourceRange ( const T Node)

Returns the SourceRange of an given Node.

Node is typically a 'Stmt', 'Expr' or a 'Decl'.

Definition at line 43 of file FixIt.h.

◆ getText()

StringRef clang::tooling::fixit::internal::getText ( SourceRange  Range,
const ASTContext Context 
)

Definition at line 22 of file FixIt.cpp.