1303233Sdim//===--- FixIt.cpp - FixIt Hint utilities -----------------------*- C++ -*-===// 2303233Sdim// 3353358Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4353358Sdim// See https://llvm.org/LICENSE.txt for license information. 5353358Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6303233Sdim// 7303233Sdim//===----------------------------------------------------------------------===// 8303233Sdim// 9303233Sdim// This file contains implementations of utitilies to ease source code rewriting 10303233Sdim// by providing helper functions related to FixItHint. 11303233Sdim// 12303233Sdim//===----------------------------------------------------------------------===// 13303233Sdim#include "clang/Tooling/FixIt.h" 14303233Sdim#include "clang/Lex/Lexer.h" 15303233Sdim 16303233Sdimnamespace clang { 17303233Sdimnamespace tooling { 18303233Sdimnamespace fixit { 19303233Sdim 20303233Sdimnamespace internal { 21353358SdimStringRef getText(CharSourceRange Range, const ASTContext &Context) { 22353358Sdim return Lexer::getSourceText(Range, Context.getSourceManager(), 23303233Sdim Context.getLangOpts()); 24303233Sdim} 25353358Sdim} // namespace internal 26303233Sdim 27303233Sdim} // end namespace fixit 28303233Sdim} // end namespace tooling 29303233Sdim} // end namespace clang 30