From 16ac6cebcfb58ef80cb708cca2ce5994cf64abdb Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Wed, 5 Mar 2014 13:14:32 +0000 Subject: Added a module for checks not related to LLVM or Google coding style. llvm-svn: 202970 --- .../clang-tidy/misc/MiscTidyModule.cpp | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp (limited to 'clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp') diff --git a/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp b/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp new file mode 100644 index 00000000000..e262dc356d0 --- /dev/null +++ b/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp @@ -0,0 +1,32 @@ +//===--- MiscTidyModule.cpp - clang-tidy ----------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "../ClangTidy.h" +#include "../ClangTidyModule.h" +#include "../ClangTidyModuleRegistry.h" + +namespace clang { +namespace tidy { + +class MiscModule : public ClangTidyModule { +public: + void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override { + } +}; + +// Register the MiscTidyModule using this statically initialized variable. +static ClangTidyModuleRegistry::Add +X("misc-module", "Adds miscellaneous lint checks."); + +// This anchor is used to force the linker to link in the generated object file +// and thus register the MiscModule. +volatile int MiscModuleAnchorSource = 0; + +} // namespace tidy +} // namespace clang -- cgit v1.2.3