slackito wrote:

It seems this change has introduced a bug when formatting multiple files in one 
go. Passing a shorter file after a longer one results in a stale length being 
used. It can be reproduced with trivially short files:

```
$ cat ~/a.cc

$ cat ~/b.cc
// a
$ bin/clang-format ~/b.cc ~/a.cc
// a
error: invalid length 5, offset + length (5) is outside the file.
```

This was supposed to be an NFC change so I'm going to revert the patch while 
the problem gets investigated/fixed.

https://github.com/llvm/llvm-project/pull/143236
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to