]> granicus.if.org Git - clang/commit
Fixed layout of test/ASTMerge.
authorSean Callanan <scallanan@apple.com>
Wed, 16 Nov 2016 18:21:00 +0000 (18:21 +0000)
committerSean Callanan <scallanan@apple.com>
Wed, 16 Nov 2016 18:21:00 +0000 (18:21 +0000)
commit52fefd89fd4c7ce3d10b9df5ec0b1da5258fb33f
treed241145cd1d5c5f83af2e173cd241960576eab9e
parent75468b182ef85c3e12160057b3ff8daf40cf4dee
Fixed layout of test/ASTMerge.

As outlined in a previous RFC, the test/ASTMerge/Inputs folder is getting full and the tests are starting to become interdependent. This is undesirable because

- it makes it harder to write new tests
- it makes it harder to figure out at a glance what old tests are doing, and
- it adds the risk of breaking one test while changing a different one, because of the interdependencies.

To fix this, according to the conversation in the RFC, I have changed the layout from

a.c
Inputs/a1.c
Inputs/a2.c

to

a/test.c
a/Inputs/a1.c
a/Inputs/a2.c
for all existing tests. I have also eliminated interdependencies by replicating the input files for each test that uses them.

https://reviews.llvm.org/D26571

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287129 91177308-0d34-0410-b5e6-96231b3b80d8
61 files changed:
test/ASTMerge/anonymous-fields/Inputs/anonymous-fields1.cpp [moved from test/ASTMerge/Inputs/anonymous-fields1.cpp with 100% similarity]
test/ASTMerge/anonymous-fields/Inputs/anonymous-fields2.cpp [moved from test/ASTMerge/Inputs/anonymous-fields2.cpp with 100% similarity]
test/ASTMerge/anonymous-fields/test.cpp [moved from test/ASTMerge/anonymous-fields.cpp with 100% similarity]
test/ASTMerge/asm/Inputs/asm-function.cpp [moved from test/ASTMerge/Inputs/asm-function.cpp with 100% similarity]
test/ASTMerge/asm/test.cpp [moved from test/ASTMerge/asm.cpp with 100% similarity]
test/ASTMerge/category/Inputs/category1.m [moved from test/ASTMerge/Inputs/category1.m with 100% similarity]
test/ASTMerge/category/Inputs/category2.m [moved from test/ASTMerge/Inputs/category2.m with 100% similarity]
test/ASTMerge/category/test.m [moved from test/ASTMerge/category.m with 100% similarity]
test/ASTMerge/class-template/Inputs/class-template1.cpp [moved from test/ASTMerge/Inputs/class-template1.cpp with 100% similarity]
test/ASTMerge/class-template/Inputs/class-template2.cpp [moved from test/ASTMerge/Inputs/class-template2.cpp with 100% similarity]
test/ASTMerge/class-template/test.cpp [moved from test/ASTMerge/class-template.cpp with 100% similarity]
test/ASTMerge/class/Inputs/class1.cpp [moved from test/ASTMerge/Inputs/class1.cpp with 100% similarity]
test/ASTMerge/class/Inputs/class2.cpp [moved from test/ASTMerge/Inputs/class2.cpp with 100% similarity]
test/ASTMerge/class/test.cpp [moved from test/ASTMerge/class.cpp with 100% similarity]
test/ASTMerge/class2/Inputs/class3.cpp [moved from test/ASTMerge/Inputs/class3.cpp with 100% similarity]
test/ASTMerge/class2/test.cpp [moved from test/ASTMerge/class2.cpp with 100% similarity]
test/ASTMerge/codegen-body/Inputs/body1.c [moved from test/ASTMerge/Inputs/body1.c with 100% similarity]
test/ASTMerge/codegen-body/Inputs/body2.c [moved from test/ASTMerge/Inputs/body2.c with 100% similarity]
test/ASTMerge/codegen-body/test.c [moved from test/ASTMerge/codegen-body.c with 100% similarity]
test/ASTMerge/codegen-exprs/Inputs/exprs1.c [moved from test/ASTMerge/Inputs/exprs1.c with 100% similarity]
test/ASTMerge/codegen-exprs/Inputs/exprs2.c [moved from test/ASTMerge/Inputs/exprs2.c with 100% similarity]
test/ASTMerge/codegen-exprs/test.c [moved from test/ASTMerge/codegen-exprs.c with 100% similarity]
test/ASTMerge/enum/Inputs/enum1.c [moved from test/ASTMerge/Inputs/enum1.c with 100% similarity]
test/ASTMerge/enum/Inputs/enum2.c [moved from test/ASTMerge/Inputs/enum2.c with 100% similarity]
test/ASTMerge/enum/test.c [moved from test/ASTMerge/enum.c with 100% similarity]
test/ASTMerge/exprs-cpp/Inputs/exprs3.cpp [moved from test/ASTMerge/Inputs/exprs3.cpp with 100% similarity]
test/ASTMerge/exprs-cpp/test.cpp [moved from test/ASTMerge/exprs.cpp with 100% similarity]
test/ASTMerge/exprs/Inputs/exprs1.c [new file with mode: 0644]
test/ASTMerge/exprs/Inputs/exprs2.c [new file with mode: 0644]
test/ASTMerge/exprs/test.c [moved from test/ASTMerge/exprs.c with 100% similarity]
test/ASTMerge/function/Inputs/function1.c [moved from test/ASTMerge/Inputs/function1.c with 100% similarity]
test/ASTMerge/function/Inputs/function2.c [moved from test/ASTMerge/Inputs/function2.c with 100% similarity]
test/ASTMerge/function/test.c [moved from test/ASTMerge/function.c with 100% similarity]
test/ASTMerge/inheritance/Inputs/inheritance-base.cpp [moved from test/ASTMerge/Inputs/inheritance-base.cpp with 100% similarity]
test/ASTMerge/inheritance/test.cpp [moved from test/ASTMerge/inheritance.cpp with 100% similarity]
test/ASTMerge/init-ctors/Inputs/init-ctors-classes.cpp [moved from test/ASTMerge/Inputs/init-ctors-classes.cpp with 100% similarity]
test/ASTMerge/init-ctors/test.cpp [moved from test/ASTMerge/init-ctors.cpp with 100% similarity]
test/ASTMerge/interface/Inputs/interface1.m [moved from test/ASTMerge/Inputs/interface1.m with 100% similarity]
test/ASTMerge/interface/Inputs/interface2.m [moved from test/ASTMerge/Inputs/interface2.m with 100% similarity]
test/ASTMerge/interface/test.m [moved from test/ASTMerge/interface.m with 100% similarity]
test/ASTMerge/macro/Inputs/macro.modulemap [moved from test/ASTMerge/Inputs/macro.modulemap with 100% similarity]
test/ASTMerge/macro/Inputs/macro1.h [moved from test/ASTMerge/Inputs/macro1.h with 100% similarity]
test/ASTMerge/macro/Inputs/macro1.m [moved from test/ASTMerge/Inputs/macro1.m with 100% similarity]
test/ASTMerge/macro/Inputs/macro2.m [moved from test/ASTMerge/Inputs/macro2.m with 100% similarity]
test/ASTMerge/macro/test.m [moved from test/ASTMerge/macro.m with 100% similarity]
test/ASTMerge/namespace/Inputs/namespace1.cpp [moved from test/ASTMerge/Inputs/namespace1.cpp with 100% similarity]
test/ASTMerge/namespace/Inputs/namespace2.cpp [moved from test/ASTMerge/Inputs/namespace2.cpp with 100% similarity]
test/ASTMerge/namespace/test.cpp [moved from test/ASTMerge/namespace.cpp with 100% similarity]
test/ASTMerge/property/Inputs/property1.m [moved from test/ASTMerge/Inputs/property1.m with 100% similarity]
test/ASTMerge/property/Inputs/property2.m [moved from test/ASTMerge/Inputs/property2.m with 100% similarity]
test/ASTMerge/property/test.m [moved from test/ASTMerge/property.m with 100% similarity]
test/ASTMerge/struct/Inputs/struct1.c [moved from test/ASTMerge/Inputs/struct1.c with 100% similarity]
test/ASTMerge/struct/Inputs/struct2.c [moved from test/ASTMerge/Inputs/struct2.c with 100% similarity]
test/ASTMerge/struct/test.c [moved from test/ASTMerge/struct.c with 100% similarity]
test/ASTMerge/typedef/Inputs/typedef1.c [moved from test/ASTMerge/Inputs/typedef1.c with 100% similarity]
test/ASTMerge/typedef/Inputs/typedef2.c [moved from test/ASTMerge/Inputs/typedef2.c with 100% similarity]
test/ASTMerge/typedef/test.c [moved from test/ASTMerge/typedef.c with 100% similarity]
test/ASTMerge/var/Inputs/var1.c [moved from test/ASTMerge/Inputs/var1.c with 100% similarity]
test/ASTMerge/var/Inputs/var1.h [moved from test/ASTMerge/Inputs/var1.h with 100% similarity]
test/ASTMerge/var/Inputs/var2.c [moved from test/ASTMerge/Inputs/var2.c with 100% similarity]
test/ASTMerge/var/test.c [moved from test/ASTMerge/var.c with 100% similarity]