diff options
| author | Alexander Kornienko <alexfh@google.com> | 2016-05-20 13:42:40 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2016-05-20 13:42:40 +0000 |
| commit | 5d08bb72d91a1f0873d2286f9f3514cf8607ff7f (patch) | |
| tree | 94355dfb738ffafee5be29908c5131282821e876 /clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp | |
| parent | 216963a723b45f88723863796a6255a4868d4ff9 (diff) | |
| download | bcm5719-llvm-5d08bb72d91a1f0873d2286f9f3514cf8607ff7f.tar.gz bcm5719-llvm-5d08bb72d91a1f0873d2286f9f3514cf8607ff7f.zip | |
[clang-tidy] Switch to a more common way of customizing check behavior.
This should have been done this way from the start, however I somehow missed
r257177.
llvm-svn: 270215
Diffstat (limited to 'clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp b/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp index e9a448eaf86..d0a7e5f5080 100644 --- a/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp +++ b/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp @@ -223,10 +223,6 @@ GlobList &ClangTidyContext::getChecksFilter() { return *CheckFilter; } -bool ClangTidyContext::isCheckEnabled(StringRef CheckName) const { - return CheckFilter->contains(CheckName); -} - GlobList &ClangTidyContext::getWarningAsErrorFilter() { assert(WarningAsErrorFilter != nullptr); return *WarningAsErrorFilter; |

