================
@@ -3767,12 +3767,26 @@ tooling::Replacements sortJavaImports(const FormatStyle 
&Style, StringRef Code,
         Code.substr(Prev, (Pos != StringRef::npos ? Pos : Code.size()) - Prev);
 
----------------
owenca wrote:

```
  for (bool FormattingOff = false;;) {
    auto Pos = Code.find('\n', Prev);
 
    auto GetLine = [&] {
      return Code.substr(Prev,
                         (Pos != StringRef::npos ? Pos : Code.size()) - Prev);
    };
 
    StringRef Line = GetLine();
```

https://github.com/llvm/llvm-project/pull/177326
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to