<div dir="ltr">Hi,<div><br></div><font color="#000000" face="Segoe UI, Segoe UI Emoji, Segoe UI Symbol, Lato, Helvetica Neue, Helvetica, Arial, sans-serif">When SpacesInParentheses is set to true clang-format does not add a space before a global namespace variable. For example, this is the output of clang-format for a contrived exam</font>pled.<div><br><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial">#include <iostream></p></div><div><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial"><br></p></div><div><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial">void print_val( std::ostream &s ) { s << "Hello world" << std::endl; }</p></div><div><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial"><br></p></div><div><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial">int main( void ) {</p></div><div><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial">  print_val(::std::cout );</p></div><div><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial">  return 0;</p></div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial">}</p></div></blockquote><div><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial"><br>The .clang-format looked like<br><br></p></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial">Language:        Cpp</p></div><div><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial">SpacesInParentheses: true</p><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial"><br></p></div></blockquote><div><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial">I have have a potential fix here <a href="https://reviews.llvm.org/D43957">https://reviews.llvm.org/D43957</a>. It works locally and passes the unit tests, but as this is my first time working with this code base I am unsure of the procedure to follow for proposing changes.</p><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial"><br></p><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial">Regards,</p><p style="margin:0px 0px 12px;padding:0px;border:0px;text-decoration-style:initial;text-decoration-color:initial">-Darby</p></div></div></div>