@@ -351,12 +351,12 @@ inline std::string_view to_string_view(StringRef string) {
351
351
352
352
/* *************************************************************************************************/
353
353
354
- inline std::string_view to_string_view (ParamCommandComment::PassDirection x) {
354
+ inline std::string_view to_string_view (ParamCommandPassDirection x) {
355
355
// clang-format off
356
356
switch (x) {
357
- case ParamCommandComment::PassDirection ::In: return " in" ;
358
- case ParamCommandComment::PassDirection ::InOut: return " inout" ;
359
- case ParamCommandComment::PassDirection ::Out: return " out" ;
357
+ case ParamCommandPassDirection ::In: return " in" ;
358
+ case ParamCommandPassDirection ::InOut: return " inout" ;
359
+ case ParamCommandPassDirection ::Out: return " out" ;
360
360
}
361
361
// clang-format on
362
362
return " in" ; // gcc on linux is asking for this.
@@ -435,9 +435,9 @@ hyde::optional_json ProcessComment(const ASTContext& n,
435
435
};
436
436
437
437
switch (comment->getCommentKind ()) {
438
- case Comment::NoCommentKind :
438
+ case CommentKind::None :
439
439
break ;
440
- case Comment::BlockCommandCommentKind : {
440
+ case CommentKind::BlockCommandComment : {
441
441
const BlockCommandComment* block_command_comment =
442
442
llvm::dyn_cast_or_null<BlockCommandComment>(comment);
443
443
assert (block_command_comment);
@@ -457,7 +457,7 @@ hyde::optional_json ProcessComment(const ASTContext& n,
457
457
// Do further post-processing if the comment is a hyde command.
458
458
result = post_process_hyde_command (std::move (result));
459
459
} break ;
460
- case Comment::ParamCommandCommentKind : {
460
+ case CommentKind::ParamCommandComment : {
461
461
const ParamCommandComment* param_command_comment =
462
462
llvm::dyn_cast_or_null<ParamCommandComment>(comment);
463
463
assert (param_command_comment);
@@ -477,7 +477,7 @@ hyde::optional_json ProcessComment(const ASTContext& n,
477
477
478
478
result = roll_up_single_paragraph_child (std::move (result));
479
479
} break ;
480
- case Comment::TParamCommandCommentKind : {
480
+ case CommentKind::TParamCommandComment : {
481
481
const TParamCommandComment* tparam_command_comment =
482
482
llvm::dyn_cast_or_null<TParamCommandComment>(comment);
483
483
assert (tparam_command_comment);
@@ -488,7 +488,7 @@ hyde::optional_json ProcessComment(const ASTContext& n,
488
488
489
489
result = roll_up_single_paragraph_child (std::move (result));
490
490
} break ;
491
- case Comment::VerbatimBlockCommentKind : {
491
+ case CommentKind::VerbatimBlockComment : {
492
492
const VerbatimBlockComment* verbatim_block_comment =
493
493
llvm::dyn_cast_or_null<VerbatimBlockComment>(comment);
494
494
assert (verbatim_block_comment);
@@ -497,7 +497,7 @@ hyde::optional_json ProcessComment(const ASTContext& n,
497
497
result[" children" ] = std::move (*children);
498
498
}
499
499
} break ;
500
- case Comment::VerbatimLineCommentKind : {
500
+ case CommentKind::VerbatimLineComment : {
501
501
const VerbatimLineComment* verbatim_line_comment =
502
502
llvm::dyn_cast_or_null<VerbatimLineComment>(comment);
503
503
assert (verbatim_line_comment);
@@ -506,7 +506,7 @@ hyde::optional_json ProcessComment(const ASTContext& n,
506
506
result[" children" ] = std::move (*children);
507
507
}
508
508
} break ;
509
- case Comment::ParagraphCommentKind : {
509
+ case CommentKind::ParagraphComment : {
510
510
const ParagraphComment* paragraph_comment =
511
511
llvm::dyn_cast_or_null<ParagraphComment>(comment);
512
512
assert (paragraph_comment);
@@ -534,19 +534,19 @@ hyde::optional_json ProcessComment(const ASTContext& n,
534
534
result[" text" ] = std::move (paragraph);
535
535
}
536
536
} break ;
537
- case Comment::FullCommentKind : {
537
+ case CommentKind::FullComment : {
538
538
const FullComment* full_comment_inner = llvm::dyn_cast_or_null<FullComment>(comment);
539
539
assert (full_comment_inner);
540
540
541
541
if (auto children = process_comment_children (*full_comment_inner)) {
542
542
result[" children" ] = std::move (*children);
543
543
}
544
544
} break ;
545
- case Comment::HTMLEndTagCommentKind :
545
+ case CommentKind::HTMLEndTagComment :
546
546
break ;
547
- case Comment::HTMLStartTagCommentKind :
547
+ case CommentKind::HTMLStartTagComment :
548
548
break ;
549
- case Comment::InlineCommandCommentKind : {
549
+ case CommentKind::InlineCommandComment : {
550
550
const InlineCommandComment* inline_command_comment =
551
551
llvm::dyn_cast_or_null<InlineCommandComment>(comment);
552
552
assert (inline_command_comment);
@@ -557,7 +557,7 @@ hyde::optional_json ProcessComment(const ASTContext& n,
557
557
result[" args" ] = std::move (*args);
558
558
}
559
559
} break ;
560
- case Comment::TextCommentKind : {
560
+ case CommentKind::TextComment : {
561
561
const TextComment* text_comment = llvm::dyn_cast_or_null<TextComment>(comment);
562
562
assert (text_comment);
563
563
@@ -567,7 +567,7 @@ hyde::optional_json ProcessComment(const ASTContext& n,
567
567
568
568
result[" text" ] = to_string_view (text_comment->getText ());
569
569
} break ;
570
- case Comment::VerbatimBlockLineCommentKind :
570
+ case CommentKind::VerbatimBlockLineComment :
571
571
break ;
572
572
}
573
573
0 commit comments