Lines Matching refs:s
83 const char* s = argv[i]; in Parse() local
84 const size_t len = strlen(s); in Parse()
85 if (s[0] != '-') { in Parse()
89 fprintf(stderr, "unknown option (%d): %s\n", i, s); in Parse()
93 if (s[1] == 'I') { in Parse()
95 options->import_paths_.push_back(s + 2); in Parse()
100 } else if (s[1] == 'd') { in Parse()
102 options->dep_file_name_ = s + 2; in Parse()
107 } else if (strcmp(s, "-a") == 0) { in Parse()
109 } else if (s[1] == 'p') { in Parse()
111 options->preprocessed_files_.push_back(s + 2); in Parse()
116 } else if (s[1] == 'o') { in Parse()
118 options->output_base_folder_= s + 2; in Parse()
123 } else if (strcmp(s, "-b") == 0) { in Parse()
127 fprintf(stderr, "unknown option (%d): %s\n", i, s); in Parse()
208 const char *s = argv[i]; in Parse() local
209 if (s[0] != '-') { in Parse()
213 cerr << "Invalid argument '" << s << "'." << endl; in Parse()
216 const string the_rest = s + 2; in Parse()
217 if (s[1] == 'I') { in Parse()
219 } else if (s[1] == 'd') { in Parse()
222 cerr << "Invalid argument '" << s << "'." << endl; in Parse()