Hi there,
Not sure if this was brought up before, but here's the thing, consider following schema:
/* some commented code /* level two commented code */
/* some commented code /* level two commented code */
To copy to clipboard, switch view to plain text mode
For example:
/* proper comment */
void f1(int b){
int x = b;
}
//magic indentation below ;)
/* double comment
/* that I'd like to have */
void f2(int c){
int notHere = c;
if (c == 1){
int evenWorse = 4;
}
}
/* proper comment */
void f1(int b){
int x = b;
}
//magic indentation below ;)
/* double comment
/* that I'd like to have */
void f2(int c){
int notHere = c;
if (c == 1){
int evenWorse = 4;
}
}
To copy to clipboard, switch view to plain text mode
Code like this will compile as normal, but Creator's auto-indentation loses context as you can see in lines 10-15.
Not sure if it is a bug, maybe that kind of comments should not be used at all (but why?).
The compiler gives a warning about this.
Bookmarks