[Omit needless words] Split first selector piece into base name/first argument label.

This commit is contained in:
Doug Gregor
2016-02-05 23:03:12 -08:00
parent 8318b83016
commit e05cf6e018
5 changed files with 187 additions and 87 deletions

View File

@@ -319,6 +319,9 @@ enum class OmissionTypeFlags {
/// Whether this parameter is of some Boolean type.
Boolean = 0x02,
/// Whether this parameter is of some function/block type.
Function = 0x04,
};
/// Options that described omitted types.
@@ -370,6 +373,11 @@ struct OmissionTypeName {
return Options.contains(OmissionTypeFlags::Boolean);
}
/// Whether this type is a function/block type.
bool isFunction() const {
return Options.contains(OmissionTypeFlags::Function);
}
/// Determine whether the type name is empty.
bool empty() const { return Name.empty(); }