mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Reformat all the LLVMs
Reformatting everything now that we have `llvm` namespaces. I've separated this from the main commit to help manage merge-conflicts and for making it a bit easier to read the mega-patch.
This commit is contained in:
@@ -89,7 +89,7 @@ void forEachTargetModuleBasename(const ASTContext &Ctx,
|
||||
llvm::Optional<bool> forEachModuleSearchPath(
|
||||
const ASTContext &Ctx,
|
||||
llvm::function_ref<llvm::Optional<bool>(StringRef, ModuleSearchPathKind,
|
||||
bool isSystem)>
|
||||
bool isSystem)>
|
||||
callback) {
|
||||
for (const auto &path : Ctx.SearchPathOpts.getImportSearchPaths())
|
||||
if (auto result =
|
||||
@@ -782,8 +782,8 @@ getOSAndVersionForDiagnostics(const llvm::Triple &triple) {
|
||||
}
|
||||
|
||||
LoadedFile *SerializedModuleLoaderBase::loadAST(
|
||||
ModuleDecl &M, llvm::Optional<SourceLoc> diagLoc, StringRef moduleInterfacePath,
|
||||
StringRef moduleInterfaceSourcePath,
|
||||
ModuleDecl &M, llvm::Optional<SourceLoc> diagLoc,
|
||||
StringRef moduleInterfacePath, StringRef moduleInterfaceSourcePath,
|
||||
std::unique_ptr<llvm::MemoryBuffer> moduleInputBuffer,
|
||||
std::unique_ptr<llvm::MemoryBuffer> moduleDocInputBuffer,
|
||||
std::unique_ptr<llvm::MemoryBuffer> moduleSourceInfoInputBuffer,
|
||||
@@ -1666,7 +1666,6 @@ SerializedASTFile::getGroupNameForDecl(const Decl *D) const {
|
||||
return File.getGroupNameForDecl(D);
|
||||
}
|
||||
|
||||
|
||||
llvm::Optional<StringRef>
|
||||
SerializedASTFile::getSourceFileNameForDecl(const Decl *D) const {
|
||||
return File.getSourceFileNameForDecl(D);
|
||||
|
||||
Reference in New Issue
Block a user