| 1 |
//===- Loans.cpp - Loan Implementation --------------------------*- 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 |
#include "clang/Analysis/Analyses/LifetimeSafety/Loans.h" |
| 10 |
|
| 11 |
namespace clang::lifetimes::internal { |
| 12 |
|
| 13 |
void PathLoan::dump(llvm::raw_ostream &OS) const { |
| 14 |
OS << getID() << " (Path: "; |
| 15 |
OS << Path.D->getNameAsString() << ")"; |
| 16 |
} |
| 17 |
|
| 18 |
void PlaceholderLoan::dump(llvm::raw_ostream &OS) const { |
| 19 |
OS << getID() << " (Placeholder loan)"; |
| 20 |
} |
| 21 |
|
| 22 |
} // namespace clang::lifetimes::internal |