[PATCH] D41535: Add -vfsoverlay option for Clang-Tidy

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 22 03:07:26 PST 2018


ilya-biryukov added a comment.

In https://reviews.llvm.org/D41535#983435, @vladimir.plyashkun wrote:

> IIUC, it will be little bit difficult to test it, because whole logic placed in the `ClangTidyMain`. 
>  All existing clang-tidy unit tests use direct calls of `ToolInvocation` which is doesn't know about `vfsoverlay` options.


We could test it with a lit test that runs `clang-tidy` directly and checks output using `FileCheck`. See `clang-tools-extra/test/clang-tidy` for clang-tidy tests using lit and `clang/test/VFS` for lit tests of vfs overlays in clang.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D41535





More information about the cfe-commits mailing list