mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Also try to add final to non-public members of public classes.
Teaches TryAddFinal to descend into public and objc classes. Only tries to add final if we're either whole compilation mode, or we're processing the primary source buffer. Updates test cases. Includes workarounds for <rdar://problem/17860781> and <rdar://problem/17862348>. Swift SVN r20790
This commit is contained in:
@@ -391,7 +391,8 @@ void CompilerInstance::performSema() {
|
||||
Invocation.getCodeCompletionFactory());
|
||||
}
|
||||
|
||||
performWholeModuleChecks(MainModule, PrimaryBufferID == NO_SUCH_BUFFER);
|
||||
performWholeModuleChecks(MainModule, PrimarySourceFile,
|
||||
PrimaryBufferID == NO_SUCH_BUFFER);
|
||||
}
|
||||
|
||||
void CompilerInstance::performParseOnly() {
|
||||
|
||||
Reference in New Issue
Block a user