From e3d0ce1aee9f5fbe059e81f7af2c701cb4fec466 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 3 May 2025 08:46:03 -0700 Subject: [PATCH] [FileCheck] Use default member initialization in ExpressionFormat (NFC) --- llvm/lib/FileCheck/FileCheckImpl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/FileCheck/FileCheckImpl.h b/llvm/lib/FileCheck/FileCheckImpl.h index 4715fa9c64b61..b3cd2af5d57e3 100644 --- a/llvm/lib/FileCheck/FileCheckImpl.h +++ b/llvm/lib/FileCheck/FileCheckImpl.h @@ -51,7 +51,7 @@ struct ExpressionFormat { }; private: - Kind Value; + Kind Value = Kind::NoFormat; unsigned Precision = 0; /// printf-like "alternate form" selected. bool AlternateForm = false; @@ -78,7 +78,7 @@ struct ExpressionFormat { /// \returns the format specifier corresponding to this format as a string. StringRef toString() const; - ExpressionFormat() : Value(Kind::NoFormat){}; + ExpressionFormat() = default; explicit ExpressionFormat(Kind Value) : Value(Value), Precision(0){}; explicit ExpressionFormat(Kind Value, unsigned Precision) : Value(Value), Precision(Precision){};