title: Is it wrong to put semicolon after braces of if block?
body: <p>I use MSVC++ 2008 and 2010 and i am a little confused about auto formatting. When i write code like this :</p>
  
  <pre><code>if(true)
      if(true)
      {
      }
  
      if(true)
      {
      }
  </code></pre>
  
  <p>and then i push CTRL+F but nothing happens and last condition stays in place but it should be aligned on a level with first condition. Behavior changes to right way if i add semicolon after braces of second condition like that :</p>
  
  <pre><code>if(true)
      if(true)
      {
      };
  
  if(true)
  {
  }
  </code></pre>
  
  <p>So the question is, is it right to add semicolon after condition according to C++ standard or it's just incorrect behavior of MSVC++?</p>