summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-03-05 13:14:32 +0000
committerAlexander Kornienko <alexfh@google.com>2014-03-05 13:14:32 +0000
commit16ac6cebcfb58ef80cb708cca2ce5994cf64abdb (patch)
treec34ee03b5f2119c45514415b4c9d272dbe0bfcfa /clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
parent21f3b77707c5b4a273746095e078671ec08d2ab6 (diff)
downloadbcm5719-llvm-16ac6cebcfb58ef80cb708cca2ce5994cf64abdb.tar.gz
bcm5719-llvm-16ac6cebcfb58ef80cb708cca2ce5994cf64abdb.zip
Added a module for checks not related to LLVM or Google coding style.
llvm-svn: 202970
Diffstat (limited to 'clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
index 68b37ca74db..e130d13930d 100644
--- a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
+++ b/clang-tools-extra/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
OpenPOWER on IntegriCloud