diff options
author | Alexander Kornienko <alexfh@google.com> | 2014-03-05 13:14:32 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2014-03-05 13:14:32 +0000 |
commit | abb8eaee37c3a7a411af763cb49a303ec11832c7 (patch) | |
tree | e4838ab4e4fb9ec1138bc295e36920549d6979e5 /clang-tidy/tool/ClangTidyMain.cpp | |
parent | b71b235c4831ba637d6a3bb562bc7dc199d6baf7 (diff) |
Added a module for checks not related to LLVM or Google coding style.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202970 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/tool/ClangTidyMain.cpp')
-rw-r--r-- | clang-tidy/tool/ClangTidyMain.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/clang-tidy/tool/ClangTidyMain.cpp b/clang-tidy/tool/ClangTidyMain.cpp index 68b37ca7..e130d139 100644 --- a/clang-tidy/tool/ClangTidyMain.cpp +++ b/clang-tidy/tool/ClangTidyMain.cpp @@ -47,11 +47,9 @@ int main(int argc, const char **argv) { // FIXME: Allow using --list-checks without positional arguments. if (ListChecks) { - std::vector<std::string> CheckNames = - clang::tidy::getCheckNames(Checks, DisableChecks); llvm::outs() << "Enabled checks:"; - for (unsigned i = 0; i < CheckNames.size(); ++i) - llvm::outs() << "\n " << CheckNames[i]; + for (auto CheckName : clang::tidy::getCheckNames(Checks, DisableChecks)) + llvm::outs() << "\n " << CheckName; llvm::outs() << "\n\n"; return 0; } @@ -76,5 +74,9 @@ static int LLVMModuleAnchorDestination = LLVMModuleAnchorSource; extern volatile int GoogleModuleAnchorSource; static int GoogleModuleAnchorDestination = GoogleModuleAnchorSource; +// This anchor is used to force the linker to link the MiscModule. +extern volatile int MiscModuleAnchorSource; +static int MiscModuleAnchorDestination = MiscModuleAnchorSource; + } // namespace tidy } // namespace clang |