http://www.jindent.com |
|
Next: Doxygen |
Delete block comments |
/* ... */
and contain muliple comment lines.
class MyClass { int x, y, z; /* * some more declarations */ char[] a, b, c; ... } |
class MyClass { int x, y, z; char[] a, b, c; ... } |
Delete single-line comments |
/* ... */
and only contain one comment line.
class MyClass { int x, y, z; /* some more declarations */ char[] a, b, c; ... } |
class MyClass { int x, y, z; char[] a, b, c; ... } |
Delete end-of-line comments |
// ...
and do not appear as trailing comments.
class MyClass { int x, y, z; // some more // declarations char[] a, b, c; ... } |
class MyClass { int x, y, z; char[] a, b, c; ... } |
Delete trailing comments |
class MyClass { int x, y, z; // integer declarations char[] a, b, c; // string declarations ... } |
class MyClass { int x, y, z; char[] a, b, c; ... } |
Never delete comments beginning in first column |
class MyClass { void method() { /* long i = 0; while (i < n) { result *= i; i++; } */ doSomethingElse(); } } |
class MyClass { void method() { doSomethingElse(); } } |