mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Suppress warnings, NFC
Swift SVN r32662
This commit is contained in:
@@ -721,8 +721,6 @@ static bool omitNeedlessWordsMatchingFirstArgumentLabel(
|
|||||||
|
|
||||||
/// Determine whether the given word indicates a boolean result.
|
/// Determine whether the given word indicates a boolean result.
|
||||||
static bool nameIndicatesBooleanResult(StringRef name) {
|
static bool nameIndicatesBooleanResult(StringRef name) {
|
||||||
bool isFirstWord = true;
|
|
||||||
|
|
||||||
for (auto word: camel_case::getWords(name)) {
|
for (auto word: camel_case::getWords(name)) {
|
||||||
// Auxiliary verbs indicate Boolean results.
|
// Auxiliary verbs indicate Boolean results.
|
||||||
if (getPartOfSpeech(word) == PartOfSpeech::AuxiliaryVerb)
|
if (getPartOfSpeech(word) == PartOfSpeech::AuxiliaryVerb)
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ bool IterativeTypeChecker::isResolveTypeDeclSatisfied(TypeDecl *typeDecl) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Module types are always fully resolved.
|
// Module types are always fully resolved.
|
||||||
if (auto module = dyn_cast<ModuleDecl>(typeDecl))
|
if (typeDecl->getKind() == DeclKind::Module)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Nominal types.
|
// Nominal types.
|
||||||
|
|||||||
Reference in New Issue
Block a user