Merge pull request #6324 from practicalswift/cpp-gardening

[gardening] C++ gardening: Terminate namespaces, fix argument names, …
This commit is contained in:
Michael Gottesman
2016-12-16 23:30:33 -08:00
committed by GitHub
165 changed files with 508 additions and 505 deletions

View File

@@ -163,7 +163,7 @@ namespace llvm {
return lhs == rhs;
}
};
}
} // namespace llvm
static Module *getModule(ModuleOrSourceFile DC) {
if (auto M = DC.dyn_cast<Module *>())
@@ -215,7 +215,7 @@ namespace {
FuncDecl *Address = nullptr, *MutableAddress = nullptr;
FuncDecl *WillSet = nullptr, *DidSet = nullptr;
};
}
} // end anonymous namespace
static StorageKind getRawStorageKind(AbstractStorageDecl::StorageKindTy kind) {
switch (kind) {
@@ -4279,11 +4279,11 @@ withOutputFile(ASTContext &ctx, StringRef outputPath,
std::error_code EC;
std::unique_ptr<llvm::raw_pwrite_stream> out =
Clang.createOutputFile(outputPath, EC,
/*binary=*/true,
/*removeOnSignal=*/true,
/*Binary=*/true,
/*RemoveFileOnSignal=*/true,
/*inputPath=*/"",
path::extension(outputPath),
/*temporary=*/true,
/*UseTemporary=*/true,
/*createDirs=*/false,
/*finalPath=*/nullptr,
&tmpFilePath);