[DynInst_API:] [dyninst/dyninst] 88a774: modernize InstructionAPI::Operand class (#1456)


Date: Tue, 25 Jul 2023 11:07:14 -0700
From: kupsch <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 88a774: modernize InstructionAPI::Operand class (#1456)
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: 88a774dfa36208bc297b65dc18fdfe4e2e66140c
      https://github.com/dyninst/dyninst/commit/88a774dfa36208bc297b65dc18fdfe4e2e66140c
  Author: kupsch <kupsch@xxxxxxxxxxx>
  Date:   2023-07-25 (Tue, 25 Jul 2023)

  Changed paths:
    M instructionAPI/h/Operand.h

  Log Message:
  -----------
  modernize InstructionAPI::Operand class (#1456)

* modernize InstructionAPI::Operand class

- eliminate all but one of the constructors by using default parameters

- remove destructor (unnecessarily virtual, and reset a member
  shared_ptr), copy ctor, and copy assignment declarations to allow the
  compiler to generate default versions that are equivalent or better
  than the hand written versions

- add default member initializers for all members

- make Operand constructor explicit


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 88a774: modernize InstructionAPI::Operand class (#1456), kupsch <=