diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-12-05 08:19:18 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-12-05 08:19:18 +0000 |
commit | a60d8ae09db4f82253bb257ad455aa1047ac0ffc (patch) | |
tree | d286cdda6a118b0d26e9b291de1230fb701fc5cc /clang/tools/c-index-test/c-index-test.c | |
parent | fcf30326fd5f3815b2e6e2b1716f4c8be3c7ebb6 (diff) | |
download | bcm5719-llvm-a60d8ae09db4f82253bb257ad455aa1047ac0ffc.tar.gz bcm5719-llvm-a60d8ae09db4f82253bb257ad455aa1047ac0ffc.zip |
[c-index-test] For the '-remap-file=' option use ':' instead of ';' for separator.
lldb does not like semicolon as part of an option.
llvm-svn: 196485
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index 90a65282f4c..980c9b410fb 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -137,10 +137,10 @@ int parse_remapped_files(int argc, const char **argv, int start_arg, char *filename; char *contents; FILE *to_file; - const char *semi = strchr(arg_string, ';'); - if (!semi) { + const char *colon = strchr(arg_string, ':'); + if (!colon) { fprintf(stderr, - "error: -remap-file=from;to argument is missing semicolon\n"); + "error: -remap-file=from:to argument is missing semicolon\n"); free_remapped_files(*unsaved_files, i); *unsaved_files = 0; *num_unsaved_files = 0; @@ -148,10 +148,10 @@ int parse_remapped_files(int argc, const char **argv, int start_arg, } /* Open the file that we're remapping to. */ - to_file = fopen(semi + 1, "rb"); + to_file = fopen(colon + 1, "rb"); if (!to_file) { fprintf(stderr, "error: cannot open file %s that we are remapping to\n", - semi + 1); + colon + 1); free_remapped_files(*unsaved_files, i); *unsaved_files = 0; *num_unsaved_files = 0; @@ -167,7 +167,7 @@ int parse_remapped_files(int argc, const char **argv, int start_arg, contents = (char *)malloc(unsaved->Length + 1); if (fread(contents, 1, unsaved->Length, to_file) != unsaved->Length) { fprintf(stderr, "error: unexpected %s reading 'to' file %s\n", - (feof(to_file) ? "EOF" : "error"), semi + 1); + (feof(to_file) ? "EOF" : "error"), colon + 1); fclose(to_file); free_remapped_files(*unsaved_files, i); free(contents); @@ -182,7 +182,7 @@ int parse_remapped_files(int argc, const char **argv, int start_arg, fclose(to_file); /* Copy the file name that we're remapping from. */ - filename_len = semi - arg_string; + filename_len = colon - arg_string; filename = (char *)malloc(filename_len + 1); memcpy(filename, arg_string, filename_len); filename[filename_len] = 0; |