[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:
Evan Wilde
2023-06-27 08:15:30 -07:00
parent f3ff561c6f
commit 250082df25
416 changed files with 3777 additions and 3734 deletions

View File

@@ -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);