[all-commits] [llvm/llvm-project] 6affc1: [clang-reorder-fields] Move trailing comments. (#1...
Clement Courbet via All-commits
all-commits at lists.llvm.org
Wed Jan 15 04:08:04 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6affc1837537a802531a5394535f1f0b7ca865cb
https://github.com/llvm/llvm-project/commit/6affc1837537a802531a5394535f1f0b7ca865cb
Author: Clement Courbet <courbet at google.com>
Date: 2025-01-15 (Wed, 15 Jan 2025)
Changed paths:
M clang-tools-extra/clang-reorder-fields/ReorderFieldsAction.cpp
A clang-tools-extra/test/clang-reorder-fields/Comments.cpp
Log Message:
-----------
[clang-reorder-fields] Move trailing comments. (#122918)
Currently, trailing comments get mixed up:
```
struct Foo {
int a; // This one is the cool field
// within the struct.
int b;
};
```
becomes:
```
struct Foo {
int b; // This one is the cool field
// within the struct.
int a;
};
```
This should be:
```
struct Foo {
int b;
int a; // This one is the cool field
// within the struct.
};
```
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list