[PATCH] D23279: clang-reorder-fields

Alexander Shaposhnikov via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 9 10:48:55 PDT 2016


alexshap added a comment.

Suppose you have a struct Foo defined in LibA and you have used clang-rename to rename Foo into Bar (or just a field of Foo say - you have renamed Foo::x into Foo::y); LibA is linked to LibB and you have Foo foo = { &x, 17, 1.29, 0 }; in LibB. Therefore LibA knows nothing of struct Foo usages in LibB. Thus, the struct constructions and everything related stays exactly the same in LibB.

It's not clear to me why the issue is specific to this particular tool (maybe i am bit sleepy and missing smth).


Repository:
  rL LLVM

https://reviews.llvm.org/D23279





More information about the cfe-commits mailing list