Skip to content

Commit 6265451

Browse files
committed
add tests
1 parent bcfcabb commit 6265451

File tree

2 files changed

+125
-0
lines changed

2 files changed

+125
-0
lines changed

mlir/include/mlir/TableGen/Class.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ class MethodParameter {
7171
StringRef getName() const { return name; }
7272
/// Returns true if the parameter has a default value.
7373
bool hasDefaultValue() const { return !defaultValue.empty(); }
74+
/// Get the default value.
7475
StringRef getDefaultValue() const { return defaultValue; }
76+
/// Returns true if the parameter is optional.
7577
bool isOptional() const { return optional; }
7678

7779
private:

0 commit comments

Comments
 (0)