reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
368 ClangTU = clang_parseTranslationUnit(Index, Main.c_str(), nullptr, 0, 371 CXSourceRangeList *Ranges = clang_getAllSkippedRanges(ClangTU); 399 ClangTU = clang_parseTranslationUnit(Index, Main.c_str(), nullptr, 0, nullptr, 402 CXCursor C = clang_getTranslationUnitCursor(ClangTU); 438 unsigned NumDiagnostics = clang_getNumDiagnostics(ClangTU); 440 auto Diag = clang_getDiagnostic(ClangTU, i); 449 if (clang_reparseTranslationUnit(ClangTU, num_unsaved_files, unsaved_files, 450 clang_defaultReparseOptions(ClangTU))) { 462 ClangTU = clang_parseTranslationUnit(Index, CppName.c_str(), nullptr, 0, 464 CXFile cxf = clang_getFile(ClangTU, CppName.c_str()); 485 ClangTU = clang_parseTranslationUnit(Index, CppName.c_str(), nullptr, 0, 487 EXPECT_EQ(1U, clang_getNumDiagnostics(ClangTU)); 492 EXPECT_EQ(1U, clang_getNumDiagnostics(ClangTU)); 500 EXPECT_EQ(0U, clang_getNumDiagnostics(ClangTU)); 520 ClangTU = clang_parseTranslationUnit(Index, MName.c_str(), Args, NumArgs, 522 EXPECT_EQ(1U, clang_getNumDiagnostics(ClangTU)); 527 EXPECT_EQ(1U, clang_getNumDiagnostics(ClangTU)); 535 EXPECT_EQ(0U, clang_getNumDiagnostics(ClangTU)); 560 nullptr, 0, TUFlags, &ClangTU)); 561 EXPECT_EQ(0U, clang_getNumDiagnostics(ClangTU)); 573 ClangTU = clang_parseTranslationUnit(Index, File.c_str(), nullptr, 0, 575 CXCursor TUCursor = clang_getTranslationUnitCursor(ClangTU); 615 clang_disposeTranslationUnit(ClangTU); // dispose from previous iter 618 ClangTU = clang_parseTranslationUnit(Index, Main.c_str(), nullptr, 0, 626 CXSourceRangeList *Ranges = clang_getAllSkippedRanges(ClangTU); 655 CXFile cxf = clang_getFile(ClangTU, Header.c_str()); 656 Ranges = clang_getSkippedRanges(ClangTU, cxf); 663 cxf = clang_getFile(ClangTU, Main.c_str()); 664 Ranges = clang_getSkippedRanges(ClangTU, cxf); 679 unsigned options = clang_defaultSaveOptions(ClangTU); 680 if (clang_saveTranslationUnit(ClangTU, Filename.c_str(), options) != 686 clang_disposeTranslationUnit(ClangTU); 688 ClangTU = clang_createTranslationUnit(Index, Filename.c_str()); 690 if (!ClangTU) { 707 ClangTU = clang_parseTranslationUnit(Index, HeaderName.c_str(), Argv, 713 clang_getCursorExtent(clang_getTranslationUnitCursor(ClangTU)); 717 clang_tokenize(ClangTU, Range, &Tokens, &NumTokens); 727 clang_disposeTokens(ClangTU, Tokens, NumTokens);tools/clang/unittests/libclang/TestUtils.h
41 ClangTU = nullptr; 44 clang_disposeTranslationUnit(ClangTU); 79 CXCursor TuCursor = clang_getTranslationUnitCursor(ClangTU);