[PATCH] D68969: [clang-format] Remove the dependency on frontend
Manuel Klimek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 16 03:19:54 PDT 2019
klimek added a comment.
In D68969#1709696 <https://reviews.llvm.org/D68969#1709696>, @MyDeveloperDay wrote:
> In D68969#1709321 <https://reviews.llvm.org/D68969#1709321>, @klimek wrote:
>
> > My intuitive solution would have been to get the char* for the start and end-location and then search forward and backwards for \n.
>
>
> I may need to, it feels slow for large files which I suspect is in the splitting, which will be mostly unnecessary.
It's a weird trade-off: for lots of lines, the inside-out algorithm will be better, but if we have a very very long line with lots of warnings, the inside-out algorithm will be quadratic.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68969/new/
https://reviews.llvm.org/D68969
More information about the cfe-commits
mailing list