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

    <tr>
        <th>Summary</th>
        <td>
            [Question] Can clang-tidy use `-vfsoverlay` and `-ivfsoverlay` from `clang`'s arguments?
        </td>
    </tr>

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

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

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

<pre>
    There is an extra implementation of `-vfsoverlay` implemented specifically for clang-tidy here: https://reviews.llvm.org/D41535, but `clangd` already can accept VFS overlay information and pass it to clang-tidy. Shouldn't clang-tidy actually parse the flags from compile commands and use them instead of having custom `-vfsoverlay` flag?

If someone need to run clangd, clang-tidy, and simply compile with clang, they would have to have 2 separate solutions to pass VFS overlay.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxskk-PmzAQxT-NuYwSgQlJOHBIs0Lqsdqq94k9gFtjI4-dbb59ZZLupn9OI8No5jfvPWQ2oyPqRPNJNC8Fpjj50DFHWpCnH1hcvL51XycKBIYBHdDPGBDMvFiayUWMxjvwA4h9ubkO7K8ULN7EvvzoIQ28kDKDUWjtDQYfQFl04yYafYM8XNQnmGJcWNQnIXsh-0BXQ2-8tfY6b30YhexfdlVTN0Ke4ZJiXrgO0XkX2kCob6DQASpFS4Rv_Ss8aMC4wYf5zopOw4LMYCJE_wSyhdfJJ6udkIf4DIgqphV8wcAEcSIYLI4MQ_AzKD8vxlKuMzrN64J075vBOI6EOis04dW4EVTi6Of_6JVniroX5UmUp88DsJ_JOwJHpDNpSA4eF8vzE19-5Z2cBb-987yZON27ckOc6AZv-bzMQXneWiUwLRgwErC3KSvE-eeq0JOE20J3tW7rFgvqqkNzrCt5rKpi6naoFe3auj3g_rJvlaJDVTftUTU04KFUhelkKZuyrVpZVnVdbVt5QF2pocK9ouOxFruSZjT23evCMCfqqqY97urC4oUsrxGV8nGQFPL8-_UQQeYAhy7P2FzSyGJXWsPxI0FFNNGuUf-SiPOlonmBM7pnr7Nx_1qT5c1fzV-OhbuRd6h9KeSBAcOYcupZ1H2Rgu3-zPVo4pQuW-VnIfuM9iibJfjvpKKQ_Xo9C9k_BLh28lcAAAD__1J5Oq0">