Hi there,

Not sure if this was brought up before, but here's the thing, consider following schema:
Qt Code:
  1. /* some commented code /* level two commented code */
To copy to clipboard, switch view to plain text mode 

For example:
Qt Code:
  1. /* proper comment */
  2. void f1(int b){
  3. int x = b;
  4. }
  5.  
  6. //magic indentation below ;)
  7.  
  8. /* double comment
  9. /* that I'd like to have */
  10. void f2(int c){
  11. int notHere = c;
  12. if (c == 1){
  13. int evenWorse = 4;
  14. }
  15. }
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.