clang
7.0.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::tooling::fixit::createRemoval(), clang::tooling::fixit::createReplacement(), DiagnoseBitwisePrecedence(), clang::NestedNameSpecifierLoc::getBeginLoc(), clang::UnresolvedUsingValueDecl::getEllipsisLoc(), clang::NestedNameSpecifierLoc::getEndLoc(), clang::ImportDecl::getImportedModule(), clang::TagDecl::getInnerLocStart(), clang::TypeOfExprTypeLoc::getLocalSourceRange(), clang::TemplateArgumentLoc::getLocation(), clang::CXXCtorInitializer::getMemberLocation(), clang::ast_type_traits::DynTypedNode::getMemoizationData(), clang::NestedNameSpecifierLoc::getOpaqueData(), clang::FieldDecl::getParent(), clang::ObjCMethodCall::getSelector(), clang::Stmt::getStmtClass(), clang::BlockDecl::setBlockMangling(), clang::EnumConstantDecl::setInitVal(), and clang::DeclaratorDecl::setInnerLocStart().
|
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 | ||
) |