llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Fix "after" and "before" modifiers when inserting or moving the same member

Open gbreynoo opened this issue 7 years ago • 2 comments

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.

gbreynoo avatar Jun 27 '19 15:06 gbreynoo

I tested this today, the test case still behaves unexpectedly.

gbreynoo avatar Mar 04 '20 11:03 gbreynoo

Owen, has this be fixed?

MaskRay avatar Mar 04 '20 02:03 MaskRay