2

plantuml を使用して UML の図を生成していますが、コメント スタイルに問題があります。

私の問題を再現する手順:

mainpage.dox というファイルを作成し、次の内容を書き込みます。

/** \mainpage Sender class
 * Sender class. Can be used to send a command to the server.
 *  The receiver will acknowledge the command by calling Ack().
 *  \startuml
 *    Sender->Receiver  : Command()
 *    Sender<--Receiver : Ack()
 *  \enduml
 */

次に、doxyfile を作成して、最適化された Java または C# の出力、has_dot および PLANTUML_JAR_PATH を設定します。doxygen を実行すると、UML の図が生成されます。

ただし、コメント スタイルを C# に変更すると、メインページと警告メッセージの内容はありません。

/// \mainpage Sender class
/// Sender class. Can be used to send a command to the server.
/// The receiver will acknowledge the command by calling Ack().
/// \startuml
///   Sender->Receiver  : Command()
///   Sender<--Receiver : Ack()
/// \enduml
///

しかし、uml コメントを削除すると、メイン ページが生成されます (下にテキストを表示)。

/// \mainpage Sender class
/// Sender class. Can be used to send a command to the server.
/// The receiver will acknowledge the command by calling Ack().

\startuml は C スタイルのコメントを使用する必要がありますか? 提案をありがとう。

これは私の DoxyFile です: http://pastebin.com/hjEFz8b0

編集:

別のスタイルのコメントでもう一度テストしました。\startuml はこのスタイルで動作しています

/*! \mainpage Sender class
Sender class. Can be used to send a command to the server.
The receiver will acknowledge the command by calling Ack().
\startuml
Sender->Receiver  : Command()
Sender<--Receiver : Ack()
\enduml
*/
4

1 に答える 1

3

バグを見つけたのではないかと心配しています。

それまでの間、次の修正を公開しました: https://github.com/doxygen/doxygen/commit/4df52916170bb81179697d0fa78c7d81fd95415f

于 2014-09-26T19:51:24.753 に答える