[clang-tools-extra] r209743 - Renamed runClangTidy argument Ranges to InputFiles, removed a TODO comment.

Alexander Kornienko alexfh at google.com
Wed May 28 08:21:15 PDT 2014


Author: alexfh
Date: Wed May 28 10:21:14 2014
New Revision: 209743

URL: http://llvm.org/viewvc/llvm-project?rev=209743&view=rev
Log:
Renamed runClangTidy argument Ranges to InputFiles, removed a TODO comment.
No functional changes.

Modified:
    clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp
    clang-tools-extra/trunk/clang-tidy/ClangTidy.h

Modified: clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp?rev=209743&r1=209742&r2=209743&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp Wed May 28 10:21:14 2014
@@ -298,11 +298,9 @@ std::vector<std::string> getCheckNames(c
 
 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);
 

Modified: clang-tools-extra/trunk/clang-tidy/ClangTidy.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/ClangTidy.h?rev=209743&r1=209742&r2=209743&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/ClangTidy.h (original)
+++ clang-tools-extra/trunk/clang-tidy/ClangTidy.h Wed May 28 10:21:14 2014
@@ -124,7 +124,7 @@ std::vector<std::string> getCheckNames(c
 /// \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.





More information about the cfe-commits mailing list