OLD | NEW |
1 //===--- FrontendActions.cpp ----------------------------------------------===// | 1 //===--- FrontendActions.cpp ----------------------------------------------===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 | 9 |
10 #include "clang/Rewrite/FrontendActions.h" | 10 #include "clang/Rewrite/FrontendActions.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 RewriteMacrosInInput(CI.getPreprocessor(), OS); | 108 RewriteMacrosInInput(CI.getPreprocessor(), OS); |
109 } | 109 } |
110 | 110 |
111 void RewriteTestAction::ExecuteAction() { | 111 void RewriteTestAction::ExecuteAction() { |
112 CompilerInstance &CI = getCompilerInstance(); | 112 CompilerInstance &CI = getCompilerInstance(); |
113 llvm::raw_ostream *OS = CI.createDefaultOutputFile(false, getCurrentFile()); | 113 llvm::raw_ostream *OS = CI.createDefaultOutputFile(false, getCurrentFile()); |
114 if (!OS) return; | 114 if (!OS) return; |
115 | 115 |
116 DoRewriteTest(CI.getPreprocessor(), OS); | 116 DoRewriteTest(CI.getPreprocessor(), OS); |
117 } | 117 } |
| 118 |
| 119 ASTConsumer *RewriteScopedRefptrAction::CreateASTConsumer(CompilerInstance &CI, |
| 120 llvm::StringRef InFile) { |
| 121 //if (llvm::raw_ostream *OS = CI.createDefaultOutputFile(false, InFile, "cpp")
) |
| 122 return CreateScopedRefptrRewriter(InFile, /*OutputStream=*/0, |
| 123 CI.getDiagnostics(), CI.getLangOpts(), |
| 124 CI.getDiagnosticOpts().NoRewriteMacros); |
| 125 //return 0; |
| 126 //if (llvm::raw_ostream *OS = CI.createDefaultOutputFile(false, getCurrentFile
())) |
| 127 } |
OLD | NEW |