[PATCH] D137926: [Utils] Improved chunk-print-before-all.py script

Artur Pilipenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 17 17:03:29 PST 2022


apilipenko added inline comments.


================
Comment at: llvm/utils/chunk-print-before-all.py:15-19
+    if  short_line.find("<") == -1 or \
+        short_line.find("<") > short_line.find(" "):
+        return short_line[:short_line.find(" ")]
+    else:
+        return short_line[:short_line.find("<")]
----------------
This should do the trick:
```
return re.split(' |<', short_line)[0]
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137926/new/

https://reviews.llvm.org/D137926



More information about the llvm-commits mailing list