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.


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to