8000 Merge pull request #10888 from charles-zablit/charles-zablit/lldb/add… · swiftlang/llvm-project@091662c · GitHub
[go: up one dir, main page]

Skip to content

Commit 091662c

Browse files
Merge pull request #10888 from charles-zablit/charles-zablit/lldb/add-has-methods-to-6.2
🍒 [lldb] upgrade HandleFrameFormatVariable callees to llvm::Expected
2 parents 7808380 + 6204f79 commit 091662c

File tree

3 files changed

+238
-155
lines changed

3 files changed

+238
-155
lines changed

lldb/include/lldb/Core/DemangledNameInfo.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,28 @@ struct DemangledNameInfo {
7171

7272
/// Returns \c true if this object holds a valid basename range.
7373
bool hasBasename() const {
74+
// A function always has a name.
7475
return BasenameRange.second > BasenameRange.first;
7576
}
77+
78+
/// Returns \c true if this object holds a valid scope range.
79+
bool hasScope() const { return ScopeRange.second >= ScopeRange.first; }
80+
81+
/// Returns \c true if this object holds a valid arguments range.
82+
bool hasArguments() const {
83+
return ArgumentsRange.second >= ArgumentsRange.first;
84+
}
85+
86+
/// Returns \c true if this object holds a valid qualifiers range.
87+
bool hasQualifiers() const {
88+
return QualifiersRange.second >= QualifiersRange.first;
89+
}
90+
91+
/// Returns \c true if this object holds a valid prefix range.
92+
bool hasPrefix() const { return PrefixRange.second >= PrefixRange.first; }
93+
94+
/// Returns \c true if this object holds a valid suffix range.
95+
bool hasSuffix() const { return SuffixRange.second >= SuffixRange.first; }
7696
};
7797

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

0 commit comments

Comments
 (0)
0