mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[gardening] C++ gardening: Terminate namespaces, fix argument names, ...
Changes: * Terminate all namespaces with the correct closing comment. * Make sure argument names in comments match the corresponding parameter name. * Remove redundant get() calls on smart pointers. * Prefer using "override" or "final" instead of "virtual". Remove "virtual" where appropriate.
This commit is contained in:
@@ -1661,7 +1661,7 @@ private:
|
||||
expectedType->lookThroughAllAnyOptionalTypes()
|
||||
->is<AnyFunctionType>() &&
|
||||
calculateTypeRelationForDecl(D, expectedType, isImplicitlyCurriedIM,
|
||||
/*UseFuncResult=*/false) >=
|
||||
/*UseFuncResultType=*/false) >=
|
||||
CodeCompletionResult::ExpectedTypeRelation::Convertible) {
|
||||
return true;
|
||||
}
|
||||
@@ -2268,7 +2268,7 @@ public:
|
||||
SemanticContextKind::ExpressionSpecific, ExpectedTypes);
|
||||
Builder.addTextChunk("available");
|
||||
Builder.addLeftParen();
|
||||
Builder.addSimpleTypedParameter("Platform", /*isVarArg=*/true);
|
||||
Builder.addSimpleTypedParameter("Platform", /*IsVarArg=*/true);
|
||||
Builder.addComma();
|
||||
Builder.addTextChunk("*");
|
||||
Builder.addRightParen();
|
||||
@@ -2288,7 +2288,7 @@ public:
|
||||
else
|
||||
Builder.addTextChunk("selector");
|
||||
Builder.addLeftParen();
|
||||
Builder.addSimpleTypedParameter("@objc method", /*isVarArg=*/false);
|
||||
Builder.addSimpleTypedParameter("@objc method", /*IsVarArg=*/false);
|
||||
Builder.addRightParen();
|
||||
}
|
||||
|
||||
@@ -2311,7 +2311,7 @@ public:
|
||||
Builder.addTextChunk("keyPath");
|
||||
Builder.addLeftParen();
|
||||
Builder.addSimpleTypedParameter("@objc property sequence",
|
||||
/*isVarArg=*/false);
|
||||
/*IsVarArg=*/false);
|
||||
Builder.addRightParen();
|
||||
}
|
||||
|
||||
@@ -4343,7 +4343,7 @@ static void addSelectorModifierKeywords(CodeCompletionResultSink &sink) {
|
||||
Builder.setKeywordKind(Kind);
|
||||
Builder.addTextChunk(Name);
|
||||
Builder.addCallParameterColon();
|
||||
Builder.addSimpleTypedParameter("@objc property", /*isVarArg=*/false);
|
||||
Builder.addSimpleTypedParameter("@objc property", /*IsVarArg=*/false);
|
||||
};
|
||||
|
||||
addKeyword("getter", CodeCompletionKeywordKind::None);
|
||||
|
||||
Reference in New Issue
Block a user