diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2018-01-23 12:31:06 +0000 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2018-01-23 12:31:06 +0000 |
commit | 5ab428935c22f97dcb5e73e937d0c49a0eae773e (patch) | |
tree | 46fc7435e468aeda0914d51fe57644790a910ca1 /clang-tidy/ClangTidy.h | |
parent | 273625937ba76676e925ae785b9ec39ab6c7abbd (diff) |
[clang-tidy] Add -vfsoverlay flag
Summary:
It allows to remap and override files and directories on disk when
running clang-tidy. The intended use case for the flag is running
standalone clang-tidy binary for IDE and editor integration.
Patch by Vladimir Plyashkun.
Reviewers: alexfh, benlangmuir, ilya-biryukov
Reviewed By: ilya-biryukov
Subscribers: ilya-biryukov, cfe-commits
Tags: #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D41535
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@323196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/ClangTidy.h')
-rw-r--r-- | clang-tidy/ClangTidy.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang-tidy/ClangTidy.h b/clang-tidy/ClangTidy.h index 8d4d6c95..7c9ef760 100644 --- a/clang-tidy/ClangTidy.h +++ b/clang-tidy/ClangTidy.h @@ -227,6 +227,7 @@ ClangTidyOptions::OptionMap getCheckOptions(const ClangTidyOptions &Options); void runClangTidy(clang::tidy::ClangTidyContext &Context, const tooling::CompilationDatabase &Compilations, ArrayRef<std::string> InputFiles, + llvm::IntrusiveRefCntPtr<vfs::FileSystem> BaseFS, ProfileData *Profile = nullptr); // FIXME: This interface will need to be significantly extended to be useful. @@ -236,7 +237,8 @@ void runClangTidy(clang::tidy::ClangTidyContext &Context, /// Errors containing fixes are automatically applied and reformatted. If no /// clang-format configuration file is found, the given \P FormatStyle is used. void handleErrors(ClangTidyContext &Context, bool Fix, - unsigned &WarningsAsErrorsCount); + unsigned &WarningsAsErrorsCount, + llvm::IntrusiveRefCntPtr<vfs::FileSystem> BaseFS); /// \brief Serializes replacements into YAML and writes them to the specified /// output stream. |