| 267 | # which ignores just the next flag. Remove these flags from the list. |
| 268 | # See Flag::ShouldCheckFlagContradictions. |
| 269 | def remove_ignored_flags(flags): |
| 270 | flags = remove_flags_after(flags, "--fuzzing") |
| 271 | flags = remove_flags_after(flags, "--no-abort-on-contradictory-flags") |
| 272 | flag_aofnf = normalize_flag("--allow-overwriting-for-next-flag") |
| 273 | while flag_aofnf in flags: |
| 274 | pos = flags.index(flag_aofnf) |
| 275 | flags.pop(pos) |
| 276 | flags.pop(pos) |
| 277 | return flags |
| 278 | |
| 279 | if not self._checked_flag_contradictions: |
| 280 | self._checked_flag_contradictions = True |