@@ -248,9 +248,10 @@ sortUsrToInfo(llvm::StringMap<std::unique_ptr<doc::Info>> &USRToInfo) {
248
248
}
249
249
250
250
llvm::Error runMappingPhase (tooling::ToolExecutor *Executor,
251
- clang::doc::ClangDocContext &CDCtx, tooling::ArgumentsAdjuster &ArgAdjuster, bool IgnoreMappingFailures ) {
252
- auto Err =
253
- Executor->execute (doc::newMapperActionFactory (CDCtx), ArgAdjuster);
251
+ clang::doc::ClangDocContext &CDCtx,
252
+ tooling::ArgumentsAdjuster &ArgAdjuster,
253
+ bool IgnoreMappingFailures) {
254
+ auto Err = Executor->execute (doc::newMapperActionFactory (CDCtx), ArgAdjuster);
254
255
if (Err) {
255
256
if (IgnoreMappingFailures) {
256
257
llvm::errs () << " Error mapping decls in files. Clang-doc will ignore "
@@ -282,9 +283,7 @@ Example usage for a project using a compile commands database:
282
283
)" ;
283
284
284
285
auto Executor = ExitOnErr (clang::tooling::createExecutorFromCommandLineArgs (
285
- argc, argv, ClangDocCategory, Overview));
286
-
287
-
286
+ argc, argv, ClangDocCategory, Overview));
288
287
289
288
// Fail early if an invalid format was provided.
290
289
std::string Format = getFormatString ();
@@ -319,7 +318,8 @@ Example usage for a project using a compile commands database:
319
318
320
319
// Mapping phase
321
320
llvm::outs () << " Mapping decls...\n " ;
322
- ExitOnErr (runMappingPhase (Executor.get (), CDCtx, ArgAdjuster, IgnoreMappingFailures));
321
+ ExitOnErr (runMappingPhase (Executor.get (), CDCtx, ArgAdjuster,
322
+ IgnoreMappingFailures));
323
323
324
324
// Collect values into output by key.
325
325
// In ToolResults, the Key is the hashed USR and the value is the
0 commit comments