Issue 126755
Summary Adopt formatv() automatic index assignment
Labels new issue
Assignees
Reporter jurahul
    https://github.com/llvm/llvm-project/pull/107459 added support for automatic index assignment in LLVM's formatv() API. This means that code like:

```
 formatv("unknown machine pass '{0}'", Name).str()
```

can be simplified to:

```
 formatv("unknown machine pass '{}'", Name).str()
```

I suspect most uses of `formatv()` can use this feature and we only need manual indexing when the same index is repeated twice. This issue is a starter code-cleanup task to try to adopt this throughout the codebase.

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to