Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 89cc1d5

Browse files
committedMay 30, 2025·
Run clang-format
1 parent dfea664 commit 89cc1d5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎clang-tools-extra/clang-doc/tool/ClangDocMain.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,10 @@ sortUsrToInfo(llvm::StringMap<std::unique_ptr<doc::Info>> &USRToInfo) {
248248
}
249249

250250
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);
254255
if (Err) {
255256
if (IgnoreMappingFailures) {
256257
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:
282283
)";
283284

284285
auto Executor = ExitOnErr(clang::tooling::createExecutorFromCommandLineArgs(
285-
argc, argv, ClangDocCategory, Overview));
286-
287-
286+
argc, argv, ClangDocCategory, Overview));
288287

289288
// Fail early if an invalid format was provided.
290289
std::string Format = getFormatString();
@@ -319,7 +318,8 @@ Example usage for a project using a compile commands database:
319318

320319
// Mapping phase
321320
llvm::outs() << "Mapping decls...\n";
322-
ExitOnErr(runMappingPhase(Executor.get(), CDCtx, ArgAdjuster, IgnoreMappingFailures));
321+
ExitOnErr(runMappingPhase(Executor.get(), CDCtx, ArgAdjuster,
322+
IgnoreMappingFailures));
323323

324324
// Collect values into output by key.
325325
// In ToolResults, the Key is the hashed USR and the value is the

0 commit comments

Comments
 (0)
Please sign in to comment.