Skip to content

Commit 7f57fe6

Browse files
committed
[clang-doc] fix formatting
1 parent 109fd75 commit 7f57fe6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

clang-tools-extra/clang-doc/MDGenerator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
#include "Generators.h"
1010
#include "Representation.h"
11-
#include "llvm/Support/FormatVariadic.h"
1211
#include "llvm/ADT/StringRef.h"
1312
#include "llvm/Support/FileSystem.h"
13+
#include "llvm/Support/FormatVariadic.h"
1414
#include "llvm/Support/Path.h"
1515
#include <string>
1616

@@ -61,7 +61,7 @@ static void writeFileDefinition(const ClangDocContext &CDCtx, const Location &L,
6161

6262
std::string LineAnchor =
6363
formatv("#{0}{1}", CDCtx.RepositoryLinePrefix.value_or(""),
64-
std::to_string(L.LineNumber));
64+
std::to_string(L.LineNumber));
6565

6666
OS << formatv("*Defined at [{0}{1}]({0}{2})*", LineAnchor, L.Filename,
6767
StringRef{*CDCtx.RepositoryUrl});

clang-tools-extra/clang-doc/Representation.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,7 @@ struct ClangDocContext {
507507
ClangDocContext() = default;
508508
ClangDocContext(tooling::ExecutionContext *ECtx, StringRef ProjectName,
509509
bool PublicOnly, StringRef OutDirectory, StringRef SourceRoot,
510-
StringRef RepositoryUrl,
511-
StringRef RepositoryCodeLinePrefix,
510+
StringRef RepositoryUrl, StringRef RepositoryCodeLinePrefix,
512511
std::vector<std::string> UserStylesheets);
513512
tooling::ExecutionContext *ECtx;
514513
std::string ProjectName; // Name of project clang-doc is documenting.

0 commit comments

Comments
 (0)