Skip to content

Commit 0ce7225

Browse files
committed
Index: Add a pretty stacktrace line at indexing module
1 parent a619daf commit 0ce7225

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Index/Index.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "swift/AST/Module.h"
2121
#include "swift/AST/ParameterList.h"
2222
#include "swift/AST/Pattern.h"
23+
#include "swift/AST/PrettyStackTrace.h"
2324
#include "swift/AST/ProtocolConformance.h"
2425
#include "swift/AST/SourceFile.h"
2526
#include "swift/AST/Stmt.h"
@@ -2154,6 +2155,7 @@ void index::indexSourceFile(SourceFile *SF, IndexDataConsumer &consumer) {
21542155
}
21552156

21562157
void index::indexModule(ModuleDecl *module, IndexDataConsumer &consumer) {
2158+
PrettyStackTraceDecl trace("indexing module", module);
21572159
assert(module);
21582160
auto mName = module->getRealName().str();
21592161
if (module->getASTContext().blockListConfig.hasBlockListAction(mName,

0 commit comments

Comments
 (0)