Skip to content

Commit 7cc5e64

Browse files
[FileCheck] Use default member initialization in ExpressionFormat (NFC) (#138409)
1 parent 0b96d22 commit 7cc5e64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/FileCheck/FileCheckImpl.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct ExpressionFormat {
5151
};
5252

5353
private:
54-
Kind Value;
54+
Kind Value = Kind::NoFormat;
5555
unsigned Precision = 0;
5656
/// printf-like "alternate form" selected.
5757
bool AlternateForm = false;
@@ -78,7 +78,7 @@ struct ExpressionFormat {
7878
/// \returns the format specifier corresponding to this format as a string.
7979
StringRef toString() const;
8080

81-
ExpressionFormat() : Value(Kind::NoFormat){};
81+
ExpressionFormat() = default;
8282
explicit ExpressionFormat(Kind Value) : Value(Value), Precision(0){};
8383
explicit ExpressionFormat(Kind Value, unsigned Precision)
8484
: Value(Value), Precision(Precision){};

0 commit comments

Comments
 (0)