Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Hi and welcome. Why not use a simple search and replace with a regex? Commented Feb 3, 2017 at 22:43
  • 3
    So you are going introduce a risk of breaking something by introducing a change which does not really improve the readabilty of the code, just make it a little bit more consistent? Sure it will be worth the hassle? Commented Feb 3, 2017 at 22:49
  • 2
    I'm not sure if it is worth the hassle. If the answer is sed magic followed by clang format, I'm too afraid of making a mistake by the changing something in a string context or messing up with a const function. If there is a tool that does this already then it might be worth the hassle. Commented Feb 4, 2017 at 3:10
  • I'm sure that the more intrusive Clang tools (modernize) can perform this transformation. But I have no experience in using them. Commented Feb 4, 2017 at 4:49