================ @@ -178,6 +179,40 @@ class BitFieldExtractionNode : public ASTNode { int64_t m_last_index; }; +class ScalarLiteralNode : public ASTNode { +public: + ScalarLiteralNode(uint32_t location, Scalar value, uint32_t radix, + bool is_unsigned, bool is_long, bool is_longlong) + : ASTNode(location, NodeKind::eScalarLiteralNode), m_value(value), + m_radix(radix), m_is_unsigned(is_unsigned), m_is_long(is_long), + m_is_longlong(is_longlong) {} ---------------- cmtice wrote:
My biggest concern is if a later developer comes along and calls one of the Getter functions on the "wrong" type of ScalarLiteralNode, and doesn't realize they're getting an unreliable result. https://github.com/llvm/llvm-project/pull/152308 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits