File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -619,8 +619,11 @@ convertCopydoc(unsigned id)
619
619
case CommandTraits::KCI_copydetails:
620
620
return doc::Parts::description;
621
621
default :
622
+ {
623
+ report::error (" error: unsupported CommandTrait id <{}>" , id);
622
624
MRDOCS_UNREACHABLE ();
623
625
}
626
+ }
624
627
}
625
628
626
629
static
@@ -640,6 +643,7 @@ convertStyle(InlineCommandRenderKind kind)
640
643
return doc::Style ::none;
641
644
default :
642
645
// unknown RenderKind
646
+ report::error (" error: unsupported InlineCommandRenderKind <{}>" , static_cast <int >(kind));
643
647
MRDOCS_UNREACHABLE ();
644
648
}
645
649
}
@@ -657,6 +661,7 @@ convertDirection(ParamCommandPassDirection kind)
657
661
case ParamCommandPassDirection::InOut:
658
662
return doc::ParamDirection::inout;
659
663
default :
664
+ report::error (" error: unsupported ParamCommandPassDirection <{}>" , static_cast <int >(kind));
660
665
MRDOCS_UNREACHABLE ();
661
666
}
662
667
}
@@ -1240,9 +1245,10 @@ visitBlockCommandComment(
1240
1245
case CommandTraits::KCI_copybrief:
1241
1246
case CommandTraits::KCI_copydetails:
1242
1247
case CommandTraits::KCI_copydoc:
1248
+ report::error (" error: inline command {} should be handled elsewhere" , cmd->Name );
1243
1249
MRDOCS_UNREACHABLE ();
1244
-
1245
1250
default :
1251
+ report::error (" error: unsupported block command {}" , cmd->Name );
1246
1252
MRDOCS_UNREACHABLE ();
1247
1253
}
1248
1254
}
You can’t perform that action at this time.
0 commit comments