Lines Matching refs:AST

97   std::unique_ptr<ASTUnit> AST = tooling::buildASTFromCodeWithArgs(  in makeAST()  local
126 EXPECT_TRUE(recordsEqual(AST, ASTFileSeed, Name)); in makeAST()
129 return AST; in makeAST()
156 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
165 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
167 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST()
176 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
185 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
187 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST()
196 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
205 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
207 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST()
216 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
227 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
229 const DiagnosticsEngine &Diags = AST->getDiagnostics(); in TEST()
239 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
249 EXPECT_TRUE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
251 const DiagnosticsEngine &Diags = AST->getDiagnostics(); in TEST()
260 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
270 EXPECT_TRUE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
272 const DiagnosticsEngine &Diags = AST->getDiagnostics(); in TEST()
281 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
292 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
294 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST()
306 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
320 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
322 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST()
332 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
346 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
348 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST()
358 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
372 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
374 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST()
384 std::unique_ptr<ASTUnit> AST = in TEST() local
409 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
416 getRecordDeclFromAST(AST->getASTContext(), "test_struct"); in TEST()
418 &AST->getASTContext().getASTRecordLayout(RD); in TEST()
428 getRecordDeclFromAST(AST->getASTContext(), "another_struct"); in TEST()
430 &AST->getASTContext().getASTRecordLayout(RD); in TEST()
440 getRecordDeclFromAST(AST->getASTContext(), "last_struct"); in TEST()
442 &AST->getASTContext().getASTRecordLayout(RD); in TEST()
452 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
460 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
462 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST()
470 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
481 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
483 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST()
491 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
521 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
523 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST()
558 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
577 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
579 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST()
587 const std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
601 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
603 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST()
609 const std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST() local
623 EXPECT_FALSE(AST->getDiagnostics().hasErrorOccurred()); in TEST()
625 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST()