Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(613)

Unified Diff: lib/Rewrite/FrontendActions.cpp

Issue 2826041: Rewriter that converts implicit scoped_refptr constructor calls to make_scoped_refptr calls Base URL: https://llvm.org/svn/llvm-project/cfe/trunk/
Patch Set: rebase on clang with correct cxxnewexpr sourceranges Created 13 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/FrontendTool/ExecuteCompilerInvocation.cpp ('k') | lib/Rewrite/RewriteScopedRefptr.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Rewrite/FrontendActions.cpp
===================================================================
--- lib/Rewrite/FrontendActions.cpp (revision 119972)
+++ lib/Rewrite/FrontendActions.cpp (working copy)
@@ -115,3 +115,13 @@
DoRewriteTest(CI.getPreprocessor(), OS);
}
+
+ASTConsumer *RewriteScopedRefptrAction::CreateASTConsumer(CompilerInstance &CI,
+ llvm::StringRef InFile) {
+ //if (llvm::raw_ostream *OS = CI.createDefaultOutputFile(false, InFile, "cpp"))
+ return CreateScopedRefptrRewriter(InFile, /*OutputStream=*/0,
+ CI.getDiagnostics(), CI.getLangOpts(),
+ CI.getDiagnosticOpts().NoRewriteMacros);
+ //return 0;
+ //if (llvm::raw_ostream *OS = CI.createDefaultOutputFile(false, getCurrentFile()))
+}
« no previous file with comments | « lib/FrontendTool/ExecuteCompilerInvocation.cpp ('k') | lib/Rewrite/RewriteScopedRefptr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b