llvm-project
llvm-project copied to clipboard
Fix "after" and "before" modifiers when inserting or moving the same member
| Bugzilla Link | 42425 |
| Version | trunk |
| OS | All |
| CC | @MaskRay |
Extended Description
The modifiers a and b can be used with move and replace to define where in the member order to insert, based of a member name. When moving or replacing a file before or after the same file name, behaviour is not as expected:
llvm-ar rc test.a a.txt b.txt c.txt llvm-ar ra b.txt test.a b.txt llvm-ar t test.a
output: a.txt c.txt b.txt
expected output: a.txt b.txt c.txt
This is the case for ra, rb and ma. mb is as expected.
For the sake of comparison, gnu-ar ra and rb behaviour is as expected but ma and mb are not as expected.
I tested this today, the test case still behaves unexpectedly.
Owen, has this be fixed?