Skip to content

Commit 4d2ed22

Browse files
committed
fix formatting
1 parent 54ede23 commit 4d2ed22

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,8 @@ genReferencesBlock(const std::vector<Reference> &References,
490490
}
491491
return Out;
492492
}
493-
static std::unique_ptr<TagNode>
494-
writeSourceFileRef(const ClangDocContext &CDCtx, const Location &L) {
493+
static std::unique_ptr<TagNode> writeSourceFileRef(const ClangDocContext &CDCtx,
494+
const Location &L) {
495495

496496
if (!L.IsFileInRootDir && !CDCtx.RepositoryUrl)
497497
return std::make_unique<TagNode>(
@@ -529,8 +529,8 @@ writeSourceFileRef(const ClangDocContext &CDCtx, const Location &L) {
529529
}
530530

531531
static void maybeWriteSourceFileRef(std::vector<std::unique_ptr<TagNode>> &Out,
532-
const ClangDocContext &CDCtx,
533-
const std::optional<Location> &DefLoc) {
532+
const ClangDocContext &CDCtx,
533+
const std::optional<Location> &DefLoc) {
534534
if (DefLoc)
535535
Out.emplace_back(writeSourceFileRef(CDCtx, *DefLoc));
536536
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static void writeHeader(const Twine &Text, unsigned int Num, raw_ostream &OS) {
5353
}
5454

5555
static void writeSourceFileRef(const ClangDocContext &CDCtx, const Location &L,
56-
raw_ostream &OS) {
56+
raw_ostream &OS) {
5757

5858
if (!CDCtx.RepositoryUrl) {
5959
OS << "*Defined at " << L.Filename << "#" << std::to_string(L.LineNumber)
@@ -68,8 +68,8 @@ static void writeSourceFileRef(const ClangDocContext &CDCtx, const Location &L,
6868
}
6969

7070
static void maybeWriteSourceFileRef(llvm::raw_ostream &OS,
71-
const ClangDocContext &CDCtx,
72-
const std::optional<Location> &DefLoc) {
71+
const ClangDocContext &CDCtx,
72+
const std::optional<Location> &DefLoc) {
7373
if (DefLoc)
7474
writeSourceFileRef(CDCtx, *DefLoc, OS);
7575
}

0 commit comments

Comments
 (0)