clang
3.9.0
|
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... | |
|
inline |
Returns the SourceRange of a SourceRange.
This identity function is used by the following template abstractions.
Definition at line 34 of file FixIt.h.
Referenced by clang::Sema::BuildCXXNew(), clang::Sema::BuildCXXTypeConstructExpr(), CheckReturnStackAddr(), clang::tooling::fixit::createRemoval(), clang::tooling::fixit::createReplacement(), clang::InitializationSequence::Diagnose(), DiagnoseBitwisePrecedence(), clang::TemplateArgumentLoc::getLocation(), clang::tooling::fixit::getText(), clang::Expr::isUnusedResultAWarning(), clang::LLVM_ALIGNAS(), clang::Sema::MatchTemplateParametersToScopeSpecifier(), and clang::Sema::SpecialMemberIsTrivial().
|
inline |
Returns the SourceRange of the token at Location Loc
.
SourceRange clang::tooling::fixit::internal::getSourceRange | ( | const T & | Node | ) |
StringRef clang::tooling::fixit::internal::getText | ( | SourceRange | Range, |
const ASTContext & | Context | ||
) |
Definition at line 22 of file FixIt.cpp.
References clang::ASTContext::getLangOpts(), clang::ASTContext::getSourceManager(), clang::Lexer::getSourceText(), and clang::CharSourceRange::getTokenRange().
Referenced by clang::tooling::fixit::getText().