Coverage Report

Created: 2020-02-15 09:57

/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/lib/Tooling/FixIt.cpp
Line
Count
Source
1
//===--- FixIt.cpp - FixIt Hint utilities -----------------------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// This file contains implementations of utitilies to ease source code rewriting
10
// by providing helper functions related to FixItHint.
11
//
12
//===----------------------------------------------------------------------===//
13
#include "clang/Tooling/FixIt.h"
14
#include "clang/Lex/Lexer.h"
15
16
namespace clang {
17
namespace tooling {
18
namespace fixit {
19
20
namespace internal {
21
33
StringRef getText(CharSourceRange Range, const ASTContext &Context) {
22
33
  return Lexer::getSourceText(Range, Context.getSourceManager(),
23
33
                              Context.getLangOpts());
24
33
}
25
} // namespace internal
26
27
} // end namespace fixit
28
} // end namespace tooling
29
} // end namespace clang