Revert "Omit needless words: don't drop the first parameter name for failability initializers."

This reverts commit r31431. This isn't a good heuristic.

Swift SVN r31449
This commit is contained in:
Doug Gregor
2015-08-25 14:36:04 +00:00
parent 419fc39309
commit 6e1b8323f7
6 changed files with 9 additions and 25 deletions

View File

@@ -291,16 +291,13 @@ StringRef omitNeedlessWords(StringRef name, StringRef typeName, NameRole role);
/// \param returnsSelf Whether the result of the function is 'Self'
/// (in Swift) or 'instancetype' (in Objective-C).
///
/// \param failableInitializer Whether the result is a failable initializer.
///
/// \returns true if any words were omitted, false otherwise.
bool omitNeedlessWords(StringRef &baseName,
MutableArrayRef<StringRef> argNames,
StringRef resultType,
StringRef contextType,
ArrayRef<StringRef> paramTypes,
bool returnsSelf,
bool failableInitializer);
bool returnsSelf);
}
#endif // LLVM_SWIFT_BASIC_STRINGEXTRAS_HPP