[clang-tools-extra] r202045 - Update for llvm api change.
Rafael Espindola
rafael.espindola at gmail.com
Mon Feb 24 07:41:44 PST 2014
Author: rafael
Date: Mon Feb 24 09:41:44 2014
New Revision: 202045
URL: http://llvm.org/viewvc/llvm-project?rev=202045&view=rev
Log:
Update for llvm api change.
Modified:
clang-tools-extra/trunk/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
clang-tools-extra/trunk/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp
clang-tools-extra/trunk/clang-modernize/Core/PerfSupport.cpp
clang-tools-extra/trunk/modularize/ModuleAssistant.cpp
clang-tools-extra/trunk/pp-trace/PPTrace.cpp
Modified: clang-tools-extra/trunk/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp?rev=202045&r1=202044&r2=202045&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp (original)
+++ clang-tools-extra/trunk/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp Mon Feb 24 09:41:44 2014
@@ -247,7 +247,7 @@ bool writeFiles(const clang::Rewriter &R
std::string ErrorInfo;
- llvm::raw_fd_ostream FileStream(FileName, ErrorInfo);
+ llvm::raw_fd_ostream FileStream(FileName, ErrorInfo, llvm::sys::fs::F_None);
if (!ErrorInfo.empty()) {
errs() << "Warning: Could not write to " << FileName << "\n";
continue;
Modified: clang-tools-extra/trunk/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp?rev=202045&r1=202044&r2=202045&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp (original)
+++ clang-tools-extra/trunk/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp Mon Feb 24 09:41:44 2014
@@ -272,7 +272,8 @@ int main(int argc, char **argv) {
// Write new file to disk
std::string ErrorInfo;
- llvm::raw_fd_ostream FileStream(I->getKey().str().c_str(), ErrorInfo);
+ llvm::raw_fd_ostream FileStream(I->getKey().str().c_str(), ErrorInfo,
+ llvm::sys::fs::F_None);
if (!ErrorInfo.empty()) {
llvm::errs() << "Could not open " << I->getKey() << " for writing\n";
continue;
Modified: clang-tools-extra/trunk/clang-modernize/Core/PerfSupport.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-modernize/Core/PerfSupport.cpp?rev=202045&r1=202044&r2=202045&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/Core/PerfSupport.cpp (original)
+++ clang-tools-extra/trunk/clang-modernize/Core/PerfSupport.cpp Mon Feb 24 09:41:44 2014
@@ -51,7 +51,8 @@ void writePerfDataJSON(
<< ".json";
std::string ErrorInfo;
- llvm::raw_fd_ostream FileStream(SS.str().c_str(), ErrorInfo);
+ llvm::raw_fd_ostream FileStream(SS.str().c_str(), ErrorInfo,
+ llvm::sys::fs::F_None);
FileStream << "{\n";
FileStream << " \"Sources\" : [\n";
for (SourcePerfData::const_iterator I = TimingResults.begin(),
Modified: clang-tools-extra/trunk/modularize/ModuleAssistant.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/modularize/ModuleAssistant.cpp?rev=202045&r1=202044&r2=202045&view=diff
==============================================================================
--- clang-tools-extra/trunk/modularize/ModuleAssistant.cpp (original)
+++ clang-tools-extra/trunk/modularize/ModuleAssistant.cpp Mon Feb 24 09:41:44 2014
@@ -249,7 +249,7 @@ static bool writeModuleMap(llvm::StringR
// Set up module map output file.
std::string Error;
- llvm::tool_output_file Out(FilePath.c_str(), Error);
+ llvm::tool_output_file Out(FilePath.c_str(), Error, llvm::sys::fs::F_None);
if (!Error.empty()) {
llvm::errs() << Argv0 << ": error opening " << FilePath << ":" << Error
<< "\n";
Modified: clang-tools-extra/trunk/pp-trace/PPTrace.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/pp-trace/PPTrace.cpp?rev=202045&r1=202044&r2=202045&view=diff
==============================================================================
--- clang-tools-extra/trunk/pp-trace/PPTrace.cpp (original)
+++ clang-tools-extra/trunk/pp-trace/PPTrace.cpp Mon Feb 24 09:41:44 2014
@@ -214,7 +214,8 @@ int main(int Argc, const char **Argv) {
} else {
// Set up output file.
std::string Error;
- llvm::tool_output_file Out(OutputFileName.c_str(), Error);
+ llvm::tool_output_file Out(OutputFileName.c_str(), Error,
+ llvm::sys::fs::F_None);
if (!Error.empty()) {
llvm::errs() << "pp-trace: error creating " << OutputFileName << ":"
<< Error << "\n";
More information about the cfe-commits
mailing list