[DynInst_API:] [dyninst/dyninst] 9fa5f6: Guarantee operands in AstOperatorNode are non-null...


Date: Mon, 30 Oct 2023 08:36:52 -0700
From: Tim Haines <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 9fa5f6: Guarantee operands in AstOperatorNode are non-null...
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: 9fa5f6dc0307d735700c544ca83d661926b40803
      https://github.com/dyninst/dyninst/commit/9fa5f6dc0307d735700c544ca83d661926b40803
  Author: Tim Haines <thaines.astro@xxxxxxxxx>
  Date:   2023-10-30 (Mon, 30 Oct 2023)

  Changed paths:
    M dyninstAPI/src/ast.C
    M dyninstAPI/src/ast.h

  Log Message:
  -----------
  Guarantee operands in AstOperatorNode are non-null (#1609)

* AstOperatorNode: operands are non-null

This is now a class invariant. Found by cppcheck's
nullPointerRedundantCheck.

* AstOperatorNode: remove dtor and default ctor

They don't enforce the new invariant.


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 9fa5f6: Guarantee operands in AstOperatorNode are non-null..., Tim Haines <=