clang
22.0.0git
lib
Analysis
LifetimeSafety
Loans.cpp
Go to the documentation of this file.
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
Loans.h
clang::lifetimes::internal::Loan::getID
LoanID getID() const
Definition
Loans.h:56
clang::lifetimes::internal::PathLoan::dump
void dump(llvm::raw_ostream &OS) const override
Definition
Loans.cpp:13
clang::lifetimes::internal::PlaceholderLoan::dump
void dump(llvm::raw_ostream &OS) const override
Definition
Loans.cpp:18
clang::lifetimes::internal
Definition
Checker.h:23
Generated on
for clang by
1.14.0