[clang-tidy] Separate the check-facing interface
authorAlexander Kornienko <alexfh@google.com>
Mon, 25 Mar 2019 12:36:30 +0000 (12:36 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 25 Mar 2019 12:36:30 +0000 (12:36 +0000)
commite9087fe75c8652a442bada0a7e02cba0df781074
tree613a5e1fef6a672809f6ec12950ae67df97c3de2
parente6963be317fe056f9590f1c02a5294c790922d68
[clang-tidy] Separate the check-facing interface

Summary:
Move ClangTidyCheck to a separate header/.cpp
Switch checks to #include "ClangTidyCheck.h"
Mention ClangTidyCheck.h in the docs

Reviewers: hokein, gribozavr, aaron.ballman

Reviewed By: hokein

Subscribers: mgorny, javed.absar, xazax.hun, arphaman, jdoerfert, llvm-commits, cfe-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D59714

llvm-svn: 356890
clang-tools-extra/clang-tidy/CMakeLists.txt
clang-tools-extra/clang-tidy/ClangTidy.cpp
clang-tools-extra/clang-tidy/ClangTidy.h
clang-tools-extra/clang-tidy/ClangTidyCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/ClangTidyCheck.h [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/Contributing.rst
llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/BUILD.gn