Skip to content

[clang-doc][NFC] clean unused variable in HTML generator #135505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions clang-tools-extra/clang-doc/HTMLGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,6 @@ genHTML(const EnumInfo &I, const ClangDocContext &CDCtx) {

maybeWriteSourceFileRef(Out, CDCtx, I.DefLoc);

std::string Description;
if (!I.Description.empty())
Out.emplace_back(genHTML(I.Description));

Expand Down Expand Up @@ -759,7 +758,6 @@ genHTML(const FunctionInfo &I, const ClangDocContext &CDCtx,

maybeWriteSourceFileRef(Out, CDCtx, I.DefLoc);

std::string Description;
if (!I.Description.empty())
Out.emplace_back(genHTML(I.Description));

Expand All @@ -777,7 +775,6 @@ genHTML(const NamespaceInfo &I, Index &InfoIndex, const ClangDocContext &CDCtx,

Out.emplace_back(std::make_unique<TagNode>(HTMLTag::TAG_H1, InfoTitle));

std::string Description;
if (!I.Description.empty())
Out.emplace_back(genHTML(I.Description));

Expand Down Expand Up @@ -820,7 +817,6 @@ genHTML(const RecordInfo &I, Index &InfoIndex, const ClangDocContext &CDCtx,

maybeWriteSourceFileRef(Out, CDCtx, I.DefLoc);

std::string Description;
if (!I.Description.empty())
Out.emplace_back(genHTML(I.Description));

Expand Down
Loading