Skip to content

Commit b32a0ee

Browse files
committed
fixup! Change callback return type and add Doxygen comment
Run `clang-format`
1 parent c708ef1 commit b32a0ee

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

include/swift/AST/ASTContext.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,10 @@ class ASTContext final {
294294
/// OutputBackend for writing outputs.
295295
llvm::IntrusiveRefCntPtr<llvm::vfs::OutputBackend> OutputBackend;
296296

297-
/// Set the callback function that is invoked before Swift module importing is performed
298-
void SetPreModuleImportCallback(std::function<void(llvm::StringRef ModuleName, bool IsOverlay)> callback);
297+
/// Set the callback function that is invoked before Swift module importing is
298+
/// performed
299+
void SetPreModuleImportCallback(
300+
std::function<void(llvm::StringRef ModuleName, bool IsOverlay)> callback);
299301

300302
/// If the shared pointer is not a \c nullptr and the pointee is \c true,
301303
/// all operations working on this ASTContext should be aborted at the next

lib/AST/ASTContext.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,7 @@ ASTContext *ASTContext::get(
629629
ClangImporterOptions &ClangImporterOpts,
630630
symbolgraphgen::SymbolGraphOptions &SymbolGraphOpts,
631631
SourceManager &SourceMgr, DiagnosticEngine &Diags,
632-
llvm::IntrusiveRefCntPtr<llvm::vfs::OutputBackend> OutputBackend
633-
) {
632+
llvm::IntrusiveRefCntPtr<llvm::vfs::OutputBackend> OutputBackend) {
634633
// If more than two data structures are concatentated, then the aggregate
635634
// size math needs to become more complicated due to per-struct alignment
636635
// constraints.
@@ -714,7 +713,8 @@ ASTContext::~ASTContext() {
714713
getImpl().~Implementation();
715714
}
716715

717-
void ASTContext::SetPreModuleImportCallback(std::function<void(llvm::StringRef ModuleName, bool IsOverlay)> callback) {
716+
void ASTContext::SetPreModuleImportCallback(
717+
std::function<void(llvm::StringRef ModuleName, bool IsOverlay)> callback) {
718718
PreModuleImportCallback = callback;
719719
}
720720

0 commit comments

Comments
 (0)