Alexander Kornienko | 16ac6ce | 2014-03-05 13:14:32 +0000 | [diff] [blame^] | 1 | //===--- 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 | |
| 14 | namespace clang { |
| 15 | namespace tidy { |
| 16 | |
| 17 | class MiscModule : public ClangTidyModule { |
| 18 | public: |
| 19 | void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override { |
| 20 | } |
| 21 | }; |
| 22 | |
| 23 | // Register the MiscTidyModule using this statically initialized variable. |
| 24 | static ClangTidyModuleRegistry::Add<MiscModule> |
| 25 | X("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. |
| 29 | volatile int MiscModuleAnchorSource = 0; |
| 30 | |
| 31 | } // namespace tidy |
| 32 | } // namespace clang |