diff options
Diffstat (limited to 'include/lldb/Utility/Baton.h')
-rw-r--r-- | include/lldb/Utility/Baton.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/include/lldb/Utility/Baton.h b/include/lldb/Utility/Baton.h index 7477846be48b..4050f2af2bf0 100644 --- a/include/lldb/Utility/Baton.h +++ b/include/lldb/Utility/Baton.h @@ -1,9 +1,8 @@ //===-- Baton.h -------------------------------------------------*- C++ -*-===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -21,8 +20,7 @@ class Stream; namespace lldb_private { -//---------------------------------------------------------------------- -/// @class Baton Baton.h "lldb/Core/Baton.h" +/// \class Baton Baton.h "lldb/Core/Baton.h" /// A class designed to wrap callback batons so they can cleanup /// any acquired resources /// @@ -32,7 +30,6 @@ namespace lldb_private { /// /// The default behavior is to not free anything. Subclasses can free any /// needed resources in their destructors. -//---------------------------------------------------------------------- class Baton { public: Baton() {} @@ -47,7 +44,7 @@ public: class UntypedBaton : public Baton { public: UntypedBaton(void *Data) : m_data(Data) {} - virtual ~UntypedBaton() { + ~UntypedBaton() override { // The default destructor for an untyped baton does NOT attempt to clean up // anything in m_data. } @@ -66,8 +63,7 @@ public: const T *getItem() const { return Item.get(); } void *data() override { return Item.get(); } - virtual void GetDescription(Stream *s, - lldb::DescriptionLevel level) const override {} + void GetDescription(Stream *s, lldb::DescriptionLevel level) const override {} protected: std::unique_ptr<T> Item; |