Skip to content

Commit

Permalink
Adjust SetVersionPrinter call for D33899
Browse files Browse the repository at this point in the history
Summary:
In D33899, I'm adding a `raw_ostream &` parameter to the function
objects passed to `cl::SetVersionPrinter`.  Adjust the call in
clang-apply-replacements for this.

Reviewers: klimek, alexfh

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D33959

llvm-svn: 304837
  • Loading branch information
DimitryAndric committed Jun 6, 2017
1 parent 81c4042 commit dbe776e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ class ScopedFileRemover {
};
} // 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
Expand Down Expand Up @@ -199,7 +199,7 @@ applyFormatting(const std::vector<tooling::Replacement> &Replacements,
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());
Expand Down

0 comments on commit dbe776e

Please sign in to comment.