在 c 风格代码注释中使用 plantuml 时 /// 然后 clang 在注释中添加 \ 换行符。
/// @startuml
/// m_alengthyline.xxxxxxxxxxxxxx .[#green].> \
/// another.lengthyline.xxxxxxxxxxxxxxxxxxxxxx : reads
/// @enduml
然后我收到编译器警告 多行注释[-Wcomment]
我确实想保留行长度限制,并且我确实想保留 doxygen 注释风格。 有什么方法可以告诉 plantuml 该命令超过 2 行或有其他技巧吗?
谢谢你
尝试在 plantuml 文档中找到合适的命令
我看到的唯一可能性是重新组织你的图表,有点像
@startuml
package m_alengthyline {
class "xxxxxxxxxxxxxx" as X
}
package another
{
package lengthyline
{
class "xxxxxxxxxxxxxxxxxxxxx" as Y
}
}
X.[#green].> Y: reads
@enduml