在开发过程中,我经常需要多个嵌套多行(或“部分行”)注释。在Xcode中禁用“/ *块内注释”警告
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的警告: “/ \ *块注释中”]的可能的复制(http://stackoverflow.com/questions/14774127/xcode-warning-within-block-comment) – vaxquis