[llvm] r218547 - clang-format of ChangeStdinToBinary & ChangeStdoutToBinary.

Yaron Keren yaron.keren at gmail.com
Fri Sep 26 15:27:12 PDT 2014


Author: yrnkrn
Date: Fri Sep 26 17:27:11 2014
New Revision: 218547

URL: http://llvm.org/viewvc/llvm-project?rev=218547&view=rev
Log:
clang-format of ChangeStdinToBinary & ChangeStdoutToBinary.


Modified:
    llvm/trunk/lib/Support/Windows/Program.inc

Modified: llvm/trunk/lib/Support/Windows/Program.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Program.inc?rev=218547&r1=218546&r2=218547&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Program.inc (original)
+++ llvm/trunk/lib/Support/Windows/Program.inc Fri Sep 26 17:27:11 2014
@@ -428,15 +428,15 @@ ProcessInfo sys::Wait(const ProcessInfo
   return WaitResult;
 }
 
-  std::error_code sys::ChangeStdinToBinary(){
-  int result = _setmode( _fileno(stdin), _O_BINARY );
+std::error_code sys::ChangeStdinToBinary() {
+  int result = _setmode(_fileno(stdin), _O_BINARY);
   if (result == -1)
     return std::error_code(errno, std::generic_category());
   return std::error_code();
 }
 
-  std::error_code sys::ChangeStdoutToBinary(){
-  int result = _setmode( _fileno(stdout), _O_BINARY );
+std::error_code sys::ChangeStdoutToBinary() {
+  int result = _setmode(_fileno(stdout), _O_BINARY);
   if (result == -1)
     return std::error_code(errno, std::generic_category());
   return std::error_code();





More information about the llvm-commits mailing list