mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user