[clang-tools-extra] r197141 - Fix the usage of the CommonOptionsParser ctor changed in r197139.
Alexander Kornienko
alexfh at google.com
Thu Dec 12 02:01:39 PST 2013
Author: alexfh
Date: Thu Dec 12 04:01:39 2013
New Revision: 197141
URL: http://llvm.org/viewvc/llvm-project?rev=197141&view=rev
Log:
Fix the usage of the CommonOptionsParser ctor changed in r197139.
Modified:
clang-tools-extra/trunk/clang-tidy/tool/ClangTidyMain.cpp
Modified: clang-tools-extra/trunk/clang-tidy/tool/ClangTidyMain.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/tool/ClangTidyMain.cpp?rev=197141&r1=197140&r2=197141&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/tool/ClangTidyMain.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/tool/ClangTidyMain.cpp Thu Dec 12 04:01:39 2013
@@ -17,7 +17,6 @@
#include "../ClangTidy.h"
#include "clang/Tooling/CommonOptionsParser.h"
-#include "llvm/Support/CommandLine.h"
#include <vector>
using namespace clang::ast_matchers;
@@ -39,7 +38,7 @@ static cl::opt<bool> Fix("fix", cl::desc
// FIXME: Add option to list name/description of all checks.
int main(int argc, const char **argv) {
- CommonOptionsParser OptionsParser(argc, argv);
+ CommonOptionsParser OptionsParser(argc, argv, ClangTidyCategory);
SmallVector<clang::tidy::ClangTidyError, 16> Errors;
clang::tidy::runClangTidy(Checks, OptionsParser.getCompilations(),
More information about the cfe-commits
mailing list