omitNeedlessWords: sink helper enum into .cpp file

No functionality change.
This commit is contained in:
Jordan Rose
2019-10-09 20:01:29 -07:00
parent 3fdbd1b154
commit 42f7a35c4d
2 changed files with 21 additions and 19 deletions

View File

@@ -315,25 +315,6 @@ namespace swift {
size_t findWord(StringRef string, StringRef word);
} // end namespace camel_case
/// Describes the role that a particular name has within a
/// signature, which can affect how we omit needless words.
enum class NameRole {
/// The base name of a function or method.
BaseName,
/// The first parameter of a function or method.
FirstParameter,
// Subsequent parameters in a function or method.
SubsequentParameter,
// The name of a property.
Property,
// A partial name; used internally.
Partial,
};
/// Flags used by \c OmissionTypeName to describe the input type.
enum class OmissionTypeFlags {
/// Whether the parameter with this type has a default argument.