reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/tools/c-index-test/c-index-test.c
 4827   if (argc > 2 && strcmp(argv[1], "-read-diagnostics") == 0)
 4828       return read_diagnostics(argv[2]);
 4829   if (argc > 2 && strstr(argv[1], "-code-completion-at=") == argv[1])
 4829   if (argc > 2 && strstr(argv[1], "-code-completion-at=") == argv[1])
 4830     return perform_code_completion(argc, argv, 0);
 4831   if (argc > 2 && strstr(argv[1], "-code-completion-timing=") == argv[1])
 4831   if (argc > 2 && strstr(argv[1], "-code-completion-timing=") == argv[1])
 4832     return perform_code_completion(argc, argv, 1);
 4833   if (argc > 2 && strstr(argv[1], "-cursor-at=") == argv[1])
 4833   if (argc > 2 && strstr(argv[1], "-cursor-at=") == argv[1])
 4834     return inspect_cursor_at(argc, argv, "-cursor-at=", inspect_print_cursor);
 4835   if (argc > 2 && strstr(argv[1], "-evaluate-cursor-at=") == argv[1])
 4835   if (argc > 2 && strstr(argv[1], "-evaluate-cursor-at=") == argv[1])
 4836     return inspect_cursor_at(argc, argv, "-evaluate-cursor-at=",
 4838   if (argc > 2 && strstr(argv[1], "-get-macro-info-cursor-at=") == argv[1])
 4838   if (argc > 2 && strstr(argv[1], "-get-macro-info-cursor-at=") == argv[1])
 4839     return inspect_cursor_at(argc, argv, "-get-macro-info-cursor-at=",
 4841   if (argc > 2 && strstr(argv[1], "-file-refs-at=") == argv[1])
 4841   if (argc > 2 && strstr(argv[1], "-file-refs-at=") == argv[1])
 4842     return find_file_refs_at(argc, argv);
 4843   if (argc > 2 && strstr(argv[1], "-file-includes-in=") == argv[1])
 4843   if (argc > 2 && strstr(argv[1], "-file-includes-in=") == argv[1])
 4844     return find_file_includes_in(argc, argv);
 4845   if (argc > 2 && strcmp(argv[1], "-index-file") == 0)
 4846     return index_file(argc - 2, argv + 2, /*full=*/0);
 4847   if (argc > 2 && strcmp(argv[1], "-index-file-full") == 0)
 4848     return index_file(argc - 2, argv + 2, /*full=*/1);
 4849   if (argc > 2 && strcmp(argv[1], "-index-tu") == 0)
 4850     return index_tu(argc - 2, argv + 2);
 4851   if (argc > 2 && strcmp(argv[1], "-index-compile-db") == 0)
 4852     return index_compile_db(argc - 2, argv + 2);
 4853   else if (argc >= 4 && strncmp(argv[1], "-test-load-tu", 13) == 0) {
 4854     CXCursorVisitor I = GetVisitor(argv[1] + 13);
 4856       return perform_test_load_tu(argv[2], argv[3], argc >= 5 ? argv[4] : 0, I,
 4856       return perform_test_load_tu(argv[2], argv[3], argc >= 5 ? argv[4] : 0, I,
 4856       return perform_test_load_tu(argv[2], argv[3], argc >= 5 ? argv[4] : 0, I,
 4859   else if (argc >= 5 && strncmp(argv[1], "-test-load-source-reparse", 25) == 0){
 4860     CXCursorVisitor I = GetVisitor(argv[1] + 25);
 4862       int trials = atoi(argv[2]);
 4863       return perform_test_reparse_source(argc - 4, argv + 4, trials, argv[3], I, 
 4863       return perform_test_reparse_source(argc - 4, argv + 4, trials, argv[3], I, 
 4867   else if (argc >= 4 && strncmp(argv[1], "-test-load-source", 17) == 0) {
 4868     CXCursorVisitor I = GetVisitor(argv[1] + 17);
 4871     if (strstr(argv[1], "-memory-usage"))
 4875       return perform_test_load_source(argc - 3, argv + 3, argv[2], I,
 4875       return perform_test_load_source(argc - 3, argv + 3, argv[2], I,
 4878   else if (argc >= 3 && strcmp(argv[1], "-single-file-parse") == 0)
 4879     return perform_single_file_parse(argv[2]);
 4880   else if (argc >= 3 && strcmp(argv[1], "-retain-excluded-conditional-blocks") == 0)
 4881     return perform_file_retain_excluded_cb(argv[2]);
 4882   else if (argc >= 4 && strcmp(argv[1], "-test-file-scan") == 0)
 4883     return perform_file_scan(argv[2], argv[3],
 4883     return perform_file_scan(argv[2], argv[3],
 4884                              argc >= 5 ? argv[4] : 0);
 4885   else if (argc > 2 && strstr(argv[1], "-test-annotate-tokens=") == argv[1])
 4885   else if (argc > 2 && strstr(argv[1], "-test-annotate-tokens=") == argv[1])
 4886     return perform_token_annotation(argc, argv);
 4887   else if (argc > 2 && strcmp(argv[1], "-test-inclusion-stack-source") == 0)
 4888     return perform_test_load_source(argc - 2, argv + 2, "all", NULL,
 4890   else if (argc > 2 && strcmp(argv[1], "-test-inclusion-stack-tu") == 0)
 4891     return perform_test_load_tu(argv[2], "all", NULL, NULL,
 4893   else if (argc > 2 && strcmp(argv[1], "-test-print-linkage-source") == 0)
 4894     return perform_test_load_source(argc - 2, argv + 2, "all", PrintLinkage,
 4896   else if (argc > 2 && strcmp(argv[1], "-test-print-visibility") == 0)
 4897     return perform_test_load_source(argc - 2, argv + 2, "all", PrintVisibility,
 4899   else if (argc > 2 && strcmp(argv[1], "-test-print-type") == 0)
 4900     return perform_test_load_source(argc - 2, argv + 2, "all",
 4902   else if (argc > 2 && strcmp(argv[1], "-test-print-type-size") == 0)
 4903     return perform_test_load_source(argc - 2, argv + 2, "all",
 4905   else if (argc > 2 && strcmp(argv[1], "-test-print-type-declaration") == 0)
 4906     return perform_test_load_source(argc - 2, argv + 2, "all",
 4908   else if (argc > 2 && strcmp(argv[1], "-test-print-decl-attributes") == 0)
 4909     return perform_test_load_source(argc - 2, argv + 2, "all",
 4911   else if (argc > 2 && strcmp(argv[1], "-test-print-bitwidth") == 0)
 4912     return perform_test_load_source(argc - 2, argv + 2, "all",
 4914   else if (argc > 2 && strcmp(argv[1], "-test-print-mangle") == 0)
 4915     return perform_test_load_tu(argv[2], "all", NULL, PrintMangledName, NULL);
 4916   else if (argc > 2 && strcmp(argv[1], "-test-print-manglings") == 0)
 4917     return perform_test_load_tu(argv[2], "all", NULL, PrintManglings, NULL);
 4918   else if (argc > 2 && strcmp(argv[1], "-test-print-target-info") == 0)
 4919     return print_target_info(argc - 2, argv + 2);
 4920   else if (argc > 1 && strcmp(argv[1], "-print-usr") == 0) {
 4922       return print_usrs(argv + 2, argv + argc);
 4922       return print_usrs(argv + 2, argv + argc);
 4928   else if (argc > 2 && strcmp(argv[1], "-print-usr-file") == 0)
 4929     return print_usrs_file(argv[2]);
 4930   else if (argc > 2 && strcmp(argv[1], "-write-pch") == 0)
 4931     return write_pch_file(argv[2], argc - 3, argv + 3);
 4931     return write_pch_file(argv[2], argc - 3, argv + 3);
 4932   else if (argc > 2 && strcmp(argv[1], "-compilation-db") == 0)
 4933     return perform_test_compilation_db(argv[argc-1], argc - 3, argv + 2);
 4933     return perform_test_compilation_db(argv[argc-1], argc - 3, argv + 2);
 4934   else if (argc == 2 && strcmp(argv[1], "-print-build-session-timestamp") == 0)