Skip to content

Commit 876fa62

Browse files
[lldb] add has methods to all DemangledNameInfo attributes
1 parent 3e24dad commit 876fa62

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

lldb/include/lldb/Core/DemangledNameInfo.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,25 @@ struct DemangledNameInfo {
7373
bool hasBasename() const {
7474
return BasenameRange.second > BasenameRange.first;
7575
}
76+
77+
/// Returns \c true if this object holds a valid scope range.
78+
bool hasScope() const { return ScopeRange.second > ScopeRange.first; }
79+
80+
/// Returns \c true if this object holds a valid arguments range.
81+
bool hasArguments() const {
82+
return ArgumentsRange.second > ArgumentsRange.first;
83+
}
84+
85+
/// Returns \c true if this object holds a valid qualifiers range.
86+
bool hasQualifiers() const {
87+
return QualifiersRange.second > QualifiersRange.first;
88+
}
89+
90+
/// Returns \c true if this object holds a valid prefix range.
91+
bool hasPrefix() const { return PrefixRange.second > PrefixRange.first; }
92+
93+
/// Returns \c true if this object holds a valid suffix range.
94+
bool hasSuffix() const { return SuffixRange.second > SuffixRange.first; }
7695
};
7796

7897
/// An OutputBuffer which keeps a record of where certain parts of a

0 commit comments

Comments
 (0)