diff options
author | Alexander Kornienko <alexfh@google.com> | 2017-04-06 13:41:29 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2017-04-06 13:41:29 +0000 |
commit | 778e1a6b3805ce9773221e822a7c5794ec397ce6 (patch) | |
tree | d16c1adc37feaae777a7ff1803d450e986857aa2 /clang-tidy/ClangTidy.h | |
parent | 039fce4b5dad2444d81c51ee770e30d2f7586591 (diff) |
[clang-tidy] Add FormatStyle configuration option.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@299649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/ClangTidy.h')
-rw-r--r-- | clang-tidy/ClangTidy.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/clang-tidy/ClangTidy.h b/clang-tidy/ClangTidy.h index 01786487..8d4d6c95 100644 --- a/clang-tidy/ClangTidy.h +++ b/clang-tidy/ClangTidy.h @@ -224,12 +224,10 @@ ClangTidyOptions::OptionMap getCheckOptions(const ClangTidyOptions &Options); /// /// \param Profile if provided, it enables check profile collection in /// MatchFinder, and will contain the result of the profile. -ClangTidyStats -runClangTidy(std::unique_ptr<ClangTidyOptionsProvider> OptionsProvider, - const tooling::CompilationDatabase &Compilations, - ArrayRef<std::string> InputFiles, - std::vector<ClangTidyError> *Errors, - ProfileData *Profile = nullptr); +void runClangTidy(clang::tidy::ClangTidyContext &Context, + const tooling::CompilationDatabase &Compilations, + ArrayRef<std::string> InputFiles, + ProfileData *Profile = nullptr); // FIXME: This interface will need to be significantly extended to be useful. // FIXME: Implement confidence levels for displaying/fixing errors. @@ -237,8 +235,8 @@ runClangTidy(std::unique_ptr<ClangTidyOptionsProvider> OptionsProvider, /// \brief Displays the found \p Errors to the users. If \p Fix is true, \p /// Errors containing fixes are automatically applied and reformatted. If no /// clang-format configuration file is found, the given \P FormatStyle is used. -void handleErrors(const std::vector<ClangTidyError> &Errors, bool Fix, - StringRef FormatStyle, unsigned &WarningsAsErrorsCount); +void handleErrors(ClangTidyContext &Context, bool Fix, + unsigned &WarningsAsErrorsCount); /// \brief Serializes replacements into YAML and writes them to the specified /// output stream. |