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

    <tr>
        <th>Summary</th>
        <td>
            Clang Formatter ignore special comment indentation
        </td>
    </tr>

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

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

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

<pre>
    Hi
I'm using clang formatter for vs code, There are two possible scenarios that can be added to formatter and they will help lots of people.

1- Lets say that I have something like this //--- anything after ward. 
    In this case, any comment that starts with ---, I prefer to be untouched and ignored for indentation and alignment by formatter.
     
2- Comments starting at column number 0 : Again, any comment that starts at column number 0 should be ignored by formatter.

these two can become available by some option in the .clong-format file like this : 
CommentIgnor: "---"
CommentIgnoreColumnZero: true

Please add these two options. I believe that many people have asked for one or both of these in different places on web.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8k0GvqzYQhX8NbEYgYkggCxbpvYoaqYsuuupusAfsXmMjj0mUf1-B03cj9eltSITNzHfOnEFmMzmiPjv-lh0_c1yj9qFX4Ut7hV8YcDb54NWz_91k1WdWXW6ZaGdY2bgJpEU3wejDjDFS2P7BnUF6RZn4gL80BQIMBPHhYfHMZrAELMlhMJ4haowg0cFAgEqRgujfyqFTEDU94WGsBU12Aesjgx9hIb9YKhNSeh4K-IMiA-MzFb6BxjsB-5mi3nCt-SKI2jBk4pqJa1EUgO6ZDnHcWj4wqBJSQQCAm0sfSORdEronSD_P5GJqwhFDZHiYqKEoiu3ODZZAI4VNzECwuuhXqUnteszkfCC1W2WcIhcxGu_2M7Rmcnvp4fltQ_lN8wITBXwkBk79d_4I0tt1duDWeaAAFWT1BS4TGvcr8p98x9qvVm3s_9H-hCc9oyZO401jlH4mwDsai9uoh-duP_hlF2k2NwlKab2bilQRRmPpfTT15SXzpfG2MexvhdgdFv8_po9dwt8U_HYzhpXeKf-0hLxHDL6BExOXcIOBrKE7JV_mzamUrxQg5K_XwLwj8AEGH_UWwlTLOFBmHClszi4WJTF4Bw8aylz1tTrXZ8ypP7SiOtbHruty3XeH9nRoxk5VrTw1DTZNKwahutNBjU3TVrnpRSWaqq3Oh6buqq48nWopzwdssRmHU3vOmopmNLa09j6XPky5YV6pP3eH0zG3OJDlfamF2Ld0s-34mYd-u18M68RZU1nDkb8rRBMt9R_7Ul9_bGHKAPBC0qD9kaG38OZrsL2OceGsvqTVmkzU61BKP2fiujV4_RRL8P-QjJm47ryciWtCvvfi3wAAAP__0E2GIA">