Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions lldb/include/lldb/Core/DemangledNameInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,25 @@ struct DemangledNameInfo {
bool hasBasename() const {
return BasenameRange.second > BasenameRange.first;
}

/// Returns \c true if this object holds a valid scope range.
bool hasScope() const { return ScopeRange.second > ScopeRange.first; }

/// Returns \c true if this object holds a valid arguments range.
bool hasArguments() const {
return ArgumentsRange.second > ArgumentsRange.first;
}

/// Returns \c true if this object holds a valid qualifiers range.
bool hasQualifiers() const {
return QualifiersRange.second > QualifiersRange.first;
}

/// Returns \c true if this object holds a valid prefix range.
bool hasPrefix() const { return PrefixRange.second > PrefixRange.first; }

/// Returns \c true if this object holds a valid suffix range.
bool hasSuffix() const { return SuffixRange.second > SuffixRange.first; }
};

/// An OutputBuffer which keeps a record of where certain parts of a
Expand Down
Loading