1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "clang-tidy/ClangTidyModule.h"
10 #include "clang-tidy/ClangTidyModuleRegistry.h"
12 #include "abi_tag_on_virtual.hpp"
13 #include "header_exportable_declarations.hpp"
14 #include "hide_from_abi.hpp"
15 #include "proper_version_checks.hpp"
16 #include "qualify_declval.hpp"
17 #include "robust_against_adl.hpp"
18 #include "uglify_attributes.hpp"
21 class LibcxxTestModule
: public clang::tidy::ClangTidyModule
{
23 void addCheckFactories(clang::tidy::ClangTidyCheckFactories
& check_factories
) override
{
24 check_factories
.registerCheck
<libcpp::abi_tag_on_virtual
>("libcpp-avoid-abi-tag-on-virtual");
25 check_factories
.registerCheck
<libcpp::header_exportable_declarations
>("libcpp-header-exportable-declarations");
26 check_factories
.registerCheck
<libcpp::hide_from_abi
>("libcpp-hide-from-abi");
27 check_factories
.registerCheck
<libcpp::proper_version_checks
>("libcpp-cpp-version-check");
28 check_factories
.registerCheck
<libcpp::robust_against_adl_check
>("libcpp-robust-against-adl");
29 check_factories
.registerCheck
<libcpp::uglify_attributes
>("libcpp-uglify-attributes");
30 check_factories
.registerCheck
<libcpp::qualify_declval
>("libcpp-qualify-declval");
35 clang::tidy::ClangTidyModuleRegistry::Add
<LibcxxTestModule
> libcpp_module
{
36 "libcpp-module", "Adds libc++-specific checks."};