bool found_mf_opt = false;
bool found_wp_md_or_mmd_opt = false;
bool found_md_or_mmd_opt = false;
- bool found_opt_Wa_a = false;
+ bool found_Wa_a_opt = false;
std::string explicit_language; // As specified with -x.
std::string input_charset_option; // -finput-charset=...
if (util::starts_with(args[i], "-Wa,")) {
for (const auto part : util::Tokenizer(&args[i][4], ",")) {
if (util::starts_with(part, "-a")) {
- if (state.found_opt_Wa_a) {
+ if (state.found_Wa_a_opt) {
LOG_RAW(
"Multiple assembler listing options (-Wa,-a) are not supported");
return Statistic::unsupported_compiler_option;
}
- state.found_opt_Wa_a = true;
+ state.found_Wa_a_opt = true;
const auto eq_pos = part.find('=');
if (eq_pos != std::string_view::npos) {
// Case 2: -Wa,-a= (write to stdout and stderr)
// Case 3: -Wa,-a=file (write to file)
//
- // No need to include the file part in case 3 since the filename is not
- // part of the output.
+ // No need to include the file part in case 3 in the hash since the
+ // filename is not part of the output.
- using util::Tokenizer;
hash.hash_delimiter("arg");
bool first = true;
- for (const auto part :
- Tokenizer(args[i], ",", Tokenizer::Mode::include_empty)) {
+ for (const auto part : util::Tokenizer(
+ args[i], ",", util::Tokenizer::Mode::include_empty)) {
if (first) {
first = false;
} else {