【发布时间】:2014-01-29 10:55:59
【问题描述】:
我在开发时经常需要多个嵌套的多线(或“部分线”)cmets。
Xcode 最近引入了可能是世界上最烦人的警告 - 它迫使我禁用“作为错误的警告”。我猜这个警告是为了捕捉极其罕见的情况,即有人拼写错误并导致块评论没有结束 - 但 IME 有许多其他问题会导致很快就会显示出来。
一些例子:
/* removed while debugging the BARFOO
-(void) aMethod
{
[self methodCall:7.0 /* needed to FOO the BAR: */ * self.multiplier * /* double for hi-res:*/ 2.0];
}
*/
和:
/* removed while debugging the BARFOO
/** This method has DOCUMENTATION
*/
-(void) aDocumentedMethod
{
...
}
-(void) aMethod
{
/** internally, we have to BAR BAR the FOOFOO.
1. BAR
2. BARBAR
3. Finally, FOOOFOO
*/
...complex lines of source here...
}
*/
当然还有调试时非常简单的双重注释。
但我在 Xcode5 中找不到禁用此警告的位置 - 它似乎不存在于任何列出的警告中 :( ?
【问题讨论】:
标签: xcode