Disable warning "/ * inside block" in Xcode

I often need a few nested multi-line (or "partial lines") comments when developing.

Xcode recently presented perhaps the most dangerous warning in the world - and it made me turn off "warnings as errors." I suppose this warning is to catch an extremely rare case where someone seals and calls a block comment so that there is no end, but IME there are many other problems that will cause this to show it very quickly.

Some examples:

/* removed while debugging the BARFOO
-(void) aMethod
{
[self methodCall:7.0 /* needed to FOO the BAR: */ * self.multiplier * /* double for hi-res:*/ 2.0];
}
*/

and

/* 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...
}
*/

and, of course, a very simple double comment during debugging.

But I can’t find a place in Xcode5 to turn off this warning - it does not seem to exist in any of the warnings listed :(?

+4
2

, , " ", , :

enter image description here

, . -Wcomment.


. , ( "/* " ), /* ... */.

Abizern . ,

#if 0

#endif

( ),

+3

// . .

/ doxygen, /**.

Xcode . , cmd + /

+2

All Articles