Lines Matching defs:source
44 clang_utils::SourceASTWithRecord source;
52 importer.CopyDecl(&target_ast->getASTContext(), source.record_decl);
57 EXPECT_EQ(source.record_decl->getQualifiedNameAsString(),
65 EXPECT_EQ(origin.ctx, &source.ast->getASTContext());
66 EXPECT_EQ(origin.decl, source.record_decl);
71 clang_utils::SourceASTWithRecord source;
78 CompilerType imported = importer.CopyType(*target_ast, source.record_type);
83 EXPECT_EQ(source.record_decl->getQualifiedNameAsString(),
92 EXPECT_EQ(origin.ctx, &source.ast->getASTContext());
93 EXPECT_EQ(origin.decl, source.record_decl);
101 // same name as the one in the other source.
117 // Now complete the forward decl with the definition from the other source.
129 clang_utils::SourceASTWithRecord source;
137 importer.DeportDecl(&target_ast->getASTContext(), source.record_decl);
142 EXPECT_EQ(source.record_decl->getQualifiedNameAsString(),
153 clang_utils::SourceASTWithRecord source;
160 CompilerType imported = importer.DeportType(*target_ast, source.record_type);
165 EXPECT_EQ(source.record_decl->getQualifiedNameAsString(),
177 clang_utils::SourceASTWithRecord source;
180 source.ast->SetMetadataAsUserID(source.record_decl, metadata);
188 importer.CopyDecl(&target_ast->getASTContext(), source.record_decl);
201 clang_utils::SourceASTWithRecord source;
204 source.ast->SetMetadataAsUserID(source.record_decl, metadata);
212 importer.CopyDecl(&temporary_ast->getASTContext(), source.record_decl);
231 clang_utils::SourceASTWithRecord source;
240 importer.CopyDecl(&target_ast->getASTContext(), source.record_decl);
243 // The TagDecl has been imported. Now set the metadata of the source and
245 source.ast->SetMetadataAsUserID(source.record_decl, metadata);
256 clang_utils::SourceASTWithRecord source;
262 layout_info.field_offsets[source.field_decl] = 1;
263 importer.SetRecordLayout(source.record_decl, layout_info);
270 importer.LayoutRecordType(source.record_decl, bit_size, alignment,
276 EXPECT_EQ(1U, field_offsets[source.field_decl]);
287 clang_utils::SourceASTWithRecord source;
290 static_cast<DWARFASTParserClang *>(source.ast->GetDWARFParser());
297 layout_info.field_offsets[source.field_decl] = 1;
298 importer.SetRecordLayout(source.record_decl, layout_info);
305 CompilerType imported = importer.CopyType(*target_ast, source.record_type);
311 ASSERT_EQ(origin.decl, source.record_decl);