From f1a86d74824ce0e9892a55b2cdfa3bd37acb5805 Mon Sep 17 00:00:00 2001 From: firewave Date: Fri, 20 Sep 2024 20:14:19 +0200 Subject: [PATCH] vfvalue.h: reduced size of booleans --- lib/vfvalue.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/vfvalue.h b/lib/vfvalue.h index 2a19fbef18b7..27ce9bafd07a 100644 --- a/lib/vfvalue.h +++ b/lib/vfvalue.h @@ -267,22 +267,26 @@ namespace ValueFlow Bound bound = Bound::Point; /** value relies on safe checking */ - bool safe{}; + bool safe : 1; /** Conditional value */ - bool conditional{}; + bool conditional : 1; /** Value is is from an expanded macro */ - bool macro{}; + bool macro : 1; /** Is this value passed as default parameter to the function? */ - bool defaultArg{}; + bool defaultArg : 1; + + long long : 4; // padding /** kind of moved */ enum class MoveKind : std::uint8_t { NonMovedVariable, MovedVariable, ForwardedVariable } moveKind = MoveKind::NonMovedVariable; enum class LifetimeScope : std::uint8_t { Local, Argument, SubFunction, ThisPointer, ThisValue } lifetimeScope = LifetimeScope::Local; + long long : 24; // padding + /** int value (or sometimes bool value?) */ long long intvalue{};