Issue |
157976
|
Summary |
clang-format is not idempotent with "comment alignment"
|
Labels |
clang-format
|
Assignees |
|
Reporter |
Alan-Chen99
|
When formatting this file with default settings:
[https://github.com/mit-pdos/xv6-public/blob/7e019461c8bf0afbe73f959ca3394cce832501fd/proc.h](https://github.com/mit-pdos/xv6-public/blob/7e019461c8bf0afbe73f959ca3394cce832501fd/proc.h)
this fragment
```c
struct proc{
char *mem; // start of process's memory (a kernel address)
// process memory is laid out contiguously:
// text
// original data and bss
// fixed-size stack
// expandable heap
uint sz; // user memory size
char *kstack; // kernel stack
};
```
becomes
```c
struct proc {
char *mem; // start of process's memory (a kernel address)
// process memory is laid out contiguously:
// text
// original data and bss
// fixed-size stack
// expandable heap
uint sz; // user memory size
char *kstack; // kernel stack
};
```
and then
```c
struct proc {
char *mem; // start of process's memory (a kernel address)
// process memory is laid out contiguously:
// text
// original data and bss
// fixed-size stack
// expandable heap
uint sz; // user memory size
char *kstack; // kernel stack
};
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs