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

Unified Diff: lib/Frontend/CompilerInvocation.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/Driver/Types.cpp ('k') | lib/FrontendTool/ExecuteCompilerInvocation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Frontend/CompilerInvocation.cpp
===================================================================
--- lib/Frontend/CompilerInvocation.cpp (revision 119972)
+++ lib/Frontend/CompilerInvocation.cpp (working copy)
@@ -344,6 +344,7 @@
case frontend::RewriteMacros: return "-rewrite-macros";
case frontend::RewriteObjC: return "-rewrite-objc";
case frontend::RewriteTest: return "-rewrite-test";
+ case frontend::RewriteScopedRefptr: return "-rewrite-scoped-refptr";
case frontend::RunAnalysis: return "-analyze";
case frontend::RunPreprocessorOnly: return "-Eonly";
}
@@ -1054,6 +1055,8 @@
Opts.ProgramAction = frontend::RewriteObjC; break;
case OPT_rewrite_test:
Opts.ProgramAction = frontend::RewriteTest; break;
+ case OPT_rewrite_scoped_refptr:
+ Opts.ProgramAction = frontend::RewriteScopedRefptr; break;
case OPT_analyze:
Opts.ProgramAction = frontend::RunAnalysis; break;
case OPT_Eonly:
« no previous file with comments | « lib/Driver/Types.cpp ('k') | lib/FrontendTool/ExecuteCompilerInvocation.cpp » ('j') | no next file with comments »

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