summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/ClangTidy.h
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2018-01-23 12:31:06 +0000
committerIlya Biryukov <ibiryukov@google.com>2018-01-23 12:31:06 +0000
commita67b3663de05b21af4bcbf2ae46c7230e9892c90 (patch)
tree6db9497d77661ecd532cbec3ecfa91dc56808407 /clang-tools-extra/clang-tidy/ClangTidy.h
parent5da21edb3537af70b8b5a87d1c3bed990742a632 (diff)
downloadbcm5719-llvm-a67b3663de05b21af4bcbf2ae46c7230e9892c90.tar.gz
bcm5719-llvm-a67b3663de05b21af4bcbf2ae46c7230e9892c90.zip
[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 llvm-svn: 323196
Diffstat (limited to 'clang-tools-extra/clang-tidy/ClangTidy.h')
-rw-r--r--clang-tools-extra/clang-tidy/ClangTidy.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/ClangTidy.h b/clang-tools-extra/clang-tidy/ClangTidy.h
index 8d4d6c95a5a..7c9ef760fdc 100644
--- a/clang-tools-extra/clang-tidy/ClangTidy.h
+++ b/clang-tools-extra/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.
OpenPOWER on IntegriCloud