<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55191>55191</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-format doesn't like spaces in the path sent to the "-style" command line argument
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          sthompson-crestron
      </td>
    </tr>
</table>

<pre>
    If I have no spaces in the path I pass to the "-style" switch of clang-format, then it runs normally:

$clang-format -i -style="/Users/sthompson/Projects/myapp-ios/.clang-format" MyApp/main.m
$

However, if I have a space in the file name then I am told that I have an "Invalid value for -style":

# Note the use of a space in "myapp ios"
$clang-format -i -style="/Users/sthompson/Projects/myapp ios/.clang-format" MyApp/main.m
Invalid value for -style
$

I would expect the "-style" option to allow for a quoted file name containing a space.

These commands were run from the terminal on a Mac OS system running Mac OS 12.3.1

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytVMuOnDAQ_Bq4tEBg5nngsMlolTlsEinJBxhowImxidvMZP4-beaRWe3kECkSwq_u6upyQWWbU7lvYQ-9PCAYCzTKGgmUAd8jjNL3fDhKIvB23oqESMifNPIE6Kh83YNtodbSdElr3SB9JN6HUAPKg5sMMS5va32Kiqco20XZ9S0W92mQKLhAFztGj8TzN0JHPJLv7TCSNTz_7Ox3rH3YHk5yHBNlwzx9zUDAy-lpHEOQVCYdbhXvCXywRzygC3zVTQR51uAqQas0CyMHPLe0BzmwFLrhJVO-5pigy94cpFYN8HviROvgptSbzgv4aP2MCRNhUPCuLifMrcHcmvifasE_qPXXfh5puYejnVgW_DVyvbdWsaNX1gQXsRPscYaT8HNiFZo7kWtrPFNQprsKkt5X-dojhaBhkKYhOKLDYDFonR3mmh7doIzUwLUkvMgaPn0BOpHHIQTOwJfdXKRFmp9x46Ysmm2xlbFXXmP5SunGIrGWaw9a_cBHnwih8Q8_kAtTTjTsEtdNA0fGk9Nl7_1IwRbimZ9O-X6qUg7nhdaH65CM5_vjpSKaMNzdcplv87gvV8VmW1T5Oi-KCut6tWm29aZaim1eZ6t8sYi1rFBTGS3fMRWDR5ghgleWu1iVIhMiW3D4Il9nq3S5ahii2GDbtOtcymiRIbtBp4FHal0Xu3KmVE0d8aFW5OnPIf8iVGcQ53KMLyd2oStvXkxqh-SdNfHMopy7-A1srXXE">