Lines Matching defs:FileName
132 free((char *)unsaved_files[i].Filename);
170 char *filename;
219 filename = (char *)malloc(filename_len + 1);
220 memcpy(filename, arg_string, filename_len);
221 filename[filename_len] = 0;
222 unsaved->Filename = filename;
1674 on failure. If successful, the pointer *filename will contain newly-allocated
1676 int parse_file_line_column(const char *input, char **filename, unsigned *line,
1687 fprintf(stderr, "could not parse filename:line:column:line:column in "
1690 fprintf(stderr, "could not parse filename:line:column in '%s'\n", input);
1730 *filename = (char*)malloc(last_colon - input + 1);
1731 memcpy(*filename, input, last_colon - input);
1732 (*filename)[last_colon - input] = 0;
1990 char *filename = 0;
2013 if ((errorCode = parse_file_line_column(input, &filename, &line, &column,
2046 results = clang_codeCompleteAt(TU, filename, line, column,
2113 free(filename);
2121 char *filename;
2149 if ((errorCode = parse_file_line_column(input, &Locations[Loc].filename,
2195 CXFile file = clang_getFile(TU, Locations[Loc].filename);
2261 CXString filename = clang_getFileName(file);
2262 printf("\n%s", clang_getCString(filename));
2263 clang_disposeString(filename);
2273 free(Locations[Loc].filename);
2320 if ((errorCode = parse_file_line_column(input, &Locations[Loc].filename,
2367 CXFile file = clang_getFile(TU, Locations[Loc].filename);
2383 free(Locations[Loc].filename);
2572 CXString filename = clang_getFileName((CXFile)file);
2573 printf("%s", clang_getCString(filename));
2574 clang_disposeString(filename);
2579 CXString filename;
2595 filename = clang_getFileName((CXFile)file);
2596 cname = clang_getCString(filename);
2601 clang_disposeString(filename);
2798 CXString filename;
2803 filename = clang_getFileName(file);
2804 index_data->main_filename = clang_getCString(filename);
2805 clang_disposeString(filename);
2823 printf(" | name: \"%s\"", info->filename);
2849 CXString filename = clang_getFileName(info->file);
2850 importedASTS_insert(index_data->importedASTs, clang_getCString(filename));
2851 clang_disposeString(filename);
3298 char *filename = 0;
3317 if ((errorCode = parse_file_line_column(input, &filename, &line, &column,
3322 free(filename);
3337 free(filename);
3366 file = clang_getFile(TU, filename);
3368 fprintf(stderr, "file %s is not in this translation unit\n", filename);
3375 fprintf(stderr, "invalid source location %s:%d:%d\n", filename, line,
3383 fprintf(stderr, "invalid source location %s:%d:%d\n", filename,
3451 free(filename);
3713 int write_pch_file(const char *filename, int argc, const char *argv[]) {
3744 switch (clang_saveTranslationUnit(TU, filename,
3751 filename);
3757 filename);
3763 fprintf(stderr, "Unable to write PCH file %s: unknown error \n", filename);
3812 CXString FileName;
3816 FileName = clang_getFileName(File);
3818 fprintf(stderr, "%s:%d:%d", clang_getCString(FileName), line, column);
3819 clang_disposeString(FileName);
3869 CXString FileName, DiagSpelling, DiagOption, DiagCat;
3876 FileName = clang_getFileName(File);
3882 clang_getCString(FileName),
3908 clang_disposeString(FileName);
3915 static int read_diagnostics(const char *filename) {
3920 Diags = clang_loadDiagnostics(filename, &error, &errorString);
3961 " c-index-test -file-includes-in=<filename> <compiler arguments>\n");
3995 " c-index-test -compilation-db [lookup <filename>] database\n");