Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
11 changes: 6 additions & 5 deletions lldb/include/lldb/Core/DemangledNameInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,27 +71,28 @@ struct DemangledNameInfo {

/// Returns \c true if this object holds a valid basename range.
bool hasBasename() const {
// A function always has a name.
return BasenameRange.second > BasenameRange.first;
}

/// Returns \c true if this object holds a valid scope range.
bool hasScope() const { return ScopeRange.second > ScopeRange.first; }
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;
return ArgumentsRange.second >= ArgumentsRange.first;
}

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

/// Returns \c true if this object holds a valid prefix range.
bool hasPrefix() const { return PrefixRange.second > PrefixRange.first; }
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; }
bool hasSuffix() const { return SuffixRange.second >= SuffixRange.first; }
};

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