hanchenye-llvm-project/clang/test/ASTMerge
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
..
Inputs When importing classes and structs with anonymous structs, it is critical that 2016-07-14 19:53:44 +00:00
anonymous-fields.cpp When importing classes and structs with anonymous structs, it is critical that 2016-07-14 19:53:44 +00:00
category.m
class-template.cpp
class.cpp [ASTImporter] Implement missing VisitAccessSpecDecl function in ASTImporter class. 2016-02-18 23:08:36 +00:00
codegen-body.c
codegen-exprs.c Update tests touched by r249656 2015-10-08 06:31:22 +00:00
enum.c
exprs.c Update tests touched by r249656 2015-10-08 06:31:22 +00:00
function.c PR10405 - Desugar FunctionType and TemplateSpecializationType if any type that appears inside needs to be desugared. 2015-07-16 01:06:17 +00:00
inheritance.cpp Handle injected class names in the ASTImporter. 2016-05-14 05:43:57 +00:00
init-ctors.cpp Added support to the ASTImporter for C++ constructor initializers. 2016-05-16 20:48:03 +00:00
interface.m
namespace.cpp
property.m
struct.c
typedef.c
var.c