Renamed runClangTidy argument Ranges to InputFiles, removed a TODO comment.
authorAlexander Kornienko <alexfh@google.com>
Wed, 28 May 2014 15:21:14 +0000 (15:21 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 28 May 2014 15:21:14 +0000 (15:21 +0000)
No functional changes.

llvm-svn: 209743

clang-tools-extra/clang-tidy/ClangTidy.cpp
clang-tools-extra/clang-tidy/ClangTidy.h

index 8b3506a..57bfc5e 100644 (file)
@@ -298,11 +298,9 @@ std::vector<std::string> getCheckNames(const ClangTidyOptions &Options) {
 
 ClangTidyStats runClangTidy(const ClangTidyOptions &Options,
                             const tooling::CompilationDatabase &Compilations,
-                            ArrayRef<std::string> Ranges,
+                            ArrayRef<std::string> InputFiles,
                             std::vector<ClangTidyError> *Errors) {
-  // FIXME: Ranges are currently full files. Support selecting specific
-  // (line-)ranges.
-  ClangTool Tool(Compilations, Ranges);
+  ClangTool Tool(Compilations, InputFiles);
   clang::tidy::ClangTidyContext Context(Options);
   ClangTidyDiagnosticConsumer DiagConsumer(Context);
 
index a0ae18d..51fb2fe 100644 (file)
@@ -124,7 +124,7 @@ std::vector<std::string> getCheckNames(const ClangTidyOptions &Options);
 /// \brief Run a set of clang-tidy checks on a set of files.
 ClangTidyStats runClangTidy(const ClangTidyOptions &Options,
                             const tooling::CompilationDatabase &Compilations,
-                            ArrayRef<std::string> Ranges,
+                            ArrayRef<std::string> InputFiles,
                             std::vector<ClangTidyError> *Errors);
 
 // FIXME: This interface will need to be significantly extended to be useful.