[PATCH] D33959: Adjust SetVersionPrinter call for D33899

Dimitry Andric via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 6 14:55:22 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL304837: Adjust SetVersionPrinter call for D33899 (authored by dim).

Changed prior to commit:
  https://reviews.llvm.org/D33959?vs=101623&id=101630#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D33959

Files:
  clang-tools-extra/trunk/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp


Index: clang-tools-extra/trunk/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp
===================================================================
--- clang-tools-extra/trunk/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp
+++ clang-tools-extra/trunk/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp
@@ -82,8 +82,8 @@
 };
 } // namespace
 
-static void printVersion() {
-  outs() << "clang-apply-replacements version " CLANG_VERSION_STRING << "\n";
+static void printVersion(raw_ostream &OS) {
+  OS << "clang-apply-replacements version " CLANG_VERSION_STRING << "\n";
 }
 
 /// \brief Convenience function to get rewritten content for \c Filename from
@@ -199,7 +199,7 @@
 int main(int argc, char **argv) {
   cl::HideUnrelatedOptions(makeArrayRef(VisibleCategories));
 
-  cl::SetVersionPrinter(&printVersion);
+  cl::SetVersionPrinter(printVersion);
   cl::ParseCommandLineOptions(argc, argv);
 
   IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts(new DiagnosticOptions());


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33959.101630.patch
Type: text/x-patch
Size: 1013 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170606/d9165728/attachment.bin>


More information about the cfe-commits mailing list