llvm-project/clang/test/ASTMerge/Inputs
Sean Callanan 488f861b83 When importing classes and structs with anonymous structs, it is critical that
distinct anonymous structs remain distinct despite having similar layout.

This is already ensured by distinguishing based on their placement in the parent
struct, using the function `findAnonymousStructOrUnionIndex`.

The problem is that this function only handles anonymous structs, like
```
class Foo { struct { int a; } }
```
and not untagged structs like
```
class Foo { struct { int a; } var; }
```
Both need to be handled, and this patch fixes that.  The test case ensures that this functionality doesn't regress.

Thanks to Manman Ren for review.

https://reviews.llvm.org/D22270

llvm-svn: 275460
2016-07-14 19:53:44 +00:00
..
anonymous-fields1.cpp When importing classes and structs with anonymous structs, it is critical that 2016-07-14 19:53:44 +00:00
anonymous-fields2.cpp When importing classes and structs with anonymous structs, it is critical that 2016-07-14 19:53:44 +00:00
body1.c
body2.c
category1.m
category2.m
class-template1.cpp
class-template2.cpp
class1.cpp [ASTImporter] Implement missing VisitAccessSpecDecl function in ASTImporter class. 2016-02-18 23:08:36 +00:00
class2.cpp [ASTImporter] Implement missing VisitAccessSpecDecl function in ASTImporter class. 2016-02-18 23:08:36 +00:00
enum1.c
enum2.c
exprs1.c
exprs2.c
function1.c
function2.c
inheritance-base.cpp Handle injected class names in the ASTImporter. 2016-05-14 05:43:57 +00:00
init-ctors-classes.cpp Added support to the ASTImporter for C++ constructor initializers. 2016-05-16 20:48:03 +00:00
interface1.m
interface2.m
namespace1.cpp
namespace2.cpp
property1.m
property2.m
struct1.c
struct2.c
typedef1.c
typedef2.c
var1.c
var1.h
var2.c