<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJy1WN1zmzgQ_2vIi8YMCDDw4IfEdnqd9i5tknu4J49Ai1EjI06CJO5ffythOzh1k-bazshGoNVqP37sB4Xi29mlklI9TPqWdIp4NIqTLE8Ia7i9SWieTj06J_M58eLgzmwffS9YeMH58H9bA2nggXjT4AZaplkHC6hEIzqhmgupyjvjRefkXD6wrUEiUkrWrCeV0hvWEdVaMjwnY4aoijRiXXdyS4peSG55jqknYbwKYy9devQCBw0oDcIwDvFHKT4AHgUsn2ZFwqeTcAWPbbgaESU08Gk8XbENn8bI2qM5MQAbY9V-0KpZ48FljecB6VAr0XBoOuYERNGM2gDZ9LITUjRASrXZ4LKxpkHZkVGDO0jdda1V2KOXONaiq_vCR1q8YXcCmslmzeyC4qrDq-Ui3CQLY86iBHKAMiuysgjCtIiLLKnKIiohCrMSn1CCwjBSocFVWfZaQ1OCsfYzwHRZE7SUEz5MCAcJVngUMbcSjZxmtXeDi6oaHtkZmUxQYmIFbCXrrNWt3A3XSnCcfWH3dk2KAv-NLvFf6fVeHWjWaJiRcu_s1bebSPHLWQ5SWx89kqgqCp5VRVn6Pg8hYyHP6JSEQTCN44FwMpn8Br121nRwxPHb1MQXDweZZEGGeAszdPjF03xYbPtCitK-XsYQx4DAI7LmhlxqtrZgJWLTSnCwJTfQGKWX93jzURikA22h_H6hHhqpGAc9H84mXpB76eJwc3hmEb7D08Tex8HVPWgtOOxlKZSSwBrChWlZV9YfYOsORLjupwSGBznx0osRsyAXlYW1W_bX0OGGueJopMzBeYFjz8P_sPxnfrVYri7O5x9OscJxs0UdN77qO7_Voukqx4haDeg5sRvJ9fLz38ubW4-GXjJv3CIedPHk44HXr1LzieOv0XXM7xcoTJ5b0EHqoyj8f3sbsbIx8ROVhq7XDel0D9-s7kE0-REJr27_WF4T1PY1f7wq3DPSUxIekezFHD_8KVmPTbk7v2LSPDPRkX2oSyHfCHJy9xPB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EsAR8gdf7rgJ75RjD9lnDmVZk6f_wAnuVda>53227</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-format: `SeparateDefinitionBlocks` wrongly changed multiline comments indentation
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          akien-mga
      </td>
    </tr>
</table>

<pre>
    Follow-up to #45895 and #52976, CC @ksyx.

The new `SeparateDefinitionBlocks: Always` clang-format option (as of nightly build `clang-format-14_14~++20220114111422+ed30a968b5d6-1_exp1_20220114111520.246_amd64`) seems to wrongly change the indentation of some multiline comments, as seen in https://github.com/akien-mga/godot/commit/c814da35e9eec8b8cb017b4b85fcb3ce318c0172 on a few occurrences (search for the 15 deletions):

```diff
diff --git a/platform/android/java/lib/src/org/godotengine/godot/Godot.java b/platform/android/java/lib/src/org/godotengine/godot/Godot.java
index 3fbbd8fbcc..d1e8a1d826 100644
--- a/platform/android/java/lib/src/org/godotengine/godot/Godot.java
+++ b/platform/android/java/lib/src/org/godotengine/godot/Godot.java
@@ -808,18 +808,18 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
        }
 
        /*
-       @Override public boolean dispatchKeyEvent(KeyEvent event) {
-               if (event.getKeyCode()==KeyEvent.KEYCODE_BACK) {
-                       System.out.printf("** BACK REQUEST!\n");
+               @Override public boolean dispatchKeyEvent(KeyEvent event) {
+                       if (event.getKeyCode()==KeyEvent.KEYCODE_BACK) {
+                               System.out.printf("** BACK REQUEST!\n");
 
-                       GodotLib.quit();
-                       return true;
-               }
-               System.out.printf("** OTHER KEY!\n");
+                               GodotLib.quit();
+                               return true;
+                       }
+                       System.out.printf("** OTHER KEY!\n");
 
-               return false;
-       }
-       */
+                       return false;
+               }
+               */
 
        public void onBackPressed() {
                boolean shouldQuit = true;
```

```diff
diff --git a/scene/gui/control.h b/scene/gui/control.h
index bf79f790e7..0dad2ab50f 100644
--- a/scene/gui/control.h
+++ b/scene/gui/control.h
@@ -318,7 +318,7 @@ public:
 
        };
 
-       /* EDITOR */
+/* EDITOR */
 #ifdef TOOLS_ENABLED
        virtual Dictionary _edit_get_state() const override;
        virtual void _edit_set_state(const Dictionary &p_state) override;
```

```diff
diff --git a/servers/physics_2d/godot_shape_2d.cpp b/servers/physics_2d/godot_shape_2d.cpp
index 1e8799a727..ba55733204 100644
--- a/servers/physics_2d/godot_shape_2d.cpp
+++ b/servers/physics_2d/godot_shape_2d.cpp
@@ -926,9 +926,9 @@ void GodotConcavePolygonShape2D::cull(const Rect2 &p_local_aabb, QueryCallback p
        };
 
        /*
-       for(int i=0;i<bvh_depth;i++)
-               stack[i]=0;
-       */
+               for(int i=0;i<bvh_depth;i++)
+                       stack[i]=0;
+               */
 
        if (segments.size() == 0 || points.size() == 0 || bvh.size() == 0) {
                return;
```

### Minimal reproduction project

>From a quick test I didn't see right away how to reproduce these quirks in a simple project, so this zip instead includes three files from https://github.com/godotengine/godot where `SeparateDefinitionBlocks: Always` exhibits this issue (with a Git repository initialized so it's easy to check the `git diff` after running `clang-format`).

[clang-format-SeparateDefinitionBlocks-multiline-comments.zip](https://github.com/llvm/llvm-project/files/7876942/clang-format-SeparateDefinitionBlocks-multiline-comments.zip)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1WF9zmzgQ_zTkRWMGBBh48ENiO71Oe5c2yT3ck0egxaiRESdBEvfT30rYDk7dpLm2M0oQaLV_f1rtulB8O7tUUqqHSd-SThGPRnGS5QlhDbcvCc3TqUfnZD4nXhzcme2j7wULLzgf_t_WQBp4IN40uIGWadbBAirRiE6o5kKq8s540Tk5lw9sa5CIlJI160ml9IZ1RLWWDOVkzBBVkUas605uSdELyS3PMfUkjFdh7KVLj17goAGlQRjGIf5Rih-ARwHLp1mR8OkkXMFjG65GRAkNfBpPV2zDpzGy9mhODMDGWLMftGrWKLisUR6QDq0SDYemY05BVM2oDZBNLzsh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