xref: /llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ASTUtils.cpp (revision 770cd24140038646539602406fff54497793dae8)
180814287SRaphael Isemann //===-- ASTUtils.cpp ------------------------------------------------------===//
26c0bbfc0SRaphael Isemann //
36c0bbfc0SRaphael Isemann // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
46c0bbfc0SRaphael Isemann // See https://llvm.org/LICENSE.txt for license information.
56c0bbfc0SRaphael Isemann // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66c0bbfc0SRaphael Isemann //
76c0bbfc0SRaphael Isemann //===----------------------------------------------------------------------===//
86c0bbfc0SRaphael Isemann 
96c0bbfc0SRaphael Isemann #include "ASTUtils.h"
106c0bbfc0SRaphael Isemann 
11fd2433e1SJonas Devlieghere lldb_private::ExternalASTSourceWrapper::~ExternalASTSourceWrapper() = default;
126c0bbfc0SRaphael Isemann 
136c0bbfc0SRaphael Isemann void lldb_private::ExternalASTSourceWrapper::PrintStats() {
146c0bbfc0SRaphael Isemann   m_Source->PrintStats();
156c0bbfc0SRaphael Isemann }
166c0bbfc0SRaphael Isemann 
17fd2433e1SJonas Devlieghere lldb_private::ASTConsumerForwarder::~ASTConsumerForwarder() = default;
186c0bbfc0SRaphael Isemann 
196c0bbfc0SRaphael Isemann void lldb_private::ASTConsumerForwarder::PrintStats() { m_c->PrintStats(); }
206c0bbfc0SRaphael Isemann 
21*770cd241SMichael Buch lldb_private::SemaSourceWithPriorities::~SemaSourceWithPriorities() {
22*770cd241SMichael Buch   for (auto *Source : Sources)
23*770cd241SMichael Buch     Source->Release();
24*770cd241SMichael Buch }
256c0bbfc0SRaphael Isemann 
266c0bbfc0SRaphael Isemann void lldb_private::SemaSourceWithPriorities::PrintStats() {
276c0bbfc0SRaphael Isemann   for (size_t i = 0; i < Sources.size(); ++i)
286c0bbfc0SRaphael Isemann     Sources[i]->PrintStats();
296c0bbfc0SRaphael Isemann }
30