<div dir="ltr"><div dir="ltr">General options:<br><br> -help - Display available options (-help-hidden for more)<br> -help-list - Display list of available options (-help-list-hidden for more)<br> -version - Display the version of this program<br>[rgowdapp@rgowdapp ~]$ clang-format -version ; echo $?<br>LLVM (<a href="http://llvm.org/">http://llvm.org/</a>):<br> LLVM version 3.4.2<br> Optimized build.<br> Built Dec 7 2015 (09:37:36).<br> Default target: x86_64-redhat-linux-gnu<br> Host CPU: x86-64<br>1<br><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 5, 2018 at 10:37 AM Sachidananda URS <<a href="mailto:surs@redhat.com">surs@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div> [rgowdapp@rgowdapp glusterfs]$ clang-format --version ; echo $?<span><br>LLVM (<a href="http://llvm.org/" target="_blank">http://llvm.org/</a>):<br> LLVM version 3.4.2<br> Optimized build.<br> Built Dec 7 2015 (09:37:36).<br> Default target: x86_64-redhat-linux-gnu<br> Host CPU: x86-64<br></span>1<br><br></div><div>Wonder why clang-format --version has to return non-zero return code though.<br></div></div></div></div></blockquote><div><br></div>Maybe because the syntax is `clang-format -version' not --version.</div><div class="gmail_quote">In the newer releases both -version and --version return 0.<br></div><div class="gmail_quote">You can try -version, if it returns 0. We can fix `rfc.sh'<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">But, what they document is -version.</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div></div></div>
</blockquote></div>