Skip to content

Commit eef9782

Browse files
authored
[clang-doc][NFC] clean unused variable in HTML generator (llvm#135505)
While reading the code, I found some dead variables that are not used anymore but it still declared without removing them.
1 parent f3bf844 commit eef9782

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,6 @@ genHTML(const EnumInfo &I, const ClangDocContext &CDCtx) {
716716

717717
maybeWriteSourceFileRef(Out, CDCtx, I.DefLoc);
718718

719-
std::string Description;
720719
if (!I.Description.empty())
721720
Out.emplace_back(genHTML(I.Description));
722721

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

760759
maybeWriteSourceFileRef(Out, CDCtx, I.DefLoc);
761760

762-
std::string Description;
763761
if (!I.Description.empty())
764762
Out.emplace_back(genHTML(I.Description));
765763

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

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

780-
std::string Description;
781778
if (!I.Description.empty())
782779
Out.emplace_back(genHTML(I.Description));
783780

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

821818
maybeWriteSourceFileRef(Out, CDCtx, I.DefLoc);
822819

823-
std::string Description;
824820
if (!I.Description.empty())
825821
Out.emplace_back(genHTML(I.Description));
826822

0 commit comments

Comments
 (0)