File tree Expand file tree Collapse file tree 3 files changed +238
-155
lines changed
source/Plugins/Language/CPlusPlus Expand file tree Collapse file tree 3 files changed +238
-155
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments