多行plantuml命令

问题描述 投票:0回答:1

在 c 风格代码注释中使用 plantuml 时 /// 然后 clang 在注释中添加 \ 换行符。


    /// @startuml
    ///  m_alengthyline.xxxxxxxxxxxxxx .[#green].> \
    ///  another.lengthyline.xxxxxxxxxxxxxxxxxxxxxx : reads
    /// @enduml

然后我收到编译器警告 多行注释[-Wcomment]

我确实想保留行长度限制,并且我确实想保留 doxygen 注释风格。 有什么方法可以告诉 plantuml 该命令超过 2 行或有其他技巧吗?

谢谢你

尝试在 plantuml 文档中找到合适的命令

clang doxygen plantuml
1个回答
0
投票

我看到的唯一可能性是重新组织你的图表,有点像

@startuml
 package m_alengthyline {
   class "xxxxxxxxxxxxxx" as X
 }
 package another
 {
   package lengthyline
   {
     class "xxxxxxxxxxxxxxxxxxxxx" as Y
   }
 }
 X.[#green].>  Y: reads
@enduml
© www.soinside.com 2019 - 2024. All rights reserved.