From 990bbb1626dce79ec2dc7cae0d3e5ee8363eb64d Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Mon, 1 Feb 2021 17:54:57 -0800 Subject: [PATCH] Simplify declaration of DefPointType enum --- src/script_opt/DefPoint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script_opt/DefPoint.h b/src/script_opt/DefPoint.h index e231d72dc3..db44559a8a 100644 --- a/src/script_opt/DefPoint.h +++ b/src/script_opt/DefPoint.h @@ -13,7 +13,7 @@ namespace zeek::detail { // definition (a statement, inside an expression, an aggregate passed to // a function or hook, or at the start of a function). -typedef enum { +enum DefPointType { // Used to capture the notion "the variable may have no definition // at this point" (or "has no definition", depending on whether we're // concerned with minimal or maximal RDs). @@ -42,7 +42,7 @@ typedef enum { // it's a function parameter. FUNC_DEF, -} DefPointType; +}; class DefinitionPoint { public: