Issue 209189
Summary [clang-format] Alignment of consecutive comments
Labels clang-format
Assignees
Reporter Julien-Elie
    With clang-format version 22.1.8, I obtain:

```
struct hissqlite {
    char *path;              /* SQLite database file path. */
    struct history *history; /* For his_seterror(). */
    sqlite3 *db;
    int flags; /* HIS_RDONLY / HIS_RDWR / ... */
};
```

instead of what I would have expected:

```
struct hissqlite {
    char *path;              /* SQLite database file path. */
    struct history *history; /* For his_seterror(). */
    sqlite3 *db;
    int flags;               /* HIS_RDONLY / HIS_RDWR / ... */
};
```


Maybe it is an option I have overlooked (though I do not see one in `AlignTrailingComments` which would do that).  I think the default would be to align the last comment with the two other ones.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to