Menu

#581 mod_full_brace_if not working

No Plans
works-for-me
nobody
None
C++
5
2014-08-22
2014-04-16
David Hohl
No

If mod_full_brace_if is set to add or force, no braces are added to single-line if. In fact, it actually removes braces if they exist.

before:

if (i==0){
    ++i;
}

after:
if(i == 0)
++i;

Discussion

  • Ben Gardner

    Ben Gardner - 2014-08-22
    • status: open --> works-for-me
    • Group: Future --> No Plans
     
  • Ben Gardner

    Ben Gardner - 2014-08-22

    I cannot reproduce this. If building from source, be sure to do a 'make clean'. If this still occurs with the latest code, please post a full config file and code sample.

     
MongoDB Logo MongoDB