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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Feature Request: Option to Surround Logical AND/OR with At Least Two Spaces on Each Side
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          ewhac
      </td>
    </tr>
</table>

<pre>
    The Spacing:Operators section of the ewhac 2021 C Coding Guidelines states:

> Binary logical-and and logical-or operators (`&&`, `||`) shall by surrounded on each side by at least two spaces.

This is to improve readability of conditional statements, especially those that mix logical and/or with bitwise and/or.  Having an option in clang-format to do this would be nice.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUUtFuozoQ_RrzMkoEBhJ44CFNyr0P1VZq-wPGnsKsHJu1h2Tz9yuTttuVBsZja-xzzhwVI40OsRP1g6hPmVp48qHD66R0Nnhz694mhNdZaXKjKA_PMwbFPkSIqJm8A_8OPCGsHSBzWcARjt6QG-G_hQxachghsmKMojyI_CTyz3_5CA_kVLiB9SNpZTfKGUjfZ-0D-K8nhWzELhdylyItjpDS_pgi1S3ESVkLww3iEoJfnEED3gEqPUEkg-lIMVhUkYGvHuKsNMbtd1hvE0WgCOyBznPwF4SAyqiBLPEtEdbeGUrslb0zO6PjmPBgnFGTsvYGPPmIwJNiONPvT0aJnZC9D3AlnmAgvlLEr90twP_qksRTDvy8KkwOtFVu3Lz7cFaccBkPnFBe_WINDAiONG4z05WmLVuVYVfsZSEbuduX2dRV9V7vq50Z8kbuyrZpdu_Fvm4GPVTYlk2RUSdzWeX7osl3eVWW21IOVVGroqmaqmyHWlQ5nhXZrbWX89aHMaMYF-zatirrzKoBbVw9JOV3rELK5KrQpbbNsIxRVLmlyPHvRUxsV__901ifoEfFS0B4wV8LRhblAZ7virCH14_5wtOHrocfJyH755e7rgeGp3XGb1e_2hdj8sFj8sErGcyWYLuJeV49KXsh-5F4Woat9mch-4TuI23m4H-iZiH7lXMUsr_TvnTyTwAAAP__7o0QTQ">