aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/FileCheck/FileCheckImpl.h
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-05-03 10:27:08 -0700
committerGitHub <noreply@github.com>2025-05-03 10:27:08 -0700
commit7cc5e64a26f7c752646577e4e72d9f52cac8870d (patch)
tree9989f6ac8f0019e0f2c5d3bbc79434294570438c /llvm/lib/FileCheck/FileCheckImpl.h
parent0b96d22f95eeef00ec40723f0d59ccb4389dc1b6 (diff)
downloadllvm-7cc5e64a26f7c752646577e4e72d9f52cac8870d.zip
llvm-7cc5e64a26f7c752646577e4e72d9f52cac8870d.tar.gz
llvm-7cc5e64a26f7c752646577e4e72d9f52cac8870d.tar.bz2
[FileCheck] Use default member initialization in ExpressionFormat (NFC) (#138409)
Diffstat (limited to 'llvm/lib/FileCheck/FileCheckImpl.h')
-rw-r--r--llvm/lib/FileCheck/FileCheckImpl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/FileCheck/FileCheckImpl.h b/llvm/lib/FileCheck/FileCheckImpl.h
index 4715fa9..b3cd2af 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 @@ public:
/// \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){};