<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/88390>88390</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [BUG] Clang-tidy: `ExtraArgs:` is ignored when specified in config
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          sdimovv
      </td>
    </tr>
</table>

<pre>
    The `ExtraArgs:` sequence is ignored when specified in the clang-tidy config.

For example:
```yaml
# .clang-tidy config
...
ExtraArgs:
  - '-Wno-unknown-warning-option'
```

Results in:
```
error: no such file or directory: '-Wno-unknown-warning-option' [clang-diagnostic-error]
```

However, when specified on the command line (`--extra-arg  -Wno-unknown-warning-option`) it works fine. 

According to the [docs](https://clang.llvm.org/extra/clang-tidy/#using-clang-tidy:~:text=ExtraArgs%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2D%20Same%20as%20%27%2D%2Dextra%2Dargs%27.), `ExtraArgs` in the config file is the same as `--extra-arg` on the command line.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8VE9zmz4Q_TTisgMjJMD4wMEOP_967p_pWUYLqAHJlYQdX_rZOwia2EkmvXWGEWIX7b7dt3rCOdVpxIrke5LXkZh8b2zlpBrN-RwdjbxWX3sEUtD_nrwVO9s5wnekoODw54S6QVAOVKeNRQmXHjW4EzaqVShBafA9QjMI3cVeySs0RreqSwitCd0t68FYwCcxngacIy-egi7PVYzDamIckjeRFl-SrBHvMAYLQAyEbeLv2sSTftTmouOLsFrpLjYnr4wmbPMq6S26z-imwTtQ-i245ROtNZbwHWgDbmp6aNWAYCxIZbHxxl5n518xAMn3S3lSiU4b51UTL7Hz-gOAn8wFz2gJe3jdfbN234yj0BIGpREIK0lB4xjnRsXCdgAfwSooYVtQHi7GPjpolcYEbrPvmsZYqXQH3oRsJN9L07gZMyt770-BCnYg7BCqS4bhPCbGdoQdAog_jsBq-JFPboZwY-W7X4TvPD55wusXjlnO6D9Y6rD7IkYMG_GSePPsrtdaclaLFdomIWw703J3dwr6fCvCAC_TolwwOTEiCAf3FM1n3uFyHflIVlxu-VZEWKWblJUZo-k26itRiIzlWJRHScuibZEXIpNbXjLJ22ORRapilGU0S9OUsyLnSdaWDUuzrOWIRZsiySiOQg3PnEXKuQmrsuRbGg3iiIMLwsHYLYVsFhJbzYfi49Q5ktFBOe9ewnjlhyA5-2__k7yGh1uq39OaDyVmaWQ02aG6H7hO-X46Jo0ZCTvMyddXfLLmBzaesEMoyBF2CDX9DgAA__-2loQ0">