Skip to content

Commit

Permalink
Fix clang comment enums
Browse files Browse the repository at this point in the history
  • Loading branch information
wbqpk3 committed Nov 22, 2024
1 parent 0592bf0 commit 64acc74
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions plugins/cpp/parser/src/doccommentformatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ FullCommentParts::FullCommentParts(

switch (child->getCommentKind())
{
case Comment::NoCommentKind:
case CommentKind::None:
continue;

case Comment::ParagraphCommentKind:
case CommentKind::ParagraphComment:
{
const ParagraphComment* pc = llvm::cast<ParagraphComment>(child);

Expand All @@ -75,7 +75,7 @@ FullCommentParts::FullCommentParts(
break;
}

case Comment::BlockCommandCommentKind:
case CommentKind::BlockCommandComment:
{
const BlockCommandComment* bcc = llvm::cast<BlockCommandComment>(child);
const CommandInfo* Info = traits_.getCommandInfo(bcc->getCommandID());
Expand All @@ -94,7 +94,7 @@ FullCommentParts::FullCommentParts(
break;
}

case Comment::ParamCommandCommentKind:
case CommentKind::ParamCommandComment:
{
const ParamCommandComment* pcc = llvm::cast<ParamCommandComment>(child);

Expand All @@ -108,7 +108,7 @@ FullCommentParts::FullCommentParts(
break;
}

case Comment::TParamCommandCommentKind:
case CommentKind::TParamCommandComment:
{
const TParamCommandComment* tpcc
= llvm::cast<TParamCommandComment>(child);
Expand All @@ -123,11 +123,11 @@ FullCommentParts::FullCommentParts(
break;
}

case Comment::VerbatimBlockCommentKind:
case CommentKind::VerbatimBlockComment:
_miscBlocks.push_back(cast<BlockCommandComment>(child));
break;

case Comment::VerbatimLineCommentKind:
case CommentKind::VerbatimLineComment:
{
const VerbatimLineComment* vlc = llvm::cast<VerbatimLineComment>(child);
const CommandInfo* Info = traits_.getCommandInfo(vlc->getCommandID());
Expand Down Expand Up @@ -251,22 +251,22 @@ void CommentToMarkdownConverter::visitInlineCommandComment(

switch (c_->getRenderKind())
{
case InlineCommandComment::RenderNormal:
case InlineCommandRenderKind::Normal:
for (unsigned i = 0, e = c_->getNumArgs(); i != e; ++i)
_res << c_->getArgText(i).str() << ' ';
return;

case InlineCommandComment::RenderBold:
case InlineCommandRenderKind::Bold:
assert(c_->getNumArgs() == 1);
_res << "**" << arg0.str() << "**";
return;

case InlineCommandComment::RenderMonospaced:
case InlineCommandRenderKind::Monospaced:
assert(c_->getNumArgs() == 1);
_res << '`' << arg0.str() << '`';
return;

case InlineCommandComment::RenderEmphasized:
case InlineCommandRenderKind::Emphasized:
assert(c_->getNumArgs() == 1);
_res << '*' << arg0.str() << '*';
return;
Expand Down Expand Up @@ -336,9 +336,9 @@ void CommentToMarkdownConverter::visitParamCommandComment(
{
switch (c_->getDirection())
{
case ParamCommandComment::In: _res << "- *in*: "; break;
case ParamCommandComment::Out: _res << "- *out*: "; break;
case ParamCommandComment::InOut: _res << "- *in,out*: "; break;
case ParamCommandPassDirection::In: _res << "- *in*: "; break;
case ParamCommandPassDirection::Out: _res << "- *out*: "; break;
case ParamCommandPassDirection::InOut: _res << "- *in,out*: "; break;
}

_res << "**" << (c_->isParamIndexValid()
Expand Down

0 comments on commit 64acc74

Please sign in to comment.