blob: e262dc356d09fe6602771007720376fd745e0b47 [file] [log] [blame]
Alexander Kornienko16ac6ce2014-03-05 13:14:32 +00001//===--- MiscTidyModule.cpp - clang-tidy ----------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "../ClangTidy.h"
11#include "../ClangTidyModule.h"
12#include "../ClangTidyModuleRegistry.h"
13
14namespace clang {
15namespace tidy {
16
17class MiscModule : public ClangTidyModule {
18public:
19 void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override {
20 }
21};
22
23// Register the MiscTidyModule using this statically initialized variable.
24static ClangTidyModuleRegistry::Add<MiscModule>
25X("misc-module", "Adds miscellaneous lint checks.");
26
27// This anchor is used to force the linker to link in the generated object file
28// and thus register the MiscModule.
29volatile int MiscModuleAnchorSource = 0;
30
31} // namespace tidy
32} // namespace clang