Skip to content

Commit 93f30bc

Browse files
committed
clang-format
1 parent 7563ec5 commit 93f30bc

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -512,15 +512,14 @@ static std::unique_ptr<TagNode> writeSourceFileRef(const ClangDocContext &CDCtx,
512512
llvm::sys::path::Style::windows));
513513
auto Node = std::make_unique<TagNode>(HTMLTag::TAG_P);
514514
Node->Children.emplace_back(std::make_unique<TextNode>("Defined at line "));
515-
auto LocNumberNode =
516-
std::make_unique<TagNode>(HTMLTag::TAG_A,
517-
std::to_string(L.StartLineNumber));
515+
auto LocNumberNode = std::make_unique<TagNode>(
516+
HTMLTag::TAG_A, std::to_string(L.StartLineNumber));
518517
// The links to a specific line in the source code use the github /
519518
// googlesource notation so it won't work for all hosting pages.
520519
LocNumberNode->Attributes.emplace_back(
521-
"href", formatv("{0}#{1}{2}", FileURL,
522-
CDCtx.RepositoryLinePrefix.value_or(""),
523-
L.StartLineNumber));
520+
"href",
521+
formatv("{0}#{1}{2}", FileURL, CDCtx.RepositoryLinePrefix.value_or(""),
522+
L.StartLineNumber));
524523
Node->Children.emplace_back(std::move(LocNumberNode));
525524
Node->Children.emplace_back(std::make_unique<TextNode>(" of file "));
526525
auto LocFileNode = std::make_unique<TagNode>(

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ static void writeSourceFileRef(const ClangDocContext &CDCtx, const Location &L,
5656
raw_ostream &OS) {
5757

5858
if (!CDCtx.RepositoryUrl) {
59-
OS << "*Defined at " << L.Filename << "#"
60-
<< std::to_string(L.StartLineNumber)
61-
<< "*";
59+
OS << "*Defined at " << L.Filename << "#"
60+
<< std::to_string(L.StartLineNumber) << "*";
6261
} else {
6362

6463
OS << formatv("*Defined at [#{0}{1}{2}](#{0}{1}{3})*",

0 commit comments

Comments
 (0)