Add clang-reorder-fields to clang-tools-extra
authorAlexander Shaposhnikov <shal1t712@gmail.com>
Thu, 1 Sep 2016 23:49:48 +0000 (23:49 +0000)
committerAlexander Shaposhnikov <shal1t712@gmail.com>
Thu, 1 Sep 2016 23:49:48 +0000 (23:49 +0000)
commitae4ff453a4a95140669dd0cab28ec7d7032e5449
tree822a30d1e71e04cd647e9ecd6f61902f205a3685
parent356f79d5357a14cf57014cf05757412ad10bc236
Add clang-reorder-fields to clang-tools-extra

This diff adds v0 of clang-reorder-fields tool to clang/tools/extra.
The main idea behind this tool is to simplify and make less error-prone refactoring of large codebases when
someone needs to change the order fields of a struct/class (for example to remove excess padding).

Differential revision: https://reviews.llvm.org/D23279

llvm-svn: 280431
13 files changed:
clang-tools-extra/CMakeLists.txt
clang-tools-extra/clang-reorder-fields/CMakeLists.txt [new file with mode: 0644]
clang-tools-extra/clang-reorder-fields/ReorderFieldsAction.cpp [new file with mode: 0644]
clang-tools-extra/clang-reorder-fields/ReorderFieldsAction.h [new file with mode: 0644]
clang-tools-extra/clang-reorder-fields/tool/CMakeLists.txt [new file with mode: 0644]
clang-tools-extra/clang-reorder-fields/tool/ClangReorderFields.cpp [new file with mode: 0644]
clang-tools-extra/test/CMakeLists.txt
clang-tools-extra/test/clang-reorder-fields/AggregatePartialInitialization.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-reorder-fields/CStructAmbiguousName.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-reorder-fields/CStructFieldsOrder.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-reorder-fields/ClassDifferentFieldsAccesses.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-reorder-fields/ClassMixedInitialization.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-reorder-fields/ClassSimpleCtor.cpp [new file with mode: 0644]