4
我不知道什麼工具可以在visual studio中產生這樣的評論?特別是像下面顯示的註釋那樣創建圖表的能力。視覺工作室評論生成工具
//
// +---------------+
// | |
// | start_connect |<---+
// | | |
// +---------------+ |
// | |
// async_- | +----------------+
// connect() | | |
// +--->| handle_connect |
// | |
// +----------------+
// :
// Once a connection is :
// made, the connect :
// actor forks in two - :
// :
// an actor for reading : and an actor for
// inbound messages: : sending heartbeats:
// :
// +------------+ : +-------------+
// | |<- - - - -+- - - - ->| |
// | start_read | | start_write |<---+
// | |<---+ | | |
// +------------+ | +-------------+ | async_wait()
// | | | |
// async_- | +-------------+ async_- | +--------------+
// read_- | | | write() | | |
// until() +--->| handle_read | +--->| handle_write |
// | | | |
// +-------------+ +--------------+
//
我不會推薦Google C++風格指南來對付我最糟糕的敵人。並不是說它裏面沒有什麼更糟糕的東西,但是其中的部分建議對Google非常具體(避免異常,從而避免在構造函數中工作,...),並且很難讓新手理解要保留什麼以及要拋出什麼out ... – 2012-08-06 08:44:46
我推薦的風格指南主要用於評論部分(因此是#comments的錨點) - 我認爲這是一種很好的資源,無論您使用哪種編程語言。我同意其他部分可能過於具體。 – 2012-08-06 17:22:49